diff options
author | Brandon Maxwell <maxwelb@google.com> | 2016-04-14 10:59:55 -0700 |
---|---|---|
committer | Usman Abdullah <uabdullah@google.com> | 2016-04-20 18:32:00 +0000 |
commit | b5a6f7264e70052887a69b98a8fb755a9769d125 (patch) | |
tree | ba8b5458df101fb853ad080ba18ad61c8be0606c /res/layout | |
parent | d0db4f8941e13766b78c90432b92b4eaccf71e2c (diff) | |
download | android_packages_apps_Dialer-b5a6f7264e70052887a69b98a8fb755a9769d125.tar.gz android_packages_apps_Dialer-b5a6f7264e70052887a69b98a8fb755a9769d125.tar.bz2 android_packages_apps_Dialer-b5a6f7264e70052887a69b98a8fb755a9769d125.zip |
Adding migrate promo to blocked numbers setting ui
This Migrate promo is shown so users have a way to migrate to the
framework blocking solution, directly from the settings. Previously,
users would have had to block a number to be presented with the
migration dialog.
UI: http://screen/GS8TdfKrnVv
Button Pressed: http://screen/ovd6NgVmOqq
Change-Id: I9c04b8afdf7c5681e09c02c7a4f6013c94b396d9
Fixes:27703938
(cherry picked from commit 3db9bde34452552973acefad5535a2273e9968fe)
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/blocked_number_header.xml | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/res/layout/blocked_number_header.xml b/res/layout/blocked_number_header.xml index 0af942943..e4b795fd8 100644 --- a/res/layout/blocked_number_header.xml +++ b/res/layout/blocked_number_header.xml @@ -61,7 +61,7 @@ android:orientation="vertical"> <TextView - android:id="@+id/textView" + android:id="@+id/blocked_number_text_view" style="@android:style/TextAppearance.Material.Subhead" android:layout_width="wrap_content" android:layout_height="48dp" @@ -119,6 +119,51 @@ </RelativeLayout> <LinearLayout + android:id="@+id/migrate_promo" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:visibility="gone"> + + <TextView + android:id="@+id/migrate_promo_header" + style="@android:style/TextAppearance.Material.Subhead" + android:layout_width="match_parent" + android:layout_height="48dp" + android:paddingStart="@dimen/blocked_number_container_padding" + android:paddingEnd="@dimen/blocked_number_container_padding" + android:gravity="center_vertical" + android:textStyle="bold" + android:text="@string/migrate_blocked_numbers_dialog_title" + android:textColor="@color/blocked_number_header_color"/> + + <TextView + android:id="@+id/migrate_promo_description" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/blocked_number_container_padding" + android:layout_marginEnd="@dimen/blocked_number_container_padding" + android:layout_marginBottom="@dimen/blocked_number_container_padding" + android:text="@string/migrate_blocked_numbers_dialog_message" + android:textColor="@color/secondary_text_color"/> + + <Button + android:id="@+id/migrate_promo_allow_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/migrate_blocked_numbers_dialog_allow_button" + android:layout_marginStart="@dimen/blocked_number_container_padding" + android:layout_marginEnd="@dimen/blocked_number_container_padding" + android:layout_gravity="end" + style="@style/DialerPrimaryFlatButtonStyle" + android:layout_marginBottom="@dimen/blocked_number_container_padding"/> + + <View + style="@style/FullWidthDivider"/> + + </LinearLayout> + + <LinearLayout android:id="@+id/add_number_linear_layout" android:layout_width="match_parent" android:layout_height="wrap_content" |