Browse Source

fix squishy date on TorrentDetails when label is too long

pull/541/head
Twig N 5 years ago
parent
commit
1c556e038e
  1. 35
      app/src/main/res/layout/fragment_details_header.xml

35
app/src/main/res/layout/fragment_details_header.xml

@ -21,30 +21,39 @@ @@ -21,30 +21,39 @@
android:layout_marginBottom="@dimen/margin_default"
android:layout_marginTop="@dimen/margin_default" >
<TextView
android:id="@+id/label_text"
style="@style/LabelTextView"
android:layout_width="wrap_content"
<LinearLayout
android:id="@+id/date_label_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/margin_default"
android:textIsSelectable="true"
android:visibility="invisible" />
android:orientation="horizontal"
android:layout_marginLeft="@dimen/margin_default"
android:layout_marginRight="@dimen/margin_default" >
<TextView
android:id="@+id/dateadded_text"
android:layout_width="match_parent"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/margin_default"
android:layout_weight="0.5"
android:layout_marginRight="@dimen/margin_half"
android:layout_toLeftOf="@id/label_text"
android:textIsSelectable="false" />
<TextView
android:id="@+id/label_text"
style="@style/LabelTextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:layout_marginLeft="@dimen/margin_half"
android:textIsSelectable="true"
android:gravity="right"
android:visibility="invisible" />
</LinearLayout>
<View
android:id="@+id/separator"
android:layout_width="2dip"
android:layout_height="@dimen/ui_details_seperator"
android:layout_below="@id/dateadded_text"
android:layout_below="@id/date_label_wrapper"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/margin_half"
android:layout_marginTop="@dimen/margin_default"
@ -55,7 +64,7 @@ @@ -55,7 +64,7 @@
android:id="@+id/uploaded_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/dateadded_text"
android:layout_below="@id/date_label_wrapper"
android:layout_marginLeft="@dimen/margin_half"
android:layout_marginTop="@dimen/margin_half"
android:layout_toRightOf="@id/separator"

Loading…
Cancel
Save