Files
frameworks_base/packages/SystemUI/res/layout/ongoing_privacy_chip.xml
Fabian Kozynski 216812e981 Change Chip between QS and QQS
Chip animates via fade out and fade in. No redlines for margins and
padding.

Test: manual

Change-Id: I10f024eb06f88b6493687febdbb0d5ccbba450b8
2019-02-07 11:20:34 -05:00

68 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2018 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.systemui.privacy.OngoingPrivacyChip
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/privacy_chip"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_marginLeft="@dimen/ongoing_appops_chip_margin"
android:layout_marginRight="@dimen/ongoing_appops_chip_margin"
android:layout_marginTop="@dimen/ongoing_appops_top_chip_margin"
android:layout_marginBottom="@dimen/ongoing_appops_top_chip_margin"
android:gravity="center_vertical|center_horizontal"
android:layout_gravity="center_vertical|start"
android:orientation="horizontal"
android:paddingStart="@dimen/ongoing_appops_chip_side_padding"
android:paddingEnd="@dimen/ongoing_appops_chip_side_padding"
android:focusable="true">
<TextView
android:id="@+id/in_use_text"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_gravity="center_vertical|start"
android:layout_marginEnd="@dimen/ongoing_appops_chip_icon_margin_collapsed"
android:gravity="center_vertical"
android:textAppearance="@style/TextAppearance.StatusBar.Clock"
android:textColor="@color/status_bar_clock_color"
android:text="@string/ongoing_privacy_chip_in_use"
/>
<LinearLayout
android:id="@+id/icons_container"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
/>
<TextView
android:id="@+id/text_container"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:singleLine="true"
android:ellipsize="end"
android:lines="1"
android:layout_gravity="center_vertical|end"
android:gravity="center_vertical"
android:textAppearance="@style/TextAppearance.StatusBar.Clock"
android:textColor="@color/status_bar_clock_color"
android:layout_marginStart="@dimen/ongoing_appops_chip_icon_margin_collapsed"
android:layout_marginEnd="@dimen/ongoing_appops_chip_icon_margin_collapsed"
/>
</com.android.systemui.privacy.OngoingPrivacyChip>