diff options
Diffstat (limited to 'res/layout/history_item.xml')
-rw-r--r-- | res/layout/history_item.xml | 99 |
1 files changed, 47 insertions, 52 deletions
diff --git a/res/layout/history_item.xml b/res/layout/history_item.xml index 2ef5fe97..ad987140 100644 --- a/res/layout/history_item.xml +++ b/res/layout/history_item.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2012 The CyanogenMod Project +<!-- + Copyright (C) 2012 The CyanogenMod Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -12,62 +13,56 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - --> +--> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="wrap_content" - android:layout_height="@dimen/default_row_height" - android:background="@drawable/holo_list_selector_deselected" > +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="48dp" + android:background="@drawable/holo_list_selector_deselected" + android:clickable="true" + android:focusable="true" + android:orientation="horizontal" > - <ImageView - android:id="@+id/history_item_icon" - android:layout_width="@dimen/default_row_height" - android:layout_height="match_parent" - android:contentDescription="@null" - android:gravity="center_horizontal|center_vertical" - android:paddingLeft="@dimen/extra_margin" - android:src="@null" /> + <ImageView + android:id="@+id/history_item_icon" + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_marginRight="2dp" + android:contentDescription="@null" + android:padding="8dp" + android:src="@null" /> - <TextView - android:id="@+id/history_item_position" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentRight="true" - android:layout_centerVertical="true" - android:layout_marginLeft="@dimen/default_margin" - android:layout_marginTop="@dimen/default_margin" - android:paddingRight="@dimen/extra_margin" - android:singleLine="true" - android:textAppearance="@style/primary_text_appearance" - android:textStyle="normal" /> + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center" + android:orientation="vertical" > - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_toLeftOf="@id/history_item_position" - android:layout_toRightOf="@id/history_item_icon" > + <TextView + android:id="@+id/history_item_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="@style/primary_text_appearance" /> - <TextView - android:id="@+id/history_item_name" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_alignParentLeft="true" - android:layout_alignParentTop="true" - android:layout_marginLeft="@dimen/default_margin" - android:layout_marginTop="@dimen/default_margin" - android:singleLine="true" - android:textAppearance="@style/primary_text_appearance" /> + <TextView + android:id="@+id/history_item_directory" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="@style/secondary_text_appearance" /> + </LinearLayout> <TextView - android:id="@+id/history_item_directory" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentBottom="true" - android:layout_alignParentLeft="true" - android:layout_marginBottom="@dimen/default_margin" - android:layout_marginLeft="@dimen/default_margin" - android:singleLine="true" - android:textAppearance="@style/secondary_text_appearance" /> - </RelativeLayout> + android:id="@+id/history_item_position" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginLeft="@dimen/default_margin" + android:paddingRight="@dimen/extra_margin" + android:singleLine="true" + android:textAppearance="@style/primary_text_appearance" + android:textStyle="normal" /> -</RelativeLayout>
\ No newline at end of file +</LinearLayout>
\ No newline at end of file |