From: Damyan Ivanov Date: Sat, 8 Dec 2018 08:15:26 +0000 (+0000) Subject: note the 'Account summary' item in the navigation drawer when the Account summary... X-Git-Tag: v0.3~292 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=89e0fa95e3fca65277711a762f0643c974481e0a;p=mobile-ledger.git note the 'Account summary' item in the navigation drawer when the Account summary starts --- diff --git a/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java b/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java index 2b05c1b3..0973590c 100644 --- a/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java +++ b/app/src/main/java/net/ktnx/mobileledger/AccountSummary.java @@ -75,6 +75,15 @@ public class AccountSummary extends AppCompatActivity { update_accounts(false); } + @Override + protected void onStart() { + super.onStart(); + LinearLayout grp = drawer.findViewById(R.id.nav_actions); + for (int i = 0; i < grp.getChildCount(); i++) + grp.getChildAt(i).setBackgroundColor(getResources().getColor(R.color.drawer_background, getTheme())); + drawer.findViewById(R.id.nav_account_summary).setBackgroundColor(getResources().getColor(R.color.table_row_even_bg, getTheme())); + } + public void fab_new_transaction_clicked(View view) { Intent intent = new Intent(this, NewTransactionActivity.class); startActivity(intent); diff --git a/app/src/main/res/layout/content_new_transaction.xml b/app/src/main/res/layout/content_new_transaction.xml index b4b6babe..89e3c2ce 100644 --- a/app/src/main/res/layout/content_new_transaction.xml +++ b/app/src/main/res/layout/content_new_transaction.xml @@ -70,7 +70,8 @@ android:width="0dp" android:hint="@string/new_transaction_account_hint" android:nextFocusDown="@id/new_transaction_amt_1" - android:nextFocusForward="@id/new_transaction_amt_1" /> + android:nextFocusForward="@id/new_transaction_amt_1" + android:textColorLink="@android:color/background_light" /> + android:layout_alignParentTop="true" + android:background="@color/drawer_background"> + android:orientation="vertical"> #4a148c #4db6ac #289d29b1 + #ffffffff diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 7d26c558..cbd324f2 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -24,6 +24,8 @@ 32dp auto center_vertical|start + @dimen/activity_horizontal_margin + @dimen/activity_horizontal_margin @style/TextAppearance.AppCompat.Body1