Updated on 2026-08-14

This commit is contained in:
Tangem 2019-09-11 12:44:43 +03:00
commit 2402efda34
317 changed files with 2877 additions and 2683 deletions

View file

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
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"
android:layout_height="match_parent"
tools:context="com.tangem.ui.activity.LoadedWalletActivity">
<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"
android:name="com.tangem.ui.fragment.LoadedWalletFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:layout="@layout/fr_loaded_wallet"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
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"
android:layout_height="match_parent"
tools:context="com.tangem.ui.activity.VerifyCardActivity">
<fragment
android:id="@+id/verify_card_fragment"
android:name="com.tangem.ui.fragment.VerifyCard"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:layout="@layout/fr_verify_card"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -7,9 +7,8 @@
android:background="@color/white"
android:orientation="vertical"
android:padding="0dp"
tools:context="com.tangem.ui.fragment.LoadedWalletFragment"
tools:ignore="contentDescription"
tools:showIn="@layout/activity_loaded_wallet">
tools:context="com.tangem.ui.fragment.wallet.LoadedWalletFragment"
tools:ignore="contentDescription">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/srl"

View file

@ -6,9 +6,8 @@
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
tools:context="com.tangem.ui.fragment.VerifyCard"
tools:ignore="contentDescription"
tools:showIn="@layout/activity_verify_card">
tools:context="com.tangem.ui.fragment.VerifyCardFragment"
tools:ignore="contentDescription">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/srlVerifyCard"

View file

@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.tangem.ui.activity.CreateNewWalletActivity">
android:layout_height="match_parent">
<include
layout="@layout/layout_touch_card"

View file

@ -6,7 +6,6 @@
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
tools:context="com.tangem.ui.activity.EmptyWalletActivity"
tools:ignore="contentDescription">
<include

View file

@ -5,7 +5,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
tools:context="com.tangem.ui.activity.LogoActivity"
tools:ignore="contentDescription">
<TextView

View file

@ -3,8 +3,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
tools:context="com.tangem.ui.activity.PinRequestActivity">
android:orientation="vertical">
<TextView
android:id="@+id/tvPin"

View file

@ -3,8 +3,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
tools:context="com.tangem.ui.activity.PinSaveActivity">
android:orientation="vertical">
<TextView
android:id="@+id/tvPin"

View file

@ -2,8 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.tangem.ui.activity.PurgeActivity">
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"

View file

@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.tangem.ui.activity.PrepareCryptonitOtherApiWithdrawalActivity">
android:layout_height="match_parent">
<TextView
android:id="@+id/textView"

View file

@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.tangem.ui.activity.PrepareCryptonitWithdrawalActivity">
android:layout_height="match_parent">
<TextView
android:id="@+id/textView"

View file

@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.tangem.ui.activity.PrepareKrakenWithdrawalActivity">
android:layout_height="match_parent">
<TextView
android:id="@+id/textView"

View file

@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.tangem.ui.activity.PurgeActivity">
android:layout_height="match_parent">
<include
layout="@layout/layout_touch_card"

View file

@ -1,9 +1,7 @@
<androidx.constraintlayout.widget.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"
android:layout_height="match_parent"
tools:context="com.tangem.ui.activity.SendTransactionActivity">
android:layout_height="match_parent">
<ProgressBar
android:id="@+id/progressBar"

View file

@ -1,8 +1,8 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout 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"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:orientation="vertical">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/abl"
@ -18,12 +18,9 @@
</com.google.android.material.appbar.AppBarLayout>
<fragment
android:id="@+id/thanks_fragment"
android:name="com.tangem.ui.fragment.SettingsFragment"
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/abl"
tools:xml="@xml/pref_main" />
android:layout_height="wrap_content"
android:id="@android:id/list_container"/>
</RelativeLayout>
</LinearLayout>

View file

@ -9,4 +9,4 @@
android:layout_alignParentBottom="true"
android:elevation="1dp"
app:layout_constraintBottom_toBottomOf="parent"
tools:showIn="@layout/activity_pin_swap" />
tools:showIn="@layout/fragment_pin_swap" />

View file

@ -3,14 +3,188 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_graph"
app:startDestination="@id/main">
app:startDestination="@id/logoFragment">
<fragment
android:id="@+id/main"
android:name="com.tangem.ui.fragment.MainFragment"
android:label="fragment_main"
tools:layout="@layout/main_fragment">
<action
android:id="@+id/action_main_to_loadedWalletFragment"
app:destination="@id/loadedWalletFragment" />
<action
android:id="@+id/action_main_to_pinRequestFragment"
app:destination="@id/pinRequestFragment" />
<action
android:id="@+id/action_main_to_emptyWalletFragment"
app:destination="@id/emptyWalletFragment" />
<action
android:id="@+id/action_main_to_logoFragment"
app:destination="@id/logoFragment" />
<action
android:id="@+id/action_main_to_pinSaveFragment"
app:destination="@id/pinSaveFragment" />
<action
android:id="@+id/action_main_to_settingsFragment"
app:destination="@id/settingsFragment" />
</fragment>
<fragment
android:id="@+id/loadedWalletFragment"
android:name="com.tangem.ui.fragment.wallet.LoadedWalletFragment"
android:label="fr_loaded_wallet"
tools:layout="@layout/fr_loaded_wallet" >
<action
android:id="@+id/action_loadedWalletFragment_to_verifyCard"
app:destination="@id/verifyCard" />
<action
android:id="@+id/action_loadedWalletFragment_to_prepareTransactionFragment"
app:destination="@id/prepareTransactionFragment" />
<action
android:id="@+id/action_loadedWalletFragment_to_pinRequestFragment"
app:destination="@id/pinRequestFragment" />
<action
android:id="@+id/action_loadedWalletFragment_to_pinSwapFragment"
app:destination="@id/pinSwapFragment" />
<action
android:id="@+id/action_loadedWalletFragment_to_prepareCryptonitWithdrawalFragment"
app:destination="@id/prepareCryptonitWithdrawalFragment" />
<action
android:id="@+id/action_loadedWalletFragment_to_prepareKrakenWithdrawalFragment"
app:destination="@id/prepareKrakenWithdrawalFragment" />
</fragment>
<fragment
android:id="@+id/verifyCard"
android:name="com.tangem.ui.fragment.VerifyCardFragment"
android:label="fr_verify_card"
tools:layout="@layout/fr_verify_card" >
<action
android:id="@+id/action_verifyCard_to_pinRequestFragment"
app:destination="@id/pinRequestFragment" />
<action
android:id="@+id/action_verifyCard_to_pinSwapFragment"
app:destination="@id/pinSwapFragment" />
<action
android:id="@+id/action_verifyCard_to_purgeFragment"
app:destination="@id/purgeFragment" />
</fragment>
<fragment
android:id="@+id/confirmTransactionFragment"
android:name="com.tangem.ui.ConfirmTransactionFragment"
android:label="fragment_confirm_transaction"
tools:layout="@layout/fragment_confirm_transaction" >
<action
android:id="@+id/action_confirmTransactionFragment_to_signTransactionFragment"
app:destination="@id/signTransactionFragment" />
<action
android:id="@+id/action_confirmTransactionFragment_to_pinRequestFragment"
app:destination="@id/pinRequestFragment" />
</fragment>
<fragment
android:id="@+id/prepareTransactionFragment"
android:name="com.tangem.ui.PrepareTransactionFragment"
android:label="PrepareTransactionFragment" >
<action
android:id="@+id/action_prepareTransactionFragment_to_confirmTransactionFragment"
app:destination="@id/confirmTransactionFragment" />
<action
android:id="@+id/action_prepareTransactionFragment_to_qrScanFragment"
app:destination="@id/qrScanFragment" />
</fragment>
<fragment
android:id="@+id/signTransactionFragment"
android:name="com.tangem.ui.SignTransactionFragment"
android:label="SignTransactionFragment" >
<action
android:id="@+id/action_signTransactionFragment_to_sendTransactionFragment"
app:destination="@id/sendTransactionFragment" />
</fragment>
<fragment
android:id="@+id/sendTransactionFragment"
android:name="com.tangem.ui.fragment.SendTransactionFragment"
android:label="SendTransactionFragment" >
</fragment>
<fragment
android:id="@+id/pinRequestFragment"
android:name="com.tangem.ui.fragment.pin.PinRequestFragment"
android:label="PinRequestFragment" >
</fragment>
<fragment
android:id="@+id/qrScanFragment"
android:name="com.tangem.ui.fragment.QrScanFragment"
android:label="QrScanFragment" >
</fragment>
<fragment
android:id="@+id/pinSwapFragment"
android:name="com.tangem.ui.fragment.pin.PinSwapFragment"
android:label="PinSwapFragment" >
</fragment>
<fragment
android:id="@+id/emptyWalletFragment"
android:name="com.tangem.ui.fragment.wallet.EmptyWalletFragment"
android:label="EmptyWalletFragment" >
<action
android:id="@+id/action_emptyWalletFragment_to_pinRequestFragment"
app:destination="@id/pinRequestFragment" />
<action
android:id="@+id/action_emptyWalletFragment_to_verifyCard"
app:destination="@id/verifyCard" />
<action
android:id="@+id/action_emptyWalletFragment_to_createNewWalletFragment"
app:destination="@id/createNewWalletFragment" />
</fragment>
<fragment
android:id="@+id/createNewWalletFragment"
android:name="com.tangem.ui.fragment.wallet.CreateNewWalletFragment"
android:label="CreateNewWalletFragment" >
</fragment>
<fragment
android:id="@+id/logoFragment"
android:name="com.tangem.ui.fragment.LogoFragment"
android:label="LogoFragment" >
<action
android:id="@+id/action_logoFragment_to_main"
app:destination="@id/main"
app:popUpTo="@+id/main_graph" />
<action
android:id="@+id/action_logoFragment_to_prepareTransactionFragment"
app:destination="@id/prepareTransactionFragment"
app:popUpTo="@+id/prepareTransactionFragment" />
</fragment>
<fragment
android:id="@+id/purgeFragment"
android:name="com.tangem.ui.fragment.PurgeFragment"
android:label="PurgeFragment" >
<action
android:id="@+id/action_purgeFragment_to_mainFragment"
app:destination="@id/main"
app:popUpTo="@+id/main" />
</fragment>
<fragment
android:id="@+id/pinSaveFragment"
android:name="com.tangem.ui.fragment.pin.PinSaveFragment"
android:label="PinSaveFragment" />
<fragment
android:id="@+id/settingsFragment"
android:name="com.tangem.ui.fragment.SettingsFragment"
android:label="SettingsFragment" />
<fragment
android:id="@+id/prepareCryptonitOtherApiWithdrawalFragment"
android:name="com.tangem.ui.fragment.additional.PrepareCryptonitOtherApiWithdrawalFragment"
android:label="PrepareCryptonitOtherApiWithdrawalFragment" >
<action
android:id="@+id/action_prepareCryptonitOtherApiWithdrawalFragment_to_qrScanFragment"
app:destination="@id/qrScanFragment" />
</fragment>
<fragment
android:id="@+id/prepareCryptonitWithdrawalFragment"
android:name="com.tangem.ui.fragment.additional.PrepareCryptonitWithdrawalFragment"
android:label="PrepareCryptonitWithdrawalFragment" />
<fragment
android:id="@+id/prepareKrakenWithdrawalFragment"
android:name="com.tangem.ui.fragment.additional.PrepareKrakenWithdrawalFragment"
android:label="PrepareKrakenWithdrawalFragment" />
</navigation>

View file

@ -5,6 +5,7 @@
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="preferenceTheme">@style/AppPreferenceTheme</item>
</style>
<style name="spinner_item_actionbar" parent="Widget.AppCompat.Light.Spinner.DropDown.ActionBar">
@ -78,4 +79,16 @@
<item name="android:textAlignment">center</item>
</style>
<!-- Custom Preference Theme -->
<style name="AppPreferenceTheme"
parent="@style/PreferenceThemeOverlay.v14.Material">
<item name="preferenceFragmentCompatStyle">
@style/AppPreferenceFragmentCompatStyle
</item>
</style>
<!-- Custom Style for PreferenceFragmentCompat -->
<style name="AppPreferenceFragmentCompatStyle"
parent="@style/PreferenceFragment.Material">
<item name="android:layout">@layout/fragment_settings</item>
</style>
</resources>