summaryrefslogtreecommitdiff
path: root/chromium/components/autofill_assistant/android/internal/java/res/layout/autofill_assistant_form_counter.xml
blob: 7ae0cf25c9e93e251aa639c5e7033ccaa6692611 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2019 The Chromium Authors. All rights reserved.
     Use of this source code is governed by a BSD-style license that can be
     found in the LICENSE file. -->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:gravity="center_vertical">
    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:orientation="vertical">
        <TextView
            android:id="@+id/label"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textAppearance="@style/TextAppearance.AssistantBlackTitle"/>
        <TextView
            android:id="@+id/description_line_1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textAppearance="@style/TextAppearance.TextMedium.Secondary"/>
        <TextView
            android:id="@+id/description_line_2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textAppearance="@style/TextAppearance.TextMedium.Secondary"/>
    </LinearLayout>
    <org.chromium.ui.widget.ChromeImageView
        android:id="@+id/decrease_button"
        android:layout_width="@dimen/autofill_assistant_minimum_touch_target_size"
        android:layout_height="@dimen/autofill_assistant_minimum_touch_target_size"
        android:padding="@dimen/autofill_assistant_form_counter_button_padding"
        android:tint="@color/blue_when_enabled"
        android:contentDescription="@string/autofill_assistant_decrease_value"
        app:srcCompat="@drawable/ic_remove_outline_white_24dp"/>
    <TextView
        android:id="@+id/value"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:textAppearance="@style/TextAppearance.TextLarge.Blue"/>
    <org.chromium.ui.widget.ChromeImageView
        android:id="@+id/increase_button"
        android:layout_width="@dimen/autofill_assistant_minimum_touch_target_size"
        android:layout_height="@dimen/autofill_assistant_minimum_touch_target_size"
        android:padding="@dimen/autofill_assistant_form_counter_button_padding"
        android:tint="@color/blue_when_enabled"
        android:contentDescription="@string/autofill_assistant_increase_value"
        app:srcCompat="@drawable/ic_add_outline_white_24dp"/>
</LinearLayout>