• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2021 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<com.android.launcher3.taskbar.TaskbarEduView xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    xmlns:launcher="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:layout_gravity="bottom"
24    android:gravity="bottom"
25    android:orientation="vertical"
26    android:layout_marginHorizontal="108dp">
27
28    <androidx.constraintlayout.widget.ConstraintLayout
29        android:id="@+id/edu_view"
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:background="@drawable/bg_rounded_corner_bottom_sheet"
33        android:gravity="center_horizontal"
34        android:paddingHorizontal="36dp"
35        android:paddingTop="64dp">
36
37        <com.android.launcher3.taskbar.TaskbarEduPagedView
38            android:id="@+id/content"
39            android:clipToPadding="false"
40            android:layout_width="match_parent"
41            android:layout_height="378dp"
42            app:layout_constraintTop_toTopOf="parent"
43            launcher:pageIndicator="@+id/content_page_indicator" />
44
45        <Button
46            android:id="@+id/edu_start_button"
47            android:layout_width="wrap_content"
48            android:layout_height="36dp"
49            android:layout_marginBottom="18dp"
50            android:layout_marginTop="32dp"
51            app:layout_constraintTop_toBottomOf="@id/content"
52            app:layout_constraintBottom_toBottomOf="parent"
53            app:layout_constraintStart_toStartOf="parent"
54            android:text="@string/taskbar_edu_close"
55            style="@style/TaskbarEdu.Button.Close"
56            android:textColor="?android:attr/textColorPrimary"/>
57
58        <com.android.launcher3.pageindicators.PageIndicatorDots
59            android:id="@+id/content_page_indicator"
60            android:layout_width="wrap_content"
61            android:layout_height="wrap_content"
62            app:layout_constraintTop_toTopOf="@id/edu_start_button"
63            app:layout_constraintBottom_toBottomOf="@id/edu_start_button"
64            app:layout_constraintStart_toStartOf="parent"
65            app:layout_constraintEnd_toEndOf="parent"
66            android:elevation="1dp" />
67
68        <Button
69            android:id="@+id/edu_end_button"
70            android:layout_width="wrap_content"
71            android:layout_height="0dp"
72            app:layout_constraintTop_toTopOf="@id/edu_start_button"
73            app:layout_constraintBottom_toBottomOf="@id/edu_start_button"
74            app:layout_constraintEnd_toEndOf="parent"
75            android:text="@string/taskbar_edu_next"
76            style="@style/TaskbarEdu.Button.Next"
77            android:textColor="?androidprv:attr/textColorOnAccent"/>
78    </androidx.constraintlayout.widget.ConstraintLayout>
79</com.android.launcher3.taskbar.TaskbarEduView>