diff options
author | Anthony Hugh <ahugh@google.com> | 2015-09-15 18:48:16 -0700 |
---|---|---|
committer | Anthony Hugh <ahugh@google.com> | 2015-09-15 19:11:28 -0700 |
commit | df4d4542c2cf2fa0a7539412af2a99d60b1c2a15 (patch) | |
tree | f088146b0b24ae455f9ba2b75448f0dbd6e75bbf /res/layout-watch/permissions_settings_item.xml | |
parent | fbe307f9ee43b750ff8cae2658c1e0f03676da60 (diff) | |
download | android_packages_apps_PackageInstaller-df4d4542c2cf2fa0a7539412af2a99d60b1c2a15.tar.gz android_packages_apps_PackageInstaller-df4d4542c2cf2fa0a7539412af2a99d60b1c2a15.tar.bz2 android_packages_apps_PackageInstaller-df4d4542c2cf2fa0a7539412af2a99d60b1c2a15.zip |
Build initial Permissions Settings UI page for Wear
This is a first pass to build a functional settings UI page
for Permissions on Android Wear. The user flow is a little
different than the phone version, so there are some nuances
that need to be adjusted from the normal flow.
I have forked off of the AppPermissionsFragment and created
a Wear version for us to use. Rather than try to link
the Wearable-Support lib into AOSP code, I have made a
duplicate of the few files I needed.
This change adds a Wear layout version of the Settings UI
page. The UI is fully functional for most cases, but there
are some tweaks still needed for full parity. The tweaks
are primarily around UI and special edge case functions.
BUG: 23080561
Change-Id: I8477f6b966cacaae9e77aa0fb61b4b1e621a9ead
Diffstat (limited to 'res/layout-watch/permissions_settings_item.xml')
-rw-r--r-- | res/layout-watch/permissions_settings_item.xml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/res/layout-watch/permissions_settings_item.xml b/res/layout-watch/permissions_settings_item.xml new file mode 100644 index 00000000..1c57fd81 --- /dev/null +++ b/res/layout-watch/permissions_settings_item.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + <android.support.wearable.view.CircledImageView + android:id="@+id/image" + android:alpha="0.5" + android:layout_height="52dp" + android:layout_width="52dp" + android:layout_gravity="center_vertical" + app:circle_border_color="#FFFFFFFF" + app:circle_border_width="1dp" + app:circle_color="#00000000"/> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/settings_text_margin_left" + android:layout_gravity="center_vertical" + android:orientation="vertical" > + + <TextView + android:id="@+id/text" + android:alpha="0.5" + android:fontFamily="sans-serif-condensed-light" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="#FFFFFFFF" + android:textSize="14sp" + android:maxLines="2" + android:ellipsize="end"/> + <TextView + android:id="@+id/state" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="14sp" + android:textColor="#FFFFFFFF" + android:fontFamily="sans-serif-condensed-light" + android:maxLines="1" + android:ellipsize="end"/> + </LinearLayout> + +</LinearLayout> |