This introduces a floating action button (FAB) in the contact list.
The button hides itself when you scroll down the list of contacts and shows again when you scroll up. To properly color the button, the accent color has been defined. It uses the same color as the action bar (primary color). I leave it to a UX designer to adapt the color scheme. Please note that the design support library was used. It includes the app-compat library, so this has been removed from the `build.gradle` file. Closes #199
Showing
- briar-android/build.gradle 1 addition, 1 deletionbriar-android/build.gradle
- briar-android/res/drawable/ic_add_white.xml 5 additions, 0 deletionsbriar-android/res/drawable/ic_add_white.xml
- briar-android/res/layout/activity_contact_list.xml 26 additions, 5 deletionsbriar-android/res/layout/activity_contact_list.xml
- briar-android/res/menu/contact_list_actions.xml 0 additions, 12 deletionsbriar-android/res/menu/contact_list_actions.xml
- briar-android/res/values/styles.xml 1 addition, 0 deletionsbriar-android/res/values/styles.xml
- briar-android/src/org/briarproject/android/contact/ContactListActivity.java 16 additions, 31 deletions...org/briarproject/android/contact/ContactListActivity.java
- briar-android/src/org/briarproject/android/util/HideFabOnScrollBehavior.java 42 additions, 0 deletions...rg/briarproject/android/util/HideFabOnScrollBehavior.java
Loading
Please register or sign in to comment