diff options
Diffstat (limited to 'java/com/android/dialer/helplines/res/layout/item_helpline.xml')
-rw-r--r-- | java/com/android/dialer/helplines/res/layout/item_helpline.xml | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/java/com/android/dialer/helplines/res/layout/item_helpline.xml b/java/com/android/dialer/helplines/res/layout/item_helpline.xml new file mode 100644 index 000000000..5160105a4 --- /dev/null +++ b/java/com/android/dialer/helplines/res/layout/item_helpline.xml @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2019-2021 The LineageOS 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" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/item" + android:background="?android:attr/selectableItemBackground" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:minHeight="48dp" + android:paddingTop="8dp" + android:paddingBottom="8dp"> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:layout_weight="1" + android:orientation="vertical" + android:layout_gravity="center_vertical"> + + <TextView + android:id="@+id/item_helpline_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="top|start" + tools:text="Title" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/helpline_primary_text_size"/> + + <TextView + android:id="@+id/item_helpline_categories" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + tools:text="Categories" + android:textColor="?android:attr/textColorSecondary" + android:visibility="gone" + tools:visibility="visible" + android:textSize="@dimen/helpline_secondary_text_size"/> + + <TextView + android:id="@+id/item_helpline_languages" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + tools:text="Languages" + android:textColor="?android:attr/textColorSecondary" + android:visibility="gone" + tools:visibility="visible" + android:textSize="@dimen/helpline_secondary_text_size"/> + </LinearLayout> + + <ImageView + android:id="@+id/item_helpline_call_icon" + android:layout_width="32dp" + android:layout_height="32dp" + android:layout_gravity="center|end" + android:layout_marginStart="16dp" + android:layout_marginEnd="16dp" + android:scaleType="center" + android:background="?android:attr/selectableItemBackgroundBorderless" + android:clickable="true" + android:focusable="true" + android:src="@drawable/ic_helpline_call" + android:visibility="visible"/> +</LinearLayout> |