Skip to content

Commit

Permalink
added feedback to navbar buttons close #36
Browse files Browse the repository at this point in the history
  • Loading branch information
harisont committed Oct 3, 2020
1 parent d095baf commit edfaa7b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions SpesApp/app/src/main/res/drawable/button.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true" android:state_pressed="false" android:drawable="@color/colorPrimary" />
<item android:state_focused="true" android:state_pressed="true" android:drawable="@color/colorPrimaryDark" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@color/colorPrimaryDark" />
<item android:drawable="@color/colorPrimary" />
</selector>
8 changes: 4 additions & 4 deletions SpesApp/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,31 +58,31 @@
android:weightSum="4">

<ImageButton
android:background="@color/colorPrimary"
android:background="@drawable/button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/commit_btn"
app:srcCompat="@drawable/ic_check_box_black_24dp" />

<ImageButton
android:background="@color/colorPrimary"
android:background="@drawable/button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/share_btn"
app:srcCompat="@drawable/ic_share_black_24dp" />

<ImageButton
android:background="@color/colorPrimary"
android:background="@drawable/button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/query_btn"
app:srcCompat="@drawable/ic_help_black_24dp" />

<ImageButton
android:background="@color/colorPrimary"
android:background="@drawable/button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
Expand Down

0 comments on commit edfaa7b

Please sign in to comment.