Display groups posts on latest posts thread

This commit is contained in:
Pierre HUBERT
2018-08-31 19:01:22 +02:00
parent ab37254cf7
commit 35c5040133
14 changed files with 229 additions and 22 deletions

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="@color/default_drawable_color"
android:pathData="M8,5v14l11,-7z"/>
</vector>

View File

@ -28,6 +28,27 @@
app:layout_constraintTop_toTopOf="parent"
tools:text="User name" />
<ImageView
android:id="@+id/target_arrow"
style="@style/PostTargetArrow"
android:layout_width="15dp"
android:layout_height="13dp"
android:scaleType="centerInside"
app:layout_constraintBottom_toTopOf="@+id/post_creation_time"
app:layout_constraintStart_toEndOf="@+id/user_account_name"
app:layout_constraintTop_toTopOf="@+id/user_account_name"
tools:ignore="ContentDescription" />
<TextView
android:id="@+id/target_page_name"
style="@style/PostOwnerName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="@+id/target_arrow"
app:layout_constraintStart_toEndOf="@+id/target_arrow"
app:layout_constraintTop_toTopOf="@+id/target_arrow"
tools:text="Target Page" />
<!-- Post creation time -->
<TextView
android:id="@+id/post_creation_time"

View File

@ -266,4 +266,8 @@
<string name="err_update_conversation_message_content">Une erreur a survenue lors de la mise à jour du contenu du message ! Veuillez réessayer…</string>
<string name="success_update_conversation_message_content">Le contenu du message a bien été mis à jour !</string>
<string name="err_get_older_posts">Une erreur a survenue lors de la récupération de posts plus anciens !</string>
<string name="err_get_posts_list">Impossible de récupérer la liste de posts !</string>
<string name="notice_no_post_yet">Il n\'y a aucun post à afficher ici pour le moment.</string>
<string name="post_visibility_icon">Visiblité du post</string>
<string name="err_get_related_groups_info">Une erreur a survenue lors de la récupération d\'information sur les groupes liés !</string>
</resources>

View File

@ -268,4 +268,5 @@
<string name="err_get_posts_list">Could not get the list of posts!</string>
<string name="notice_no_post_yet">There is no post to display here yet.</string>
<string name="post_visibility_icon">Post visibility</string>
<string name="err_get_related_groups_info">Could not get information about related groups!</string>
</resources>

View File

@ -93,6 +93,12 @@
<item name="android:textStyle">bold</item>
</style>
<!-- Post target arrow -->
<style name="PostTargetArrow">
<item name="android:src">@drawable/ic_play_arrow</item>
<item name="android:tint">@color/user_name_link</item>
</style>
<!-- Post date -->
<style name="PostDate">