mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-07-07 18:42:53 +00:00
Added latest posts fragment
This commit is contained in:
29
app/src/main/res/layout/fragment_latest_posts.xml
Normal file
29
app/src/main/res/layout/fragment_latest_posts.xml
Normal 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>
|
@ -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"
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user