Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 191b688c authored by Tony Mak's avatar Tony Mak Committed by Sunny Goyal
Browse files

Bottom user education view shown in work tab

Introduced a BottomUserEducationView for similar use case.

Screenshot: https://hsv.googleplex.com/4856820942241792

BUG=69963630

Change-Id: Ia818ee44fa5ce97ad1778f33e6a9a3a36cea5017
parent 4018f3df
Loading
Loading
Loading
Loading
+12.7 KiB
Loading image diff...
+6.92 KiB
Loading image diff...
+20.2 KiB
Loading image diff...
+40.9 KiB
Loading image diff...
+57 −0
Original line number Diff line number Diff line
<?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>
 No newline at end of file
Loading