]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use clip-art check icon, and show it as soon as the submit completes
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 6 Dec 2018 18:01:38 +0000 (18:01 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 6 Dec 2018 18:01:38 +0000 (18:01 +0000)
app/src/main/java/net/ktnx/mobileledger/NewTransactionActivity.java
app/src/main/res/drawable/ic_check_white_24dp.xml [new file with mode: 0644]

index b229c0ff44b0de9a2ae76ca61adb55f528b44f8e..6709b7d9e566af4acceb203c54e6df951b8f83cc 100644 (file)
@@ -225,6 +225,7 @@ public class NewTransactionActivity extends AppCompatActivity implements TaskCal
 
     @Override
     public void done() {
+        fab.setImageResource(R.drawable.ic_check_white_24dp);
         fab.setEnabled(true);
 
         AnimatorSet set = (AnimatorSet) AnimatorInflater.loadAnimator(this, R.animator.new_trans_animation);
@@ -234,7 +235,6 @@ public class NewTransactionActivity extends AppCompatActivity implements TaskCal
         at_fade_out.postDelayed(new Runnable() {
             @Override
             public void run() {
-                fab.setImageResource(R.drawable.ic_thick_check_white);
 
                 final Handler at_fade_in = new Handler();
                 at_fade_in.postDelayed(new Runnable() {
diff --git a/app/src/main/res/drawable/ic_check_white_24dp.xml b/app/src/main/res/drawable/ic_check_white_24dp.xml
new file mode 100644 (file)
index 0000000..ccd8bbe
--- /dev/null
@@ -0,0 +1,5 @@
+<vector android:height="24dp" android:tint="#EEEEEE"
+    android:viewportHeight="24.0" android:viewportWidth="24.0"
+    android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#FF000000" android:pathData="M9,16.17L4.83,12l-1.42,1.41L9,19 21,7l-1.41,-1.41z"/>
+</vector>