summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/theme/common/res/values/styles.xml
blob: ac23bdf98df1b8b2fd179b4a1ce147847a828e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?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
  -->
<resources>
  <!-- TODO(calderwoodra): Delete this once new call log and new voicemail ship. -->
  <!-- Ideally we would make a callLogCardStyle attribute but we don't want to expand dialer/app -->
  <style name="CallLogCardStyle" parent="CardView">
    <item name="android:layout_width">match_parent</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="android:layout_margin">4dp</item>
    <item name="android:baselineAligned">false</item>
    <item name="cardCornerRadius">2dp</item>
    <item name="cardBackgroundColor">?android:attr/colorBackgroundFloating</item>
  </style>

  <!-- This Checkbox style helps align checkboxes with the common list element layout(Image + text) -->
  <style name="DialerCheckboxStyle" parent="Widget.AppCompat.CompoundButton.CheckBox">
    <item name="android:layout_marginStart">20dp</item>
    <item name="android:paddingLeft">12dp</item>
  </style>

  <style name="DialerBottomSheetDialogStyle" parent="Theme.Design.BottomSheetDialog">
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="bottomSheetStyle">@style/BottomSheetStyle</item>
  </style>

  <style name="BottomSheetStyle" parent="Widget.Design.BottomSheet.Modal">
    <item name="android:background">@drawable/bottom_sheet_background</item>
  </style>
</resources>