Files
app_Settings/res/layout/time_zone_search_item.xml
Kanyinsola Fapohunda 39b2d41829 Fix item separation issue on region picker UI
Before: http://screen/B9t6MyQv4C9sPEx
After:  http://screen/3esiwXMJ5C6K5xX

Bug: 423538101
Test: tested manually, see screenshot above.
Flag: EXEMPT trivial bug fix
Change-Id: I9e494960b4357602a06d411a010111ad6b43c07f
2025-07-23 14:46:26 +00:00

84 lines
3.8 KiB
XML

<?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.
-->
<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:clipToPadding="false"
android:gravity="center_vertical"
android:layout_marginVertical="1dp"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:orientation="horizontal">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="?android:attr/listPreferredItemPaddingEnd">
<RadioButton
android:id="@+id/selected_radio_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
android:clickable="false"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="?android:attr/listPreferredItemPaddingStart"
android:ellipsize="marquee"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceListItem"
app:layout_constraintEnd_toStartOf="@+id/current_time"
app:layout_constraintStart_toEndOf="@+id/selected_radio_button"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/summary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="?android:attr/listPreferredItemPaddingEnd"
android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"
android:maxLines="10"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/current_time"
app:layout_constraintStart_toEndOf="@+id/selected_radio_button"
app:layout_constraintTop_toBottomOf="@id/title" />
<TextView
android:id="@+id/current_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary"
app:layout_constraintBottom_toBottomOf="@id/summary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_goneMarginBottom="0dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>