diff options
author | Abhisek Devkota <ciwrl@cyanogenmod.com> | 2014-06-12 21:52:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2014-06-12 21:52:32 +0000 |
commit | 9d9a1c05734ba45d117748b28de366c4c345d858 (patch) | |
tree | 47b860817ce71629829f6676e9c7c2f324a843b2 /res/layout | |
parent | c284a5706301f7b8835856554df4b18e93a3f82f (diff) | |
parent | cf84500bd174148d4f7e6ce5a840c4f8f31cbabd (diff) | |
download | android_packages_apps_Trebuchet-9d9a1c05734ba45d117748b28de366c4c345d858.tar.gz android_packages_apps_Trebuchet-9d9a1c05734ba45d117748b28de366c4c345d858.tar.bz2 android_packages_apps_Trebuchet-9d9a1c05734ba45d117748b28de366c4c345d858.zip |
Merge "Protected App [3/3] Trebuchet - Protected Apps - Build fixed to work with LOCAL_SDK_VERSION - Fixed adding components to protected folders and adding protected folders to other folders - Fixed issues with EditText for FolderName - Adding support for Settings hooks - Uses Setting's LockPattern for Protected Apps - Add Read from Settings Secure DB (DO NOT WRITE!) - Protecting a folder updates Launcher without restart - Batch send component visibility" into cm-11.0
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/hidden_folder.xml | 51 | ||||
-rw-r--r-- | res/layout/hidden_folder_apps_list_item.xml | 28 | ||||
-rw-r--r-- | res/layout/user_folder.xml | 50 |
3 files changed, 114 insertions, 15 deletions
diff --git a/res/layout/hidden_folder.xml b/res/layout/hidden_folder.xml new file mode 100644 index 000000000..ca06f6e48 --- /dev/null +++ b/res/layout/hidden_folder.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/settings_bg_color" + android:orientation="vertical" + android:paddingLeft="@dimen/overview_panel_button_spacing" + android:paddingRight="@dimen/overview_panel_button_spacing" + android:paddingTop="@dimen/overview_panel_bottom_padding" + android:focusable="true" + android:focusableInTouchMode="true" + android:clickable="true" > + + <RelativeLayout + android:id="@+id/folder_title_lock" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + <ImageView + android:id="@+id/folder_lock_icon" + android:layout_width="25dp" + android:layout_height="25dp" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:src="@drawable/folder_unlock" + android:background="@drawable/listitem_bg" /> + + <EditText + android:id="@+id/folder_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:paddingBottom="@dimen/folder_name_padding" + android:paddingTop="@dimen/folder_name_padding" + android:hint="@string/folder_hint_text" + android:textColor="@android:color/white" + android:textSize="20sp" + android:textColorHighlight="#ffCCCCCC" + android:textCursorDrawable="@null" + android:singleLine="true" + android:background="#00000000" /> + </RelativeLayout> + + <ListView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/hidden_apps_list" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="5dp" /> + +</LinearLayout> diff --git a/res/layout/hidden_folder_apps_list_item.xml b/res/layout/hidden_folder_apps_list_item.xml new file mode 100644 index 000000000..13441941e --- /dev/null +++ b/res/layout/hidden_folder_apps_list_item.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="48dp" + android:gravity="center_vertical" + android:paddingRight="?android:attr/scrollbarSize" + android:background="?android:attr/selectableItemBackground" + android:descendantFocusability="blocksDescendants"> + + <ImageView android:id="@+id/icon" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_gravity="center" /> + + <TextView android:id="@+id/title" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginLeft="15dip" + android:layout_marginRight="6dip" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:layout_weight="1" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:ellipsize="marquee" + android:fadingEdge="horizontal" /> +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/user_folder.xml b/res/layout/user_folder.xml index 5d5f33b1f..28476db69 100644 --- a/res/layout/user_folder.xml +++ b/res/layout/user_folder.xml @@ -34,21 +34,41 @@ android:hapticFeedbackEnabled="false" /> </ScrollView> - <com.android.launcher3.FolderEditText - android:id="@+id/folder_name" + <RelativeLayout + android:id="@+id/folder_title_section" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_centerHorizontal="true" - android:paddingTop="@dimen/folder_name_padding" - android:paddingBottom="@dimen/folder_name_padding" - android:background="#00000000" - android:hint="@string/folder_hint_text" - android:textSize="14sp" - android:textColor="#ff777777" - android:textColorHighlight="#ffCCCCCC" - android:textCursorDrawable="@null" - android:gravity="center_horizontal" - android:singleLine="true" - android:imeOptions="flagNoExtractUi" - android:fontFamily="sans-serif-condensed"/> + android:orientation="horizontal" > + + <ImageView + android:id="@+id/folder_lock" + android:layout_width="@dimen/folder_lock_icon" + android:layout_height="@dimen/folder_lock_icon" + android:paddingBottom="@dimen/folder_name_padding" + android:paddingTop="@dimen/folder_name_padding" + android:adjustViewBounds="true" + android:layout_alignParentRight="true" + android:src="@drawable/folder_unlock" /> + + <com.android.launcher3.FolderEditText + android:id="@+id/folder_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:background="#00000000" + android:fontFamily="sans-serif-condensed" + android:gravity="center_horizontal" + android:hint="@string/folder_hint_text" + android:imeOptions="flagNoExtractUi" + android:paddingBottom="@dimen/folder_name_padding" + android:paddingTop="@dimen/folder_name_padding" + android:singleLine="true" + android:textColor="#ff777777" + android:textColorHighlight="#ffCCCCCC" + android:textCursorDrawable="@null" + android:layout_alignParentLeft="true" + android:layout_toLeftOf="@id/folder_lock" + android:textSize="16sp" /> + </RelativeLayout> + </com.android.launcher3.Folder> |