Updated on 2026-08-14

This commit is contained in:
Tangem 2018-05-29 20:21:36 +03:00
parent b19c306250
commit 61c4f7047d
23 changed files with 1760 additions and 1754 deletions

View file

@ -361,7 +361,7 @@ public class CardListAdapter extends RecyclerView.Adapter<CardListAdapter.CardVi
@Override
public CardViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.card_list_item, parent, false);
View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_list_card, parent, false);
CardViewHolder cvh = new CardViewHolder(v);
return cvh;
}

View file

@ -53,7 +53,7 @@ public class CardUnspentListAdapter extends BaseAdapter {
@Override
public View getView(int position, View convertView, ViewGroup viewGroup) {
if (convertView == null) {
convertView = mLayoutInflater.inflate(R.layout.card_unspent_list_item, viewGroup,
convertView = mLayoutInflater.inflate(R.layout.item_list_card_unspent, viewGroup,
false);
}
TextView tvItem = (TextView) convertView.findViewById(R.id.tvItem);

View file

@ -254,7 +254,7 @@ public class LoadedWalletActivityFragment extends Fragment implements SwipeRefre
@Override
public View onCreateView(final LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_loaded_wallet, container, false);
View v = inflater.inflate(R.layout.fr_loaded_wallet, container, false);
mNfcManager = new NfcManager(this.getActivity(), this);

View file

@ -92,7 +92,7 @@ public class MainActivityFragment extends Fragment implements NfcAdapter.ReaderC
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View result = inflater.inflate(R.layout.fragment_main, container, false);
View result = inflater.inflate(R.layout.fr_main, container, false);
mNfcManager = new NfcManager(this.getActivity(), this);
verifyPermissions();

View file

@ -44,7 +44,7 @@ public class VerifyCardActivityFragment extends Fragment implements SwipeRefresh
public View onCreateView(final LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_verify_card, container, false);
View v = inflater.inflate(R.layout.fr_verify_card, container, false);
mNfcManager = new NfcManager(this.getActivity(), this);

View file

@ -75,7 +75,7 @@ public class WalletInfoFragment extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View result=inflater.inflate(R.layout.fragment_wallet_info, container, false);
View result=inflater.inflate(R.layout.fr_wallet_info, container, false);
ImageView mImage= (ImageView)result.findViewById(R.id.qrWallet);
try {

View file

@ -1,358 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/cvCard"
android:layout_width="match_parent"
android:layout_height="@dimen/card_height"
android:layout_gravity="center_vertical"
android:layout_marginBottom="0dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
card_view:cardBackgroundColor="@color/btn_light"
card_view:cardCornerRadius="6dp"
card_view:cardElevation="8dp"
card_view:contentPaddingLeft="6dp"
card_view:contentPaddingRight="6dp">
<RelativeLayout
android:id="@+id/card_bg_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="@dimen/card_height"
android:layout_height="@dimen/card_height"
android:layout_alignParentEnd="true"
android:alpha="0.2"
android:padding="10dp"
card_view:srcCompat="@drawable/card_bg" />
<TextView
android:id="@+id/tvVoid"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:alpha="0.33"
android:fontFamily="@font/raleway_el"
android:gravity="center"
android:rotation="-25"
android:text="VOID"
android:textColor="@color/msg_err"
android:textSize="96dp" />
<FrameLayout
android:layout_width="16dp"
android:layout_height="match_parent"
android:layout_marginLeft="1dp"
android:foregroundGravity="center">
<TextView
android:id="@+id/tvTypeBg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alpha="0.5"
android:background="@color/white" />
<com.tangem.VerticalTextView
android:id="@+id/tvType"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="1dp"
android:alpha="0.6"
android:fontFamily="@font/raleway_el"
android:gravity="bottom"
android:maxLines="1"
android:text=" DEVELOPER KIT "
android:textColor="@color/black"
android:textSize="12dp" />
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:orientation="vertical">
<LinearLayout
android:id="@+id/vsCardState"
android:layout_width="match_parent"
android:layout_height="@dimen/card_info_height"
android:orientation="vertical">
<LinearLayout
android:id="@+id/cardLoaded"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_marginTop="4dp"
android:orientation="vertical"
android:visibility="visible">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:orientation="horizontal">
<TextView
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:fontFamily="@font/raleway_r"
android:text="Balance "
android:textColor="@color/primary_dark"
android:textSize="@dimen/font_large" />
<TextView
android:id="@+id/tvBalance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:fontFamily="@font/montserrat_light"
android:text="0.0 mBTC"
android:textColor="@color/black"
android:textSize="@dimen/font_large"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="-4dp"
android:orientation="horizontal">
<TextView
android:id="@+id/tvOffline"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:background="@color/msg_okay"
android:fontFamily="@font/montserrat_light"
android:text="verified offline"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="@dimen/font_small"
android:visibility="visible" />
<TextView
android:id="@+id/tvBalanceEquivalent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="48dp"
android:layout_marginTop="2dp"
android:fontFamily="@font/montserrat_light"
android:text="~ USD 0"
android:textColor="@color/black_overlay"
android:textSize="14dp"
android:textStyle="normal|bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:orientation="horizontal">
<TextView
android:layout_width="110dp"
android:layout_height="wrap_content"
android:fontFamily="@font/raleway_r"
android:text="Blockchain"
android:textColor="@color/primary_dark"
android:textSize="14dp" />
<TextView
android:id="@+id/tvBlockchain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@font/montserrat_light"
android:lines="1"
android:maxLines="1"
android:text="Blockchain"
android:textColor="@color/primary_dark"
android:textSize="12dp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="110dp"
android:layout_height="wrap_content"
android:fontFamily="@font/raleway_r"
android:text="Wallet "
android:textColor="@color/primary_dark"
android:textSize="14dp" />
<TextView
android:id="@+id/tvWallet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:lines="1"
android:maxLines="1"
android:text=" "
android:textColor="@color/primary_dark"
android:textSize="12dp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/lbLastInput"
android:layout_width="110dp"
android:layout_height="wrap_content"
android:fontFamily="@font/raleway_r"
android:text="Last unspent "
android:textColor="@color/primary_dark"
android:textSize="14dp" />
<TextView
android:id="@+id/tvLastInput"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text=" "
android:textColor="@color/primary_dark"
android:textSize="12dp"
android:textStyle="normal|bold" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/lbLastOutput"
android:layout_width="110dp"
android:layout_height="wrap_content"
android:fontFamily="@font/raleway_r"
android:text="Last withdrawal"
android:textColor="@color/primary_dark"
android:textSize="14dp" />
<TextView
android:id="@+id/tvLastOutput"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text=" "
android:textColor="@color/primary_dark"
android:textSize="12dp"
android:textStyle="normal|bold" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/cardEmpty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:fontFamily="@font/raleway_r"
android:gravity="center"
android:text="NO WALLET"
android:textAlignment="center"
android:textSize="@dimen/font_large" />
</LinearLayout>
<LinearLayout
android:id="@+id/cardPurged"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:fontFamily="@font/raleway_r"
android:gravity="center"
android:text="ERASED WALLET"
android:textAlignment="center"
android:textSize="@dimen/font_large" />
</LinearLayout>
<LinearLayout
android:id="@+id/cardError"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<TextView
android:id="@+id/tvError"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:fontFamily="@font/raleway_r"
android:gravity="center"
android:text="INVALID CARD"
android:textAlignment="center"
android:textSize="@dimen/font_large" />
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/tvCardID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="32dp"
android:layout_marginRight="32dp"
android:layout_marginTop="2dp"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:fontFamily="@font/montserrat_light"
android:paddingTop="6dp"
android:text=" "
android:textAlignment="center"
android:textColor="@color/primary_dark"
android:textSize="14dp" />
</LinearLayout>
<ImageView
android:id="@+id/imgBlockchain"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_marginTop="6dp" />
<ImageView
android:id="@+id/imgSecurityNotification"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentStart="false"
android:layout_marginBottom="6dp"
android:layout_marginLeft="24dp"
android:background="@drawable/ic_info"
android:visibility="invisible" />
</RelativeLayout>
</android.support.v7.widget.CardView>

View file

@ -1,4 +1,5 @@
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
<fragment
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"
android:id="@+id/loaded_wallet_fragment"
@ -6,4 +7,4 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:layout="@layout/fragment_loaded_wallet" />
tools:layout="@layout/fr_loaded_wallet"/>

View file

@ -1,4 +1,5 @@
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
<fragment
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"
android:id="@+id/fragmentMain"
@ -6,4 +7,4 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:layout="@layout/fragment_main" />
tools:layout="@layout/fr_main"/>

View file

@ -1,4 +1,5 @@
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
<fragment
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"
android:id="@+id/verify_card_fragment"
@ -6,4 +7,4 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:layout="@layout/fragment_verify_card" />
tools:layout="@layout/fr_verify_card"/>

View file

@ -1,30 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="96dp"
android:layout_height="96dp"
android:src="@mipmap/ic_fp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="16dp"/>
android:layout_marginTop="16dp"
android:src="@mipmap/ic_fp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Touch fingerprint scanner to confirm"
android:layout_gravity="center_horizontal"
android:textSize="@dimen/font_normal"
android:layout_margin="16dp"
android:text="Touch fingerprint scanner to confirm"
android:textAlignment="center"
/>
android:textSize="@dimen/font_normal"/>
<ProgressBar
android:id="@+id/login_progress"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:visibility="gone" />
android:visibility="gone"/>
</LinearLayout>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.constraint.ConstraintLayout
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"
android:layout_width="match_parent"
@ -19,7 +20,7 @@
android:textSize="14dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent"/>
<TextView
android:id="@+id/tvHeader2"
@ -35,7 +36,7 @@
android:textSize="@dimen/font_normal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvHeader" />
app:layout_constraintTop_toBottomOf="@+id/tvHeader"/>
<ProgressBar
android:id="@+id/progressBar"
@ -52,7 +53,7 @@
app:layout_constraintHorizontal_bias="0.166"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tvHeader2"
app:layout_constraintVertical_bias="0.0" />
app:layout_constraintVertical_bias="0.0"/>
<TextView
android:id="@+id/tvMessage"
@ -70,6 +71,6 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/progressBar" />
app:layout_constraintTop_toBottomOf="@+id/progressBar"/>
</android.support.constraint.ConstraintLayout>

View file

@ -0,0 +1,359 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/cvCard"
android:layout_width="match_parent"
android:layout_height="@dimen/card_height"
android:layout_gravity="center_vertical"
android:layout_marginBottom="0dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
card_view:cardBackgroundColor="@color/btn_light"
card_view:cardCornerRadius="6dp"
card_view:cardElevation="8dp"
card_view:contentPaddingLeft="6dp"
card_view:contentPaddingRight="6dp">
<RelativeLayout
android:id="@+id/card_bg_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageView"
android:layout_width="@dimen/card_height"
android:layout_height="@dimen/card_height"
android:layout_alignParentEnd="true"
android:alpha="0.2"
android:padding="10dp"
card_view:srcCompat="@drawable/card_bg"/>
<TextView
android:id="@+id/tvVoid"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:alpha="0.33"
android:fontFamily="@font/raleway_el"
android:gravity="center"
android:rotation="-25"
android:text="VOID"
android:textColor="@color/msg_err"
android:textSize="96dp"/>
<FrameLayout
android:layout_width="16dp"
android:layout_height="match_parent"
android:layout_marginLeft="1dp"
android:foregroundGravity="center">
<TextView
android:id="@+id/tvTypeBg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alpha="0.5"
android:background="@color/white"/>
<com.tangem.VerticalTextView
android:id="@+id/tvType"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="1dp"
android:alpha="0.6"
android:fontFamily="@font/raleway_el"
android:gravity="bottom"
android:maxLines="1"
android:text=" DEVELOPER KIT "
android:textColor="@color/black"
android:textSize="12dp"/>
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="20dp"
android:orientation="vertical">
<LinearLayout
android:id="@+id/vsCardState"
android:layout_width="match_parent"
android:layout_height="@dimen/card_info_height"
android:orientation="vertical">
<LinearLayout
android:id="@+id/cardLoaded"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_marginTop="4dp"
android:orientation="vertical"
android:visibility="visible">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:orientation="horizontal">
<TextView
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:fontFamily="@font/raleway_r"
android:text="Balance "
android:textColor="@color/primary_dark"
android:textSize="@dimen/font_large"/>
<TextView
android:id="@+id/tvBalance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:fontFamily="@font/montserrat_light"
android:text="0.0 mBTC"
android:textColor="@color/black"
android:textSize="@dimen/font_large"
android:textStyle="bold"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="-4dp"
android:orientation="horizontal">
<TextView
android:id="@+id/tvOffline"
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:background="@color/msg_okay"
android:fontFamily="@font/montserrat_light"
android:text="verified offline"
android:textAlignment="center"
android:textColor="@color/white"
android:textSize="@dimen/font_small"
android:visibility="visible"/>
<TextView
android:id="@+id/tvBalanceEquivalent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="48dp"
android:layout_marginTop="2dp"
android:fontFamily="@font/montserrat_light"
android:text="~ USD 0"
android:textColor="@color/black_overlay"
android:textSize="14dp"
android:textStyle="normal|bold"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:orientation="horizontal">
<TextView
android:layout_width="110dp"
android:layout_height="wrap_content"
android:fontFamily="@font/raleway_r"
android:text="Blockchain"
android:textColor="@color/primary_dark"
android:textSize="14dp"/>
<TextView
android:id="@+id/tvBlockchain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@font/montserrat_light"
android:lines="1"
android:maxLines="1"
android:text="Blockchain"
android:textColor="@color/primary_dark"
android:textSize="12dp"
android:textStyle="bold"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="110dp"
android:layout_height="wrap_content"
android:fontFamily="@font/raleway_r"
android:text="Wallet "
android:textColor="@color/primary_dark"
android:textSize="14dp"/>
<TextView
android:id="@+id/tvWallet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:lines="1"
android:maxLines="1"
android:text=" "
android:textColor="@color/primary_dark"
android:textSize="12dp"
android:textStyle="bold"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/lbLastInput"
android:layout_width="110dp"
android:layout_height="wrap_content"
android:fontFamily="@font/raleway_r"
android:text="Last unspent "
android:textColor="@color/primary_dark"
android:textSize="14dp"/>
<TextView
android:id="@+id/tvLastInput"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text=" "
android:textColor="@color/primary_dark"
android:textSize="12dp"
android:textStyle="normal|bold"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/lbLastOutput"
android:layout_width="110dp"
android:layout_height="wrap_content"
android:fontFamily="@font/raleway_r"
android:text="Last withdrawal"
android:textColor="@color/primary_dark"
android:textSize="14dp"/>
<TextView
android:id="@+id/tvLastOutput"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/montserrat_light"
android:text=" "
android:textColor="@color/primary_dark"
android:textSize="12dp"
android:textStyle="normal|bold"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/cardEmpty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:fontFamily="@font/raleway_r"
android:gravity="center"
android:text="NO WALLET"
android:textAlignment="center"
android:textSize="@dimen/font_large"/>
</LinearLayout>
<LinearLayout
android:id="@+id/cardPurged"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:fontFamily="@font/raleway_r"
android:gravity="center"
android:text="ERASED WALLET"
android:textAlignment="center"
android:textSize="@dimen/font_large"/>
</LinearLayout>
<LinearLayout
android:id="@+id/cardError"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone">
<TextView
android:id="@+id/tvError"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:fontFamily="@font/raleway_r"
android:gravity="center"
android:text="INVALID CARD"
android:textAlignment="center"
android:textSize="@dimen/font_large"/>
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/tvCardID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="32dp"
android:layout_marginRight="32dp"
android:layout_marginTop="2dp"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:fontFamily="@font/montserrat_light"
android:paddingTop="6dp"
android:text=" "
android:textAlignment="center"
android:textColor="@color/primary_dark"
android:textSize="14dp"/>
</LinearLayout>
<ImageView
android:id="@+id/imgBlockchain"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:layout_marginTop="6dp"/>
<ImageView
android:id="@+id/imgSecurityNotification"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_alignParentStart="false"
android:layout_marginBottom="6dp"
android:layout_marginLeft="24dp"
android:background="@drawable/ic_info"
android:visibility="invisible"/>
</RelativeLayout>
</android.support.v7.widget.CardView>

View file

@ -2,20 +2,19 @@
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="96dp"
>
android:layout_height="96dp">
<TextView
android:id="@+id/tvItem"
style="@style/Base.TextAppearance.AppCompat.Small"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/Base.TextAppearance.AppCompat.Small"
android:text="History"
android:layout_margin="10dp"/>
android:layout_margin="10dp"
android:text="History"/>
<View
android:id="@+id/separator"
style="@style/thin_separator" />
style="@style/thin_separator"/>
</RelativeLayout>

View file

@ -2,20 +2,19 @@
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="96dp"
>
android:layout_height="96dp">
<TextView
android:id="@+id/tvItem"
style="@style/Base.TextAppearance.AppCompat.Small"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="@style/Base.TextAppearance.AppCompat.Small"
android:text="Unspent"
android:layout_margin="10dp"/>
android:layout_margin="10dp"
android:text="Unspent"/>
<View
android:id="@+id/separator"
style="@style/thin_separator" />
style="@style/thin_separator"/>
</RelativeLayout>

View file

@ -1,20 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<Button
android:id="@+id/btnMessage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/btnMessage"/>
android:layout_height="wrap_content"/>
<ImageView
android:id="@+id/imgMessage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher"
android:id="@+id/imgMessage"/>
android:src="@mipmap/ic_launcher"/>
</LinearLayout>