Browse Source

Merge pull request #541 from twig/fix-torrent-details-long-label

fix squishy date on TorrentDetails when label is too long
pull/551/head
Eric Kok 5 years ago committed by GitHub
parent
commit
3daef85cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 43
      app/src/main/res/layout/fragment_details_header.xml

43
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"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/margin_default"
android:textIsSelectable="true"
android:visibility="invisible" />
<TextView
android:id="@+id/dateadded_text"
<LinearLayout
android:id="@+id/date_label_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginLeft="@dimen/margin_default"
android:layout_marginRight="@dimen/margin_half"
android:layout_toLeftOf="@id/label_text"
android:textIsSelectable="false" />
android:layout_marginRight="@dimen/margin_default" >
<TextView
android:id="@+id/dateadded_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:layout_marginRight="@dimen/margin_half"
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