diff options
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/onboarding_activity.xml | 21 | ||||
-rw-r--r-- | res/layout/onboarding_screen_fragment.xml | 66 |
2 files changed, 87 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/onboarding_fragment_container"> +</FrameLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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="match_parent" + android:layout_height="match_parent" + android:padding="20dp" > + + <TextView + android:id="@+id/onboarding_screen_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_above="@+id/onboarding_screen_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textColor="@color/onboarding_primary_text_color" /> + + <TextView + android:id="@id/onboarding_screen_content" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_above="@+id/onboarding_buttons_container" + android:layout_marginTop="20dp" + android:textColor="@color/onboarding_primary_text_color" /> + + <LinearLayout + android:id="@id/onboarding_buttons_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_marginTop="20dp" > + + <Button + android:id="@+id/onboard_skip_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center" + android:text="@string/onboarding_skip_button" + android:textColor="@color/onboarding_primary_text_color" + style="?android:attr/borderlessButtonStyle" /> + + <Button + android:id="@+id/onboard_next_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center" + android:text="@string/onboarding_next_button" + android:textColor="@color/onboarding_primary_text_color" + style="?android:attr/borderlessButtonStyle" /> + + </LinearLayout> +</RelativeLayout> |