Relax list entry layouts.

This commit is contained in:
Andreas Schildbach 2021-01-30 18:32:48 +01:00
parent 8d8a3021d1
commit f54c12c728
10 changed files with 33 additions and 37 deletions

View file

@ -7,8 +7,7 @@
android:background="@drawable/list_entry_background" android:background="@drawable/list_entry_background"
android:descendantFocusability="blocksDescendants" android:descendantFocusability="blocksDescendants"
android:focusable="true" android:focusable="true"
android:foreground="?android:attr/selectableItemBackground" android:foreground="?android:attr/selectableItemBackground">
android:minHeight="?android:attr/listPreferredItemHeight">
<LinearLayout <LinearLayout
style="?android:attr/buttonBarStyle" style="?android:attr/buttonBarStyle"
@ -29,7 +28,7 @@
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax" android:drawablePadding="@dimen/list_entry_padding_horizontal_lax"
android:drawableTint="@color/fg_less_significant" android:drawableTint="@color/fg_less_significant"
android:gravity="center_vertical" android:gravity="center_vertical"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="@dimen/list_entry_padding_horizontal_cram" android:paddingRight="@dimen/list_entry_padding_horizontal_cram"
android:paddingTop="@dimen/list_entry_padding_vertical_verylax" /> android:paddingTop="@dimen/list_entry_padding_vertical_verylax" />
@ -41,7 +40,7 @@
android:drawableTint="@color/fg_less_significant" android:drawableTint="@color/fg_less_significant"
android:gravity="center_vertical" android:gravity="center_vertical"
android:paddingBottom="@dimen/list_entry_padding_vertical_verylax" android:paddingBottom="@dimen/list_entry_padding_vertical_verylax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="@dimen/list_entry_padding_horizontal_cram" /> android:paddingRight="@dimen/list_entry_padding_horizontal_cram" />
</LinearLayout> </LinearLayout>

View file

@ -6,18 +6,17 @@
android:background="@drawable/list_entry_background" android:background="@drawable/list_entry_background"
android:descendantFocusability="blocksDescendants" android:descendantFocusability="blocksDescendants"
android:focusable="true" android:focusable="true"
android:foreground="?android:attr/selectableItemBackground" android:foreground="?android:attr/selectableItemBackground">
android:minHeight="?android:attr/listPreferredItemHeight">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="@dimen/list_entry_padding_vertical_lax" android:paddingBottom="@dimen/list_entry_padding_vertical_verylax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="@dimen/list_entry_padding_horizontal_lax" android:paddingRight="@dimen/list_entry_padding_horizontal_verylax"
android:paddingTop="@dimen/list_entry_padding_vertical_lax"> android:paddingTop="@dimen/list_entry_padding_vertical_verylax">
<TextView <TextView
android:id="@+id/favorites_list_entry_network" android:id="@+id/favorites_list_entry_network"

View file

@ -12,7 +12,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingBottom="@dimen/list_entry_padding_vertical_verylax" android:paddingBottom="@dimen/list_entry_padding_vertical_verylax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="0px" android:paddingRight="0px"
android:paddingTop="@dimen/list_entry_padding_vertical_verylax"> android:paddingTop="@dimen/list_entry_padding_vertical_verylax">

View file

@ -6,16 +6,15 @@
android:background="@drawable/list_entry_background" android:background="@drawable/list_entry_background"
android:descendantFocusability="blocksDescendants" android:descendantFocusability="blocksDescendants"
android:focusable="true" android:focusable="true"
android:foreground="?android:attr/selectableItemBackground" android:foreground="?android:attr/selectableItemBackground">
android:minHeight="?android:attr/listPreferredItemHeight">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="@dimen/list_entry_padding_vertical_lax" android:paddingBottom="@dimen/list_entry_padding_vertical_verylax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="@dimen/list_entry_padding_horizontal_lax" android:paddingRight="@dimen/list_entry_padding_horizontal_verylax"
android:paddingTop="@dimen/list_entry_padding_vertical_lax"> android:paddingTop="@dimen/list_entry_padding_vertical_verylax">
<ImageView <ImageView
android:id="@+id/network_picker_entry_icon" android:id="@+id/network_picker_entry_icon"

View file

@ -6,9 +6,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/bg_divider" android:background="@color/bg_divider"
android:focusable="false" android:focusable="false"
android:paddingBottom="1dp" android:paddingBottom="@dimen/list_entry_padding_vertical_cram"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="@dimen/list_entry_padding_horizontal_lax" android:paddingRight="@dimen/list_entry_padding_horizontal_lax"
android:paddingTop="1dp" android:paddingTop="@dimen/list_entry_padding_vertical_cram"
android:textColor="@color/fg_less_significant" android:textColor="@color/fg_less_significant"
android:textStyle="bold" /> android:textStyle="bold" />

View file

@ -6,16 +6,15 @@
android:background="@drawable/list_entry_background" android:background="@drawable/list_entry_background"
android:descendantFocusability="blocksDescendants" android:descendantFocusability="blocksDescendants"
android:focusable="true" android:focusable="true"
android:foreground="?android:attr/selectableItemBackground" android:foreground="?android:attr/selectableItemBackground">
android:minHeight="?android:attr/listPreferredItemHeight">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="@dimen/list_entry_padding_vertical_lax" android:paddingBottom="@dimen/list_entry_padding_vertical_verylax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="@dimen/list_entry_padding_horizontal_lax" android:paddingRight="@dimen/list_entry_padding_horizontal_verylax"
android:paddingTop="@dimen/list_entry_padding_vertical_lax"> android:paddingTop="@dimen/list_entry_padding_vertical_verylax">
<FrameLayout <FrameLayout
android:id="@+id/plans_picker_entry_image" android:id="@+id/plans_picker_entry_image"

View file

@ -7,10 +7,10 @@
android:clipToPadding="false" android:clipToPadding="false"
android:focusable="true" android:focusable="true"
android:foreground="?android:attr/selectableItemBackground" android:foreground="?android:attr/selectableItemBackground"
android:paddingBottom="@dimen/list_entry_padding_vertical_lax" android:paddingBottom="@dimen/list_entry_padding_vertical_verylax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="@dimen/list_entry_padding_horizontal_lax" android:paddingRight="@dimen/list_entry_padding_horizontal_verylax"
android:paddingTop="@dimen/list_entry_padding_vertical_lax"> android:paddingTop="@dimen/list_entry_padding_vertical_verylax">
<!-- first row --> <!-- first row -->

View file

@ -6,8 +6,8 @@
android:background="@color/bg_divider" android:background="@color/bg_divider"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="@dimen/list_entry_padding_vertical_lax" android:paddingBottom="@dimen/list_entry_padding_vertical_lax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="@dimen/list_entry_padding_horizontal_lax" android:paddingRight="@dimen/list_entry_padding_horizontal_verylax"
android:paddingTop="@dimen/list_entry_padding_vertical_lax"> android:paddingTop="@dimen/list_entry_padding_vertical_lax">
<LinearLayout <LinearLayout

View file

@ -5,7 +5,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:baselineAligned="true" android:baselineAligned="true"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingTop="1dp"> android:paddingTop="@dimen/list_entry_padding_vertical_cram">
<de.schildbach.oeffi.stations.LineView <de.schildbach.oeffi.stations.LineView
android:id="@+id/stations_station_details_header_line_line" android:id="@+id/stations_station_details_header_line_line"

View file

@ -12,10 +12,10 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="@dimen/list_entry_padding_vertical_lax" android:paddingBottom="@dimen/list_entry_padding_vertical_verylax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax" android:paddingLeft="@dimen/list_entry_padding_horizontal_verylax"
android:paddingRight="@dimen/list_entry_padding_horizontal_lax" android:paddingRight="@dimen/list_entry_padding_horizontal_verylax"
android:paddingTop="@dimen/list_entry_padding_vertical_lax"> android:paddingTop="@dimen/list_entry_padding_vertical_verylax">
<!-- first row --> <!-- first row -->