Relax paddings between texts and their drawable.

This commit is contained in:
Andreas Schildbach 2021-01-14 18:55:46 +01:00
parent 22f7ba44a6
commit 7bd0340303
4 changed files with 7 additions and 7 deletions

View file

@ -3,7 +3,7 @@
style="?android:attr/dropDownItemStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="@dimen/list_entry_padding_horizontal"
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax"
android:minHeight="52dp"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax"
android:textSize="@dimen/font_size_large" />

View file

@ -25,7 +25,7 @@
android:id="@+id/directions_query_history_entry_from"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="@dimen/list_entry_padding_horizontal"
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax"
android:gravity="center_vertical"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax"
android:paddingRight="@dimen/list_entry_padding_horizontal_cram"
@ -35,7 +35,7 @@
android:id="@+id/directions_query_history_entry_to"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="@dimen/list_entry_padding_horizontal"
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax"
android:gravity="center_vertical"
android:paddingBottom="@dimen/list_entry_padding_vertical_verylax"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax"
@ -49,7 +49,7 @@
android:layout_gravity="center"
android:layout_weight="2"
android:drawableLeft="@drawable/ic_beenhere_grey600_24dp"
android:drawablePadding="@dimen/list_entry_padding_horizontal"
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax"
android:gravity="left|center_vertical"
android:paddingLeft="@dimen/list_entry_padding_horizontal_lax"
android:paddingRight="@dimen/list_entry_padding_horizontal_cram" />

View file

@ -51,14 +51,14 @@
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="50"
android:drawablePadding="@dimen/list_entry_padding_horizontal" />
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax" />
<de.schildbach.oeffi.directions.LocationTextView
android:id="@+id/directions_trip_details_location_to"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="50"
android:drawablePadding="@dimen/list_entry_padding_horizontal" />
android:drawablePadding="@dimen/list_entry_padding_horizontal_lax" />
</LinearLayout>
<TableLayout

View file

@ -156,7 +156,7 @@ public class LocationView extends FrameLayout implements LocationHelper.Callback
textView.setSelectAllOnFocus(true);
textView.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
textView.setThreshold(0);
textView.setCompoundDrawablePadding(res.getDimensionPixelSize(R.dimen.list_entry_padding_horizontal));
textView.setCompoundDrawablePadding(res.getDimensionPixelSize(R.dimen.list_entry_padding_horizontal_lax));
final int paddingCram = res.getDimensionPixelSize(R.dimen.list_entry_padding_horizontal_cram);
final int paddingLax = res.getDimensionPixelSize(R.dimen.list_entry_padding_horizontal_lax);
textView.setPadding(paddingLax, paddingCram, paddingLax, paddingCram);