Fix separators and use white background for recycler view again.

This commit is contained in:
Stefan Niedermann 2016-01-21 18:17:30 +01:00
parent bac2e86d88
commit 063ecbaeec
5 changed files with 57 additions and 39 deletions

View file

@ -67,6 +67,7 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/debug" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/debugAndroidTest" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/jars" />

View file

@ -17,7 +17,7 @@
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/fg_default_high">
android:background="@color/bg_normal">
</android.support.v7.widget.RecyclerView>
</android.support.v4.widget.SwipeRefreshLayout>

View file

@ -1,10 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/noteItem"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/noteItem"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1px"
android:background="@drawable/list_item_background_selector"
android:padding="16dp">
@ -20,7 +23,7 @@
android:ellipsize="end"
android:gravity="center_vertical"
android:textColor="@drawable/list_item_color_selector"
android:textSize="16sp" />
android:textSize="16sp"/>
<TextView
android:id="@+id/noteExcerpt"
@ -33,6 +36,14 @@
android:ellipsize="marquee"
android:singleLine="true"
android:textColor="@drawable/list_item_color_selector_low"
android:textSize="14sp" />
android:textSize="14sp"/>
</RelativeLayout>
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="1px"
android:src="@color/separator"/>
</RelativeLayout>

View file

@ -3,25 +3,29 @@
android:id="@+id/sectionItem"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1px"
android:background="@color/bg_highlighted"
android:padding="8dp">
android:layout_height="wrap_content">
<TextView
android:id="@+id/sectionTitle"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentEnd="false"
android:layout_alignParentRight="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_alignWithParentIfMissing="true"
android:background="@color/bg_highlighted"
android:ellipsize="end"
android:gravity="center_vertical"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:padding="8dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:textColor="@color/fg_default_selection"
android:textSize="12sp" />
android:textSize="12sp"/>
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="1px"
android:src="@color/separator"/>
</RelativeLayout>

View file

@ -5,6 +5,8 @@
<color name="primary">#1d2d44</color>
<color name="primary_dark">#112233</color>
<color name="separator">#d2d2d2</color>
<color name="bg_transparent">#aa000000</color>
<color name="bg_highlighted">#f3f3f3</color>
<color name="bg_normal">#ffffff</color>