aboutsummaryrefslogtreecommitdiffstats
path: root/res/layout/bookmarks_item.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/bookmarks_item.xml')
-rw-r--r--res/layout/bookmarks_item.xml94
1 files changed, 45 insertions, 49 deletions
diff --git a/res/layout/bookmarks_item.xml b/res/layout/bookmarks_item.xml
index fc8e4be5..2070494a 100644
--- a/res/layout/bookmarks_item.xml
+++ b/res/layout/bookmarks_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,58 +13,53 @@
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:orientation="horizontal"
+ android:focusable="true"
+ android:clickable="true" >
- <ImageView
- android:id="@+id/bookmarks_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/bookmarks_item_icon"
+ android:layout_width="48dp"
+ android:layout_height="match_parent"
+ android:layout_marginRight="2dp"
+ android:contentDescription="@null"
+ android:padding="8dp"
+ android:src="@null" />
- <com.cyanogenmod.filemanager.ui.widgets.NonFocusableButtonItem
- android:id="@+id/bookmarks_item_action"
- android:layout_width="@dimen/default_buttom_width"
- android:layout_height="match_parent"
- android:layout_alignParentRight="true"
- android:contentDescription="@null"
- android:gravity="center_horizontal|center_vertical"
- android:src="@null" />
+ <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/bookmarks_item_action"
- android:layout_toRightOf="@id/bookmarks_item_icon" >
+ <TextView
+ android:id="@+id/bookmarks_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/bookmarks_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/bookmarks_item_path"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:textAppearance="@style/secondary_text_appearance" />
+ </LinearLayout>
- <TextView
- android:id="@+id/bookmarks_item_path"
- 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>
+ <com.cyanogenmod.filemanager.ui.widgets.NonFocusableButtonItem
+ android:id="@+id/bookmarks_item_action"
+ android:layout_width="@dimen/default_buttom_width"
+ android:layout_height="match_parent"
+ android:contentDescription="@null"
+ android:gravity="center_horizontal|center_vertical"
+ android:src="@null" />
-</RelativeLayout> \ No newline at end of file
+</LinearLayout> \ No newline at end of file