From d14edf52b78a295408db62145dd321414fea8513 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 31 Dec 2018 05:35:23 +0000 Subject: [PATCH] more main activity rename, cleanup of unused stuff --- .../ui/activity/MainActivity.java | 2 +- .../res/layout/account_summary_fragment.xml | 3 +- .../main/res/layout/account_summary_row.xml | 2 +- ..._account_summary.xml => activity_main.xml} | 1 + .../res/layout/app_bar_account_summary.xml | 2 +- .../res/layout/content_account_summary.xml | 44 ------------------- .../res/layout/transaction_list_activity.xml | 40 ----------------- 7 files changed, 5 insertions(+), 89 deletions(-) rename app/src/main/res/layout/{activity_account_summary.xml => activity_main.xml} (97%) delete mode 100644 app/src/main/res/layout/content_account_summary.xml delete mode 100644 app/src/main/res/layout/transaction_list_activity.xml diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java index e66cf045..52436c4d 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java @@ -48,7 +48,7 @@ public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setContentView(R.layout.activity_account_summary); + setContentView(R.layout.activity_main); Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); diff --git a/app/src/main/res/layout/account_summary_fragment.xml b/app/src/main/res/layout/account_summary_fragment.xml index 72d800c7..314973ae 100644 --- a/app/src/main/res/layout/account_summary_fragment.xml +++ b/app/src/main/res/layout/account_summary_fragment.xml @@ -30,8 +30,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" - tools:context=".ui.activity.MainActivity" - tools:showIn="@layout/app_bar_account_summary"> + tools:context=".ui.activity.MainActivity"> + tools:showIn="@id/account_root"> diff --git a/app/src/main/res/layout/app_bar_account_summary.xml b/app/src/main/res/layout/app_bar_account_summary.xml index dde9f395..d6993eee 100644 --- a/app/src/main/res/layout/app_bar_account_summary.xml +++ b/app/src/main/res/layout/app_bar_account_summary.xml @@ -42,7 +42,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="?attr/actionBarSize" - tools:context=".ui.account_summary.AccountSummaryFragment"> + tools:context=".ui.account_summary.AccountSummaryFragment" /> - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/transaction_list_activity.xml b/app/src/main/res/layout/transaction_list_activity.xml deleted file mode 100644 index 698db2e1..00000000 --- a/app/src/main/res/layout/transaction_list_activity.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - -- 2.39.5