Skip to content

Commit

Permalink
Tweak boormark/history item appearance to better accomodate very long…
Browse files Browse the repository at this point in the history
… dictionary labels
  • Loading branch information
itkach committed Dec 14, 2014
1 parent e9ec0e1 commit c1d6fcd
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions res/layout/blob_descriptor_list_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
android:background="@android:drawable/list_selector_background"
>

<RelativeLayout
<LinearLayout
android:id="@+id/blob_descriptor_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>

<TextView
Expand All @@ -23,25 +24,32 @@
android:text="Босния и Герцеговина на зимних Олимпийских играх 1998"
android:textSize="22sp" />

<TextView
android:id="@+id/blob_descriptor_source"
style="@android:style/TextAppearance.Holo.SearchResult.Subtitle"
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/blob_descriptor_key"
android:text="WordNet" />
android:orientation="horizontal"
>

<TextView
android:id="@+id/blob_descriptor_timestamp"
style="@android:style/TextAppearance.Holo.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_below="@id/blob_descriptor_key"
android:text="1 day ago, 11:23"
android:textStyle="italic" />
</RelativeLayout>
android:id="@+id/blob_descriptor_source"
style="@android:style/TextAppearance.Holo.SearchResult.Subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_weight="1"
android:text="WordNet" />

<TextView
android:id="@+id/blob_descriptor_timestamp"
style="@android:style/TextAppearance.Holo.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:paddingLeft="6dp"
android:text="1 day ago"
android:textStyle="italic" />
</LinearLayout>
</LinearLayout>

<CheckBox
android:id="@+id/blob_descriptor_checkbox"
Expand Down

0 comments on commit c1d6fcd

Please sign in to comment.