Added latest posts fragment

This commit is contained in:
Pierre
2018-05-10 10:08:26 +02:00
parent 0d075032d8
commit 306977a101
6 changed files with 306 additions and 7 deletions

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- Loading progress bar -->
<ProgressBar
android:id="@+id/loading_progress"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
<!-- No posts notice -->
<TextView
android:id="@+id/no_post_notice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/notice_no_latest_posts"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp" />
<!-- Posts list -->
<FrameLayout
android:id="@+id/posts_list_target"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>

View File

@ -2,6 +2,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<!-- Open user page -->
<item
android:id="@+id/action_open_user_page"
android:title="@string/main_menu_personal_page"/>
<!-- Display friends list -->
<item
android:id="@+id/action_friends_list"

View File

@ -185,4 +185,8 @@
<string name="success_clear_local_db">The local database has been successfully cleared! You may need to restart the application to make the changes being fully applied.</string>
<string name="err_clear_local_db">An error occurred while trying to clear local database!</string>
<string name="image_description_pick_image">Pick an image</string>
<string name="main_menu_personal_page">My page</string>
<string name="fragment_latestposts_title">Latest posts</string>
<string name="err_get_latest_posts">An error occurred while trying to retrieve the list of latest posts!</string>
<string name="notice_no_latest_posts">You do not have any latest posts to display here.</string>
</resources>