From 545a779f0df2825067679bee09bc966ca12b5974 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 29 Sep 2015 15:02:34 -0700 Subject: First pass for Dialer onboarding flow * Add OnboardingActivity that controls the onboarding the UI ensuring that the user grants the necessary permissions before the Dialer can start. * Add first pass (no graphics, eyeballed measurements) for the screens that request for default dialer as well as permissions * OnboardingActivity is not actually launched at this moment - will be tied in to the various Dialer activities in a follow up CL. * Add tests for logic that controls the display of the screens in anticipation of future additions to the onboarding flow. * Add mockito library to DialerTests's Android.mk Bug: 24270592 Change-Id: I00d0f75edaecaa85042b136b0d830b5fbb3a0a73 --- res/layout/onboarding_activity.xml | 21 ++++++++++ res/layout/onboarding_screen_fragment.xml | 66 +++++++++++++++++++++++++++++++ res/values/colors.xml | 5 +++ res/values/strings.xml | 18 +++++++++ res/values/styles.xml | 7 ++++ 5 files changed, 117 insertions(+) create mode 100644 res/layout/onboarding_activity.xml create mode 100644 res/layout/onboarding_screen_fragment.xml (limited to 'res') diff --git a/res/layout/onboarding_activity.xml b/res/layout/onboarding_activity.xml new file mode 100644 index 000000000..a893ce4e7 --- /dev/null +++ b/res/layout/onboarding_activity.xml @@ -0,0 +1,21 @@ + + + + + diff --git a/res/layout/onboarding_screen_fragment.xml b/res/layout/onboarding_screen_fragment.xml new file mode 100644 index 000000000..f4136aed7 --- /dev/null +++ b/res/layout/onboarding_screen_fragment.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + +