Uses new Widget.DeviceDefault.Button.Colored style. Also updates some of the styles to use DeviceDefault instead of Material styles for a bunch of button styles. Bug: 64122537 Bug: 69314526 Test: ag/3228846 Change-Id: I478dfdb5ea67ae1882cfee66050ed44fcda3d80d
71 lines
2.6 KiB
XML
71 lines
2.6 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.
|
|
-->
|
|
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/white"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="12dp"
|
|
android:paddingBottom="20dp"
|
|
android:paddingTop="16dp"
|
|
android:orientation="horizontal"
|
|
android:minHeight="@dimen/dashboard_tile_minimum_height">
|
|
|
|
<ImageView
|
|
android:id="@android:id/icon"
|
|
android:layout_width="@dimen/dashboard_tile_image_size"
|
|
android:layout_height="@dimen/dashboard_tile_image_size" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:layout_marginStart="18dp"
|
|
android:layout_marginTop="2dp"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@android:id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="6dp"
|
|
android:textAppearance="@style/TextAppearance.TileTitle" />
|
|
|
|
<TextView
|
|
android:id="@android:id/summary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginEnd="50dp"
|
|
android:textAppearance="@style/TextAppearance.SuggestionSummary" />
|
|
|
|
<Button
|
|
android:id="@android:id/primary"
|
|
style="@style/ActionPrimaryButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:text="@string/suggestion_button_text" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |