add padding to elements

This commit is contained in:
Kay Faraday 2023-05-25 22:17:19 +00:00
parent 7cd34d2969
commit fac728df0a
3 changed files with 13 additions and 7 deletions

View File

@ -6,6 +6,7 @@
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/padding"
tools:context=".MainActivity"
android:orientation="vertical">

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="padding">16dp</dimen>
<dimen name="small_padding">8dp</dimen>
<dimen name="layout_margin">16dp</dimen>
</resources>

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="my_style"
layout_width="0dp"
layout_marginStart="16dp"
layout_marginEnd="16dp"
/>
</resources>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="my_style">
<item name="android:layout_marginTop">@dimen/layout_margin</item>
<item name="android:paddingTop">@dimen/small_padding</item>
</style></resources>