mirror of
https://github.com/m2049r/xmrwallet
synced 2025-04-24 04:29:58 +02:00
Layout tweaks (#319)
* sweep layout tweak * reduce label to fit * change sweep message
This commit is contained in:
parent
9d41d5da52
commit
817816cd34
app/src/main
java/com/m2049r/xmrwallet/fragment/send
res
layout
values-de
values-es
values-fr
values-it
values-nb
values-zh-rCN
values-zh-rTW
values
@ -60,9 +60,8 @@ public class SendAmountWizardFragment extends SendWizardFragment {
|
||||
|
||||
private TextView tvFunds;
|
||||
private ExchangeTextView evAmount;
|
||||
private NumberPadView numberPad;
|
||||
private View llAmount;
|
||||
private View ivSweep;
|
||||
private View rlSweep;
|
||||
private ImageButton ibSweep;
|
||||
|
||||
@Override
|
||||
@ -78,12 +77,11 @@ public class SendAmountWizardFragment extends SendWizardFragment {
|
||||
tvFunds = (TextView) view.findViewById(R.id.tvFunds);
|
||||
|
||||
evAmount = (ExchangeTextView) view.findViewById(R.id.evAmount);
|
||||
numberPad = (NumberPadView) view.findViewById(R.id.numberPad);
|
||||
numberPad.setListener(evAmount);
|
||||
((NumberPadView) view.findViewById(R.id.numberPad)).setListener(evAmount);
|
||||
|
||||
rlSweep = view.findViewById(R.id.rlSweep);
|
||||
llAmount = view.findViewById(R.id.llAmount);
|
||||
ivSweep = view.findViewById(R.id.ivSweep);
|
||||
ivSweep.setOnClickListener(new View.OnClickListener() {
|
||||
view.findViewById(R.id.ivSweep).setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
sweepAll(false);
|
||||
@ -110,11 +108,11 @@ public class SendAmountWizardFragment extends SendWizardFragment {
|
||||
if (spendAllMode) {
|
||||
ibSweep.setVisibility(View.INVISIBLE);
|
||||
llAmount.setVisibility(View.GONE);
|
||||
ivSweep.setVisibility(View.VISIBLE);
|
||||
rlSweep.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
ibSweep.setVisibility(View.VISIBLE);
|
||||
llAmount.setVisibility(View.VISIBLE);
|
||||
ivSweep.setVisibility(View.GONE);
|
||||
rlSweep.setVisibility(View.GONE);
|
||||
}
|
||||
this.spendAllMode = spendAllMode;
|
||||
}
|
||||
|
@ -57,11 +57,29 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivSweep"
|
||||
<RelativeLayout
|
||||
android:id="@+id/rlSweep"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/ic_all_inclusive_24dp"
|
||||
android:visibility="gone"/>
|
||||
android:visibility="gone">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivSweep"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_above="@id/tvSweep"
|
||||
android:layout_alignParentTop="true"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/ic_all_inclusive_24dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSweep"
|
||||
style="@style/MoneroLabel.Heading.Donation"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/send_sweepall" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
@ -237,7 +237,7 @@
|
||||
<string name="send_address_title">Adresse</string>
|
||||
<string name="send_amount_title">Betrag</string>
|
||||
<string name="send_settings_title">Optionen</string>
|
||||
<string name="send_confirm_title">Annehmen</string>
|
||||
<string name="send_confirm_title">Gebühr</string>
|
||||
<string name="send_success_title">Fertig</string>
|
||||
|
||||
<string name="send_amount_label">Betrag</string>
|
||||
@ -317,4 +317,5 @@
|
||||
<string name="accounts_balance">%1$s XMR</string>
|
||||
<string name="accounts_new">Added new account #%1$d</string>
|
||||
<string name="tx_account">Account #</string>
|
||||
<string name="send_sweepall">Send all confirmed funds in this account!</string>
|
||||
</resources>
|
||||
|
@ -302,4 +302,5 @@
|
||||
<string name="accounts_balance">%1$s XMR</string>
|
||||
<string name="accounts_new">Added new account #%1$d</string>
|
||||
<string name="tx_account">Account #</string>
|
||||
<string name="send_sweepall">Send all confirmed funds in this account!</string>
|
||||
</resources>
|
||||
|
@ -320,4 +320,5 @@
|
||||
<string name="accounts_balance">%1$s XMR</string>
|
||||
<string name="accounts_new">Nouveau Compte #%1$d ajouté</string>
|
||||
<string name="tx_account">Compte #</string>
|
||||
<string name="send_sweepall">Send all confirmed funds in this account!</string>
|
||||
</resources>
|
||||
|
@ -318,4 +318,5 @@
|
||||
<string name="accounts_balance">%1$s XMR</string>
|
||||
<string name="accounts_new">Added new account #%1$d</string>
|
||||
<string name="tx_account">Account #</string>
|
||||
<string name="send_sweepall">Send all confirmed funds in this account!</string>
|
||||
</resources>
|
||||
|
@ -316,4 +316,5 @@
|
||||
<string name="accounts_balance">%1$s XMR</string>
|
||||
<string name="accounts_new">Added new account #%1$d</string>
|
||||
<string name="tx_account">Account #</string>
|
||||
<string name="send_sweepall">Send all confirmed funds in this account!</string>
|
||||
</resources>
|
||||
|
@ -314,4 +314,5 @@
|
||||
<string name="accounts_balance">%1$s XMR</string>
|
||||
<string name="accounts_new">Added new account #%1$d</string>
|
||||
<string name="tx_account">Account #</string>
|
||||
<string name="send_sweepall">Send all confirmed funds in this account!</string>
|
||||
</resources>
|
||||
|
@ -315,4 +315,5 @@
|
||||
<string name="accounts_balance">%1$s XMR</string>
|
||||
<string name="accounts_new">Added new account #%1$d</string>
|
||||
<string name="tx_account">Account #</string>
|
||||
<string name="send_sweepall">Send all confirmed funds in this account!</string>
|
||||
</resources>
|
||||
|
@ -258,6 +258,8 @@
|
||||
|
||||
<string name="send_create_tx_error_title">Create Transaction Error</string>
|
||||
|
||||
<string name="send_sweepall">Send all confirmed funds in this account!</string>
|
||||
|
||||
<string name="accounts_balance">%1$s XMR</string>
|
||||
<string name="accounts_new">Added new account #%1$d</string>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user