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);
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" />
<EditText
android:id="@+id/new_transaction_amt_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
- android:layout_alignParentTop="true">
+ android:layout_alignParentTop="true"
+ android:background="@color/drawer_background">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<LinearLayout
+ android:id="@+id/nav_actions"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="vertical"
- android:paddingStart="16dp"
- android:paddingEnd="16dp">
+ android:orientation="vertical">
<TextView
android:id="@+id/nav_account_summary"
<color name="colorPrimaryDark">#4a148c</color>
<color name="colorAccent">#4db6ac</color>
<color name="table_row_even_bg">#289d29b1</color>
+ <color name="drawer_background">#ffffffff</color>
</resources>
<item name="android:drawablePadding">32dp</item>
<item name="android:focusable">auto</item>
<item name="android:gravity">center_vertical|start</item>
+ <item name="android:paddingStart">@dimen/activity_horizontal_margin</item>
+ <item name="android:paddingEnd">@dimen/activity_horizontal_margin</item>
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Body1</item>
</style>