Стилизация отображения постов
This commit is contained in:
parent
2b61d5e990
commit
7cd28c07eb
@ -1,14 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
android:layout_height="match_parent"
|
||||
android:paddingTop="@dimen/post_margin"
|
||||
android:paddingBottom="@dimen/post_margin"
|
||||
android:paddingLeft="@dimen/post_margin"
|
||||
android:paddingRight="@dimen/post_margin" >
|
||||
|
||||
<TextView
|
||||
android:id="@+id/forum_author"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true" />
|
||||
android:layout_alignParentTop="true"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/forum_date"
|
||||
@ -17,12 +22,20 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginBottom="2dp"
|
||||
android:background="@android:color/holo_blue_light"
|
||||
android:layout_below="@id/forum_author" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/forum_message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
android:layout_below="@id/divider" />
|
||||
|
||||
</RelativeLayout>
|
5
res/values/dimens.xml
Normal file
5
res/values/dimens.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="post_margin">4dp</dimen>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user