wider amount field with % left/right padding

This commit is contained in:
m2049r 2017-11-18 10:19:16 +01:00
parent ed8010c92c
commit 7b19e9a2bd
2 changed files with 46 additions and 14 deletions

View File

@ -46,15 +46,31 @@
android:textAlignment="center" android:textAlignment="center"
tools:text="9wZnnNctRc7RaLya1rxykH21dUwfQpNGmVLjAvkvqe7nKT2Mw848AJNGMunW5xjoSZ5vCCU3uDnUoVqSSHxzRtQBE3f6crx" /> tools:text="9wZnnNctRc7RaLya1rxykH21dUwfQpNGmVLjAvkvqe7nKT2Mw848AJNGMunW5xjoSZ5vCCU3uDnUoVqSSHxzRtQBE3f6crx" />
<com.m2049r.xmrwallet.layout.ExchangeView <LinearLayout
android:id="@+id/evAmount"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="16sp" android:orientation="horizontal"
android:layout_marginTop="16sp" android:weightSum="12">
android:orientation="vertical"
android:paddingEnd="56dp" <Space
android:paddingStart="56dp" /> android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<com.m2049r.xmrwallet.layout.ExchangeView
android:id="@+id/evAmount"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:layout_marginTop="16dp"
android:layout_weight="10"
android:orientation="vertical" />
<Space
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@ -49,15 +49,31 @@
android:text="@string/send_qr_hint" /> android:text="@string/send_qr_hint" />
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="12">
<Space
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<com.m2049r.xmrwallet.layout.ExchangeView <com.m2049r.xmrwallet.layout.ExchangeView
android:id="@+id/evAmount" android:id="@+id/evAmount"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:layout_marginTop="0dp" android:layout_marginTop="0dp"
android:orientation="vertical" android:layout_weight="10"
android:paddingEnd="56dp" android:orientation="vertical" />
android:paddingStart="56dp" />
<Space
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"