From cf8cc29329e8ee085a9690d3f9bcfeef5ce4063f Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sat, 4 Aug 2018 03:04:07 +0200 Subject: [PATCH] Add exchange/pair selection after each parent choice in the RecordTransactionActivity --- .idea/gradle.xml | 2 +- .../moodl/Activities/AddExchangeActivity.java | 3 +- .../Activities/CurrencySelectionActivity.java | 2 +- .../DetailsActivityFragments/Charts.java | 5 +- .../Transactions.java | 4 +- .../Activities/ExchangeListActivity.java | 19 +- .../MarketCapitalization.java | 2 +- .../HomeActivityFragments/Overview.java | 2 +- .../Activities/RecordTransactionActivity.java | 188 ++++++++++++++++-- .../BuyFragment.java | 8 +- .../CoinRecordListAdapter.java} | 8 +- .../CoinWatchlistAdapter.java | 2 +- .../ExchangeDescriptionListAdapter.java} | 20 +- .../ExchangeRecordListAdapter.java | 120 +++++++++++ .../OverviewListAdapter.java | 2 +- .../CustomAdapters/PairRecordListAdapter.java | 121 +++++++++++ .../RecordTransactionPageAdapter.java | 2 +- .../TradeListAdapter.java | 2 +- .../TransactionListAdapter.java | 2 +- .../CustomPieChart.java | 2 +- .../CustomTabLayout.java | 2 +- .../CustomViewPager.java | 2 +- .../ExchangeManager/Exchange.java | 27 +++ .../CryptocompareApiManager.java | 31 ++- .../DataManagers/InfoAPIManagers/Pair.java | 18 ++ .../com/herbron/moodl/PlaceholderManager.java | 5 + .../record_transaction_tab_background_buy.xml | 2 +- ...record_transaction_tab_background_sell.xml | 3 +- ...rd_transaction_tab_background_transfer.xml | 3 +- .../main/res/drawable/spinner_background.xml | 60 ++++-- .../drawable/unselected_tab_background.xml | 2 +- .../res/layout/activity_currency_details.xml | 2 +- .../layout/activity_record_transaction.xml | 44 +++- .../res/layout/custom_summary_coin_row.xml | 1 - app/src/main/res/layout/fragment_buy.xml | 26 --- .../fragment_marketcap_homeactivity.xml | 2 +- ...inner_item.xml => simple_spinner_item.xml} | 1 + app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/dimens.xml | 5 + app/src/main/res/values/strings.xml | 3 + 40 files changed, 615 insertions(+), 141 deletions(-) rename app/src/main/java/com/herbron/moodl/{LayoutManagers/CoinSummaryListAdapter.java => CustomAdapters/CoinRecordListAdapter.java} (92%) rename app/src/main/java/com/herbron/moodl/{LayoutManagers => CustomAdapters}/CoinWatchlistAdapter.java (99%) rename app/src/main/java/com/herbron/moodl/{LayoutManagers/ExchangeListAdapter.java => CustomAdapters/ExchangeDescriptionListAdapter.java} (77%) create mode 100644 app/src/main/java/com/herbron/moodl/CustomAdapters/ExchangeRecordListAdapter.java rename app/src/main/java/com/herbron/moodl/{LayoutManagers => CustomAdapters}/OverviewListAdapter.java (97%) create mode 100644 app/src/main/java/com/herbron/moodl/CustomAdapters/PairRecordListAdapter.java rename app/src/main/java/com/herbron/moodl/{LayoutManagers => CustomAdapters}/RecordTransactionPageAdapter.java (96%) rename app/src/main/java/com/herbron/moodl/{LayoutManagers => CustomAdapters}/TradeListAdapter.java (97%) rename app/src/main/java/com/herbron/moodl/{LayoutManagers => CustomAdapters}/TransactionListAdapter.java (99%) rename app/src/main/java/com/herbron/moodl/{LayoutManagers => CustomLayouts}/CustomPieChart.java (93%) rename app/src/main/java/com/herbron/moodl/{LayoutManagers => CustomLayouts}/CustomTabLayout.java (98%) rename app/src/main/java/com/herbron/moodl/{LayoutManagers => CustomLayouts}/CustomViewPager.java (95%) rename app/src/main/res/layout/{exchange_spinner_item.xml => simple_spinner_item.xml} (90%) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 73c0659..5e0c977 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -5,7 +5,7 @@