improved status card name alignment

This commit is contained in:
Mariotaku Lee 2015-05-20 02:24:03 +08:00
parent c45bcaa261
commit 13c45346ac
2 changed files with 10 additions and 6 deletions

View File

@ -125,12 +125,10 @@
android:layout_toStartOf="@+id/extra_type"
android:orientation="vertical">
<LinearLayout
<RelativeLayout
android:id="@+id/name_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/element_spacing_xsmall"
android:layout_marginTop="@dimen/element_spacing_small"
android:gravity="center_vertical"
android:orientation="horizontal">
@ -148,14 +146,17 @@
android:id="@+id/screen_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/name"
android:layout_marginLeft="@dimen/element_spacing_small"
android:layout_marginStart="@dimen/element_spacing_small"
android:layout_toRightOf="@+id/name"
android:layout_toEndOf="@+id/name"
android:singleLine="true"
android:textAppearance="?android:textAppearanceSmall"
android:textColor="?android:textColorSecondary"
tools:text="\@user"
tools:textSize="@dimen/text_size_extra_small" />
</LinearLayout>
</RelativeLayout>
<org.mariotaku.twidere.view.ShortTimeView

View File

@ -116,7 +116,7 @@
android:gravity="center_vertical|start"
android:orientation="horizontal">
<LinearLayout
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
@ -137,14 +137,17 @@
android:id="@+id/screen_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/name"
android:layout_marginLeft="@dimen/element_spacing_small"
android:layout_marginStart="@dimen/element_spacing_small"
android:layout_toEndOf="@+id/name"
android:layout_toRightOf="@+id/name"
android:singleLine="true"
android:textAppearance="?android:textAppearanceSmall"
android:textColor="?android:textColorSecondary"
tools:text="\@username"
tools:textSize="@dimen/text_size_extra_small" />
</LinearLayout>
</RelativeLayout>
<org.mariotaku.twidere.view.ShortTimeView
android:id="@+id/time"