Files
frameworks_base/packages/SystemUI/res/layout/ongoing_privacy_chip.xml
Fabian Kozynski b10ef8ddff Vis fixes to Privacy chip
Test: manual
Fixes: 124467719
Change-Id: Iaba017cee0992cbebe153d70c0bddbee44b553ec
2019-02-15 15:10:47 -05:00

61 lines
2.7 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_gravity="center_vertical|start"
android:gravity="center_vertical"
android:orientation="horizontal"
android:focusable="true">
<LinearLayout
android:id="@+id/background"
android:layout_height="@dimen/ongoing_appops_chip_height"
android:layout_width="wrap_content"
>
<LinearLayout
android:id="@+id/icons_container"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:layout_marginStart="@dimen/ongoing_appops_chip_items_margin"
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:layout_gravity="center_vertical|end"
android:paddingStart="@dimen/ongoing_appops_chip_text_padding"
android:paddingEnd="@dimen/ongoing_appops_chip_text_padding"
android:gravity="center_vertical"
android:singleLine="true"
android:ellipsize="end"
android:lines="1"
android:textAppearance="@style/TextAppearance.StatusBar.Clock"
android:textSize="@dimen/ongoing_appops_chip_text_size"
android:textColor="@color/status_bar_clock_color"
/>
</LinearLayout>
</com.android.systemui.privacy.OngoingPrivacyChip>