mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Introduced a BottomUserEducationView for similar use case. Screenshot: https://hsv.googleplex.com/4856820942241792 BUG=69963630 Change-Id: Ia818ee44fa5ce97ad1778f33e6a9a3a36cea5017
57 lines
2.2 KiB
XML
57 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2017 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.
|
|
-->
|
|
<com.android.launcher3.views.BottomUserEducationView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:background="?android:attr/colorAccent"
|
|
android:elevation="2dp"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="20dp"
|
|
android:paddingRight="20dp">
|
|
|
|
<ImageView
|
|
android:layout_width="134dp"
|
|
android:layout_height="134dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:src="@drawable/work_tab_user_education"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="12dp"
|
|
android:paddingStart="24dp"
|
|
android:paddingTop="12dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:fontFamily="roboto-medium"
|
|
android:text="@string/bottom_work_tab_user_education_title"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="20sp"/>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bottom_work_tab_user_education_body"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="14sp"/>
|
|
</LinearLayout>
|
|
|
|
</com.android.launcher3.views.BottomUserEducationView> |