wownero
/
wownerujo
Archived
4
0
Fork 0

exchange & toolbar layout (#111)

upstream
m2049r 7 years ago committed by GitHub
parent f951e1a621
commit d3beb7ca3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,8 +8,8 @@ android {
applicationId "com.m2049r.xmrwallet"
minSdkVersion 21
targetSdkVersion 25
versionCode 31
versionName "1.1.3-alpha"
versionCode 33
versionName "1.1.5-alpha"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {

@ -96,7 +96,7 @@ public class WalletFragment extends Fragment
ivSynced = (ImageView) view.findViewById(R.id.ivSynced);
sCurrency = (Spinner) view.findViewById(R.id.sCurrency);
sCurrency.setAdapter(ArrayAdapter.createFromResource(getContext(), R.array.currency, R.layout.item_spinner));
sCurrency.setAdapter(ArrayAdapter.createFromResource(getContext(), R.array.currency, R.layout.item_spinner_balance));
bSend = (Button) view.findViewById(R.id.bSend);
bReceive = (Button) view.findViewById(R.id.bReceive);

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<padding
android:bottom="8dp"
android:left="8dp"
android:right="8dp"
android:top="8dp" />
<stroke
android:width="2dp"
android:color="@color/moneroGray" />
</shape>

@ -10,7 +10,7 @@
android:id="@+id/toolbar"
style="@style/ToolBarStyle.Event"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/backgound_toolbar_mainnet"
android:minHeight="?attr/actionBarSize" />

@ -10,7 +10,7 @@
android:id="@+id/toolbar"
style="@style/ToolBarStyle.Event"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/backgound_toolbar_mainnet"
android:minHeight="?attr/actionBarSize" />

@ -50,13 +50,15 @@
android:id="@+id/evAmount"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16sp" />
android:layout_marginBottom="16sp"
android:layout_marginTop="16sp"
android:orientation="vertical"
android:paddingEnd="56dp"
android:paddingStart="56dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4sp"
android:layout_marginTop="8sp"
android:orientation="horizontal"
android:weightSum="10">

@ -20,7 +20,6 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4sp"
android:layout_marginTop="4sp"
android:orientation="horizontal"
android:weightSum="10">
@ -59,14 +58,16 @@
android:id="@+id/evAmount"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4sp"
android:layout_marginTop="4sp" />
android:layout_marginBottom="16sp"
android:layout_marginTop="16sp"
android:orientation="vertical"
android:paddingEnd="56dp"
android:paddingStart="56dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4sp"
android:layout_marginTop="4sp"
android:orientation="horizontal"
android:weightSum="10">
@ -109,7 +110,7 @@
android:orientation="horizontal">
<TextView
style="@style/MoneroLabel.Caps.Stealth.Small"
style="@style/MoneroLabel.Caps.Gray.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|end"
@ -119,6 +120,7 @@
<Spinner
android:id="@+id/sMixin"
style="@style/MoneroSpinnerGray"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8sp"
@ -128,6 +130,7 @@
<Spinner
android:id="@+id/sPriority"
style="@style/MoneroSpinnerGray"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"

@ -61,7 +61,7 @@
android:paddingEnd="4dp"
android:paddingStart="4dp"
android:paddingTop="0dp"
tools:listitem="@layout/item_spinner" />
tools:listitem="@layout/item_spinner_balance" />
</LinearLayout>
<TextView

@ -3,84 +3,97 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<com.m2049r.xmrwallet.layout.CTextInputLayout
android:id="@+id/etAmount"
android:layout_width="0dp"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="3"
app:counterEnabled="false"
app:errorEnabled="true">
android:layout_marginStart="4dp"
android:orientation="horizontal">
<android.support.design.widget.TextInputEditText
style="@style/MoneroEdit"
<Spinner
android:id="@+id/sCurrencyA"
android:layout_width="56sp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:entries="@array/currency"
android:gravity="center"
android:textAlignment="center" />
<com.m2049r.xmrwallet.layout.CTextInputLayout
android:id="@+id/etAmount"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
android:hint="@string/receive_amount_hint"
android:imeOptions="actionDone"
android:inputType="numberDecimal"
tools:text="87.00000" />
android:layout_marginStart="16dp"
app:counterEnabled="false"
app:errorEnabled="true">
</com.m2049r.xmrwallet.layout.CTextInputLayout>
<android.support.design.widget.TextInputEditText
style="@style/MoneroEdit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:hint="@string/receive_amount_hint"
android:imeOptions="actionDone"
android:inputType="numberDecimal"
tools:text="87.00000" />
<Spinner
android:id="@+id/sCurrencyA"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="4dp"
android:entries="@array/currency"
android:gravity="center"
android:paddingBottom="8dp"
android:paddingTop="8dp"
android:textAlignment="center" />
</com.m2049r.xmrwallet.layout.CTextInputLayout>
</LinearLayout>
<FrameLayout
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginEnd="0sp"
android:layout_marginStart="8sp">
android:layout_marginStart="4dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/evExchange"
android:layout_width="wrap_content"
<Spinner
android:id="@+id/sCurrencyB"
style="@style/MoneroSpinnerGray"
android:layout_width="56sp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_traffic" />
android:entries="@array/currency"
android:gravity="center"
android:paddingBottom="8dp"
android:paddingTop="8dp"
android:textAlignment="center" />
<ProgressBar
android:id="@+id/pbExchange"
<TextView
android:id="@+id/tvAmountB"
style="@style/MoneroText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center|start"
android:layout_marginStart="16dp"
android:layout_weight="3"
android:padding="4dp"
android:singleLine="true"
android:text="--"
tools:text="87.00000" />
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminate="true"
android:visibility="invisible" />
</FrameLayout>
android:layout_marginEnd="0sp"
android:layout_marginStart="8sp">
<TextView
android:id="@+id/tvAmountB"
style="@style/MoneroText"
android:layout_width="0sp"
android:layout_height="wrap_content"
android:layout_gravity="center|end"
android:layout_weight="3"
android:singleLine="true"
android:text="--"
android:textAlignment="textEnd"
tools:text="87.00000" />
<ImageView
android:id="@+id/evExchange"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/ic_traffic" />
<Spinner
android:id="@+id/sCurrencyB"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="4dp"
android:entries="@array/currency"
android:gravity="center"
android:paddingBottom="8dp"
android:paddingTop="8dp"
android:textAlignment="center" />
<ProgressBar
android:id="@+id/pbExchange"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminate="true"
android:visibility="invisible" />
</FrameLayout>
</LinearLayout>
</merge>

@ -20,7 +20,7 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center"
android:layout_marginTop="-4dp"
android:layout_marginTop="-8dp"
android:src="@drawable/ic_logo_horizontol_xmrujo"
android:visibility="visible" />
@ -46,7 +46,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="-4dp"
android:visibility="invisible"
tools:text="monerujo" />
</LinearLayout>

@ -56,11 +56,7 @@
<item name="android:textColor">@color/moneroGray</item>
</style>
<style name="MoneroLabel.Caps.Stealth">
<item name="android:textColor">@color/moneroFab</item>
</style>
<style name="MoneroLabel.Caps.Stealth.Small">
<style name="MoneroLabel.Caps.Gray.Small">
<item name="android:textSize">12sp</item>
</style>
@ -249,6 +245,16 @@
</style>
<style name="MoneroTextAppearanceSpinnerItemGray" parent="android:TextAppearance.Widget.TextView.SpinnerItem">
<item name="android:textColor">@color/moneroGray</item>
</style>
<style name="MoneroSpinnerGray" parent="@style/Widget.AppCompat.Spinner">
<item name="android:background">@drawable/backgound_spinner_gray</item>
</style>
<style name="MoneroSpinnerItemGray" parent="android:Widget.TextView.SpinnerItem">
<item name="android:textAppearance">@style/MoneroTextAppearanceSpinnerItemGray</item>
</style>
</resources>