mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-07-06 10:02:54 +00:00
Display posts creation date
This commit is contained in:
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user