mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Fixed the button to show on Portrait mode..streamline added for work_mode_fab. Took out unneccessary attributes such as textColor for the button and took out background. How it looks in landscape: https://screenshot.googleplex.com/AVaUEztqsXYA28N How it looks in portrait: https://screenshot.googleplex.com/3oTG3j7yZLCxkLz Apk: https://drive.google.com/file/d/1qLeiJSF3lHf7tZzoHWwBHGxDgbveTIYX/view?usp=sharing Test: Manual - Tested on local Pixel device (Raven) Bug: 224731116 Bug: 224731300 Change-Id: If1392806adecf1ce02723d20686ca6bf524f6464
67 lines
2.9 KiB
XML
67 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2020 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.allapps.WorkEduCard xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:gravity="center">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/work_card"
|
|
android:layout_gravity="center_horizontal"
|
|
android:paddingEnd="@dimen/work_card_margin"
|
|
android:paddingStart="@dimen/work_card_margin"
|
|
android:paddingTop="@dimen/work_card_margin"
|
|
android:id="@+id/wrapper">
|
|
<TextView
|
|
style="@style/PrimaryHeadline"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:id="@+id/work_apps_paused_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/work_card_margin"
|
|
android:layout_marginRight="@dimen/work_card_margin"
|
|
android:text="@string/work_profile_edu_work_apps"
|
|
android:textSize="18sp" />
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/padded_rounded_button_height"
|
|
android:orientation="horizontal"
|
|
>
|
|
<FrameLayout
|
|
android:layout_width="@dimen/rounded_button_width"
|
|
android:layout_height="@dimen/rounded_button_width"
|
|
android:background="@drawable/rounded_action_button"
|
|
android:padding="@dimen/rounded_button_padding"
|
|
android:layout_alignParentRight="true">
|
|
<ImageButton
|
|
android:layout_width="@dimen/x_icon_size"
|
|
android:layout_height="@dimen/x_icon_size"
|
|
android:id="@+id/action_btn"
|
|
android:src="@drawable/ic_remove_no_shadow"
|
|
android:layout_gravity="center"
|
|
android:padding="@dimen/x_icon_padding" />
|
|
</FrameLayout>
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</com.android.launcher3.allapps.WorkEduCard> |