Display posts creation date

This commit is contained in:
Pierre
2018-01-22 18:49:05 +01:00
parent 6280541829
commit 1c8cefb1e5
4 changed files with 46 additions and 8 deletions

View File

@ -17,13 +17,31 @@
android:layout_width="@dimen/account_image_default_width"
android:layout_height="@dimen/account_image_default_height" />
<TextView
android:id="@+id/user_account_name"
style="@style/PostOwnerName"
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="User name"
android:layout_gravity="center"/>
android:orientation="vertical"
android:layout_gravity="center">
<!-- User name -->
<TextView
android:id="@+id/user_account_name"
style="@style/PostOwnerName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
tools:text="User name" />
<!-- Post creation time -->
<TextView
android:id="@+id/post_creation_time"
style="@style/PostDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="15 days ago"/>
</LinearLayout>
</LinearLayout>

View File

@ -17,4 +17,7 @@
<!-- Conversations footer -->
<color name="conversation_footer_bg">#8c9eff</color>
<!-- Specify to users name -->
<color name="user_name_link">#23527c</color>
</resources>

View File

@ -35,6 +35,13 @@
<!-- Post owner name -->
<style name="PostOwnerName">
<item name="android:paddingStart">10dp</item>
<item name="android:paddingLeft">5dp</item>
<item name="android:textColor">@color/user_name_link</item>
<item name="android:textStyle">bold</item>
</style>
<!-- Post date -->
<style name="PostDate">
<item name="android:paddingLeft">10dp</item>
</style>
</resources>