Signed-off-by: Louis1977 <luisgonzales272@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
80 lines
2.9 KiB
XML
80 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2014-2016 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.
|
|
-->
|
|
|
|
<androidx.cardview.widget.CardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/prefCard"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="75dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
card_view:cardCornerRadius="12dp"
|
|
card_view:cardElevation="4dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginHorizontal="32dp"
|
|
android:foreground="?android:attr/selectableItemBackground">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/icon_frame"
|
|
android:layout_width="wrap_content"
|
|
android:paddingStart="16dp"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:id="@android:id/icon"
|
|
android:layout_width="44dp"
|
|
android:layout_height="44dp"
|
|
android:scaleType="center" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:layout_centerInParent="true"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@android:id/title"
|
|
android:layout_width="180dp"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="marquee"
|
|
android:gravity="center"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:singleLine="true"
|
|
android:textStyle="bold"
|
|
android:textSize="16sp"/>
|
|
|
|
<TextView
|
|
android:id="@android:id/summary"
|
|
android:layout_width="180dp"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="marquee"
|
|
android:gravity="center"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:singleLine="true"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
</androidx.cardview.widget.CardView>
|