Updated on 2026-08-14
This commit is contained in:
parent
3214c76cd2
commit
a952d32b15
4 changed files with 28 additions and 6 deletions
|
|
@ -6,6 +6,7 @@ import android.nfc.NfcAdapter;
|
|||
import android.nfc.Tag;
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.design.widget.FloatingActionButton;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.support.v4.widget.SwipeRefreshLayout;
|
||||
|
|
@ -49,7 +50,7 @@ public class VerifyCard extends Fragment implements SwipeRefreshLayout.OnRefresh
|
|||
|
||||
View v = inflater.inflate(R.layout.fr_verify_card, container, false);
|
||||
|
||||
mNfcManager = new NfcManager(this.getActivity(), this);
|
||||
mNfcManager = new NfcManager(getActivity(), this);
|
||||
|
||||
mSwipeRefreshLayout = v.findViewById(R.id.swipe_container);
|
||||
mSwipeRefreshLayout.setOnRefreshListener(this);
|
||||
|
|
@ -97,6 +98,9 @@ public class VerifyCard extends Fragment implements SwipeRefreshLayout.OnRefresh
|
|||
});
|
||||
|
||||
|
||||
FloatingActionButton fabMenu = v.findViewById(R.id.fabMenu);
|
||||
|
||||
|
||||
tvWallet = v.findViewById(R.id.tvWallet);
|
||||
tvWalletIdentity = v.findViewById(R.id.tvWalletIdentity);
|
||||
|
||||
|
|
@ -111,6 +115,7 @@ public class VerifyCard extends Fragment implements SwipeRefreshLayout.OnRefresh
|
|||
// }
|
||||
// }, 1000);
|
||||
// }
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
|
|
|
|||
8
app/src/main/res/drawable/ic_information_variant_white_24dp.xml
Executable file
8
app/src/main/res/drawable/ic_information_variant_white_24dp.xml
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
<!-- drawable/information-variant.xml -->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path android:fillColor="#fff" android:pathData="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z" />
|
||||
</vector>
|
||||
|
|
@ -452,7 +452,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="5dp"
|
||||
app:fabSize="mini"
|
||||
app:srcCompat="@drawable/ic_wrench_white_24dp"/>
|
||||
app:srcCompat="@drawable/ic_information_variant_white_24dp"/>
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fabNFC"
|
||||
|
|
|
|||
|
|
@ -552,7 +552,7 @@
|
|||
|
||||
</android.support.v4.widget.SwipeRefreshLayout>
|
||||
|
||||
<RelativeLayout
|
||||
<LinearLayout
|
||||
android:id="@+id/rlToolButtons"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
@ -560,13 +560,22 @@
|
|||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent">
|
||||
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fabMenu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
app:fabSize="mini"
|
||||
app:srcCompat="@drawable/ic_wrench_white_24dp"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnOk"
|
||||
style="@style/AppTheme.RoundedCornerMaterialButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_margin="10dp"
|
||||
android:text="@string/ok"/>
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
||||
</android.support.constraint.ConstraintLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue