Verified Commit 176c0a9c authored by Sarath's avatar Sarath
Browse files

OpenDime activity material theme update

parent 27ae5ebc
......@@ -152,6 +152,7 @@
android:label="@string/app_name" />
<activity
android:name=".OpenDimeActivity"
android:theme="@style/Theme.Samourai.Material"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/app_name">
<intent-filter>
......
......@@ -53,6 +53,8 @@ import com.github.mjdev.libaums.fs.FileSystem;
import com.github.mjdev.libaums.fs.FileSystemFactory;
import com.github.mjdev.libaums.fs.UsbFile;
import com.github.mjdev.libaums.fs.UsbFileInputStream;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.WriterException;
import com.google.zxing.client.android.Contents;
......@@ -88,9 +90,9 @@ public class OpenDimeActivity extends SamouraiActivity {
private ImageView ivQR = null;
private Button btTopUp = null;
private Button btView = null;
private Button btSweep = null;
private MaterialButton btTopUp = null;
private MaterialButton btView = null;
private MaterialButton btSweep = null;
private String strAddress = null;
private CharSequenceX strPrivKey = null;
......@@ -182,9 +184,9 @@ public class OpenDimeActivity extends SamouraiActivity {
tvBalance = (TextView)findViewById(R.id.balanceAmount);
tvKey = (TextView)findViewById(R.id.keyStatus);
ivQR = (ImageView)findViewById(R.id.qr);
btTopUp = (Button)findViewById(R.id.topup);
btView = (Button)findViewById(R.id.view);
btSweep = (Button)findViewById(R.id.sweep);
btTopUp = (MaterialButton)findViewById(R.id.topup);
btView = (MaterialButton)findViewById(R.id.view);
btSweep = (MaterialButton)findViewById(R.id.sweep);
btTopUp.setVisibility(View.GONE);
/*
......@@ -196,7 +198,7 @@ public class OpenDimeActivity extends SamouraiActivity {
}
});
*/
btView = (Button)findViewById(R.id.view);
btView = (MaterialButton)findViewById(R.id.view);
btView.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
......@@ -213,7 +215,7 @@ public class OpenDimeActivity extends SamouraiActivity {
}
});
btSweep = (Button)findViewById(R.id.sweep);
btSweep = (MaterialButton)findViewById(R.id.sweep);
btSweep.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
......@@ -230,7 +232,7 @@ public class OpenDimeActivity extends SamouraiActivity {
if(strAddress != null) {
new AlertDialog.Builder(OpenDimeActivity.this)
new MaterialAlertDialogBuilder(OpenDimeActivity.this)
.setTitle(R.string.app_name)
.setMessage(R.string.receive_address_to_clipboard)
.setCancelable(false)
......@@ -297,7 +299,7 @@ public class OpenDimeActivity extends SamouraiActivity {
if(strAddress != null) {
new AlertDialog.Builder(OpenDimeActivity.this)
new MaterialAlertDialogBuilder(OpenDimeActivity.this)
.setTitle(R.string.app_name)
.setMessage(R.string.receive_address_to_share)
.setCancelable(false)
......
......@@ -134,8 +134,8 @@
android:gravity="right"
>
<Button
style="?android:attr/buttonStyleSmall"
<com.google.android.material.button.MaterialButton
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="80dp"
android:layout_height="75dp"
android:text="@string/opendime_topup"
......@@ -144,8 +144,8 @@
android:background="@color/window"
/>
<Button
style="?android:attr/buttonStyleSmall"
<com.google.android.material.button.MaterialButton
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="80dp"
android:layout_height="75dp"
android:text="@string/opendime_view"
......@@ -155,8 +155,8 @@
android:background="@color/window"
/>
<Button
style="?android:attr/buttonStyleSmall"
<com.google.android.material.button.MaterialButton
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="80dp"
android:layout_height="75dp"
android:text="@string/opendime_sweep"
......
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity">
<item android:id="@+id/action_refresh"
android:icon="@drawable/ic_action_refresh"
android:visible="true"
android:title=""
android:showAsAction="always"
/>
app:showAsAction="ifRoom" />
<item android:id="@+id/action_share_receive"
android:icon="@drawable/ic_share_white_24dp"
android:visible="true"
android:title=""
android:showAsAction="always"
/>
app:showAsAction="always" />
</menu>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment