moving the history item padding into the items themselves

This commit is contained in:
tibbi 2022-01-31 23:09:41 +01:00
parent dbc767ce52
commit b0d5b8709f
2 changed files with 7 additions and 5 deletions

View file

@ -5,6 +5,5 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:paddingStart="@dimen/medium_margin"
android:paddingTop="@dimen/activity_margin"
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" />

View file

@ -5,7 +5,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground"
android:padding="@dimen/normal_margin">
android:paddingStart="@dimen/bigger_margin"
android:paddingTop="@dimen/normal_margin"
android:paddingEnd="@dimen/bigger_margin"
android:paddingBottom="@dimen/normal_margin">
<TextView
android:id="@+id/item_formula"
@ -14,20 +17,20 @@
android:layout_marginEnd="@dimen/medium_margin"
android:ellipsize="end"
android:maxLines="1"
android:textSize="@dimen/normal_text_size"
android:paddingStart="@dimen/small_margin"
android:textSize="@dimen/normal_text_size"
tools:text="2 + 2" />
<TextView
android:id="@+id/item_result"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/medium_margin"
android:layout_below="@+id/item_formula"
android:layout_marginEnd="@dimen/medium_margin"
android:ellipsize="end"
android:maxLines="1"
android:textSize="@dimen/normal_text_size"
android:paddingStart="@dimen/small_margin"
android:textSize="@dimen/normal_text_size"
tools:text="= 4" />
</RelativeLayout>