Skip to content

Commit

Permalink
Issue #70: background of micropub post menu
Browse files Browse the repository at this point in the history
  • Loading branch information
swentel committed Sep 5, 2018
1 parent 7f22ccf commit 6c9c5ec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions app/src/main/res/drawable/nav_item_background.xml
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@color/micropubActionTouched" />
<item android:drawable="@android:color/transparent" />
</selector>
9 changes: 6 additions & 3 deletions app/src/main/res/layout/activity_micropub.xml
Expand Up @@ -13,7 +13,7 @@

<TextView
android:id="@+id/createTitle"
android:textSize="20sp"
android:textSize="18sp"
android:visibility="gone"
android:text="@string/select_post_type"
android:layout_width="wrap_content"
Expand All @@ -23,8 +23,9 @@
android:visibility="gone"
android:textStyle="italic"
android:id="@+id/previewText"
android:textColor="@color/textColor"
android:layout_marginTop="5dp"
android:textSize="18sp"
android:textSize="@dimen/timeline_list_item_text_size"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

Expand All @@ -50,9 +51,11 @@
android:id="@+id/postMenu"
app:theme="@style/NavigationDrawerStyle"
android:background="@android:color/transparent"
android:layout_width="wrap_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
app:itemIconTint="@color/iconTint"
app:itemTextColor="@color/menuTextcolor"
app:itemBackground="@drawable/nav_item_background"
app:menu="@menu/micropub_post_menu" />

<Button
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/colors.xml
Expand Up @@ -3,7 +3,7 @@
<color name="colorPrimary">#DD645E</color>
<color name="colorPrimaryDark">#bd3e38</color>
<color name="colorAccent">#DD645E</color>
<color name="iconTint">#000000</color>
<color name="iconTint">#666666</color>
<color name="menuTextcolor">#666666</color>
<color name="lightBlue">#b6cbdb</color>
<color name="textColor">#666666</color>
Expand All @@ -13,4 +13,5 @@
<color name="listRowBackgroundColorTouched">#e2e6e9</color>
<color name="loadMoreButtonBackgroundColor">#f5f5f5</color>
<color name="loadMoreButtonBackgroundColorTouched">#e2e6e9</color>
<color name="micropubActionTouched">#e2e6e9</color>
</resources>

0 comments on commit 6c9c5ec

Please sign in to comment.