- Learn how to add more UI components to your app: Menu, Toolbar, Dialog...
- Implements a post detail page (the activity should be named
PostDetailActivity
) to display a Reddit post instead of using webview. - Modify the previous app at Exercise 6.1
- Include
selftext
insideRedditPost
model to get the post's content. - Fix parser to parse
selftext_html
from the API response.
- Include
- The UI should look like below:
- How to display post content:
- The post's title is displayed as title of the action bar.
- The post's author is displayed as subtitle of the action bar.
- Tapping on the back arrow should close the activity.
- Tapping on share icon should open a list of apps that can provide share function for the post's url.
- How to use actionbar: http://developer.android.com/guide/topics/ui/actionbar.html
- Themes and styles:
- How to style an action bar: https://guides.codepath.com/android/Extended-ActionBar-Guide
- Can you use
Toolbar
to act asActionBar
? http://www.vogella.com/tutorials/AndroidActionBar/article.html