From fccd858f572f5b08e73ee664ad0b5a6f924b3f65 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Mon, 22 Jun 2015 14:59:51 +0200 Subject: [PATCH] Decorations are now measured properly Previously first/last flags were not taken into account and offsets were cached sometimes in LayoutParams --- app/src/main/res/drawable/divider.xml | 7 +++ app/src/main/res/values/styles.xml | 1 + .../views/llm/DividerItemDecoration.java | 43 +++++++++++++------ .../views/llm/LinearLayoutManager.java | 38 ++++++++++++++++ 4 files changed, 76 insertions(+), 13 deletions(-) create mode 100644 app/src/main/res/drawable/divider.xml diff --git a/app/src/main/res/drawable/divider.xml b/app/src/main/res/drawable/divider.xml new file mode 100644 index 0000000..fecb1aa --- /dev/null +++ b/app/src/main/res/drawable/divider.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 439ddac..90a6c98 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -3,6 +3,7 @@