Стилизация отображения постов
This commit is contained in:
parent
2b61d5e990
commit
7cd28c07eb
@ -1,14 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
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
|
<TextView
|
||||||
android:id="@+id/forum_author"
|
android:id="@+id/forum_author"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentTop="true" />
|
android:layout_alignParentTop="true"
|
||||||
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/forum_date"
|
android:id="@+id/forum_date"
|
||||||
@ -18,11 +23,19 @@
|
|||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
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
|
<TextView
|
||||||
android:id="@+id/forum_message"
|
android:id="@+id/forum_message"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_below="@id/divider" />
|
||||||
android:layout_centerHorizontal="true" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</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