Closed bajabob closed 8 years ago
feature/78-empty-state
Finished animation and fixed bug with FAB on pre-api 21 at the expense of lowering the elevation of the FAB from 20dp to 4dp and having to add a styles.xml for v21. The team should look at the FAB with the lowered elevation and overall animation to see if it's any good. Also decide on the textview stuff.
This turned out fantastic @justintan93 . Just checked it out. Perfectly done man!
As a user of the FastPhrase application I require information on what to do when the application first opens and I have NO recordings. This is where the EmptyStateView comes into play. I would like some kind of message and animated arrow pointing to the recording button. This message should say something like, "Press here to create your first recording", or "Start by recording your first phrase". Additionally an animated (possibly hand drawn) arrow should appear and point to the button to press.
First step: Open the
AppDataStoreManager
class and comment out betweenAppData ad = new AppData();
(around line 65) andGson gson = new Gson();
(~line 85). Removing this code will remove all elements from the list, revealing theEmptyStateView
with some sample text.Second Step: Complete the view and ensure that it works on an emulator with a small screen size (actually look at the dimensions and find a small emulator). This will ensure your view looks good on small devices and large ones as well.
Files you will most likely be coding in:
EmptyStateView.java
,view_empty_state.xml
. If you would like to move this view around in the parent view, openactivity_playback_list.xml
.