add padding to elements
This commit is contained in:
parent
7cd34d2969
commit
fac728df0a
|
@ -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">
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue