private void configureToolbar() { toolbar = getToolbar(); if (toolbar != null) { toolbar.setBackgroundColor(getResources().getColor(R.color.dap_user_wallet_principal)); toolbar.setTitleTextColor(Color.WHITE); toolbar.setBottom(Color.WHITE); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) { Window window = getActivity().getWindow(); window.setStatusBarColor(getResources().getColor(R.color.dap_user_wallet_principal)); } } }
private void configureToolbar() { Toolbar toolbar = getToolbar(); if (toolbar != null) { toolbar.setTitleTextColor(Color.WHITE); toolbar.setBackgroundColor(Color.TRANSPARENT); toolbar.setBottom(Color.WHITE); Drawable drawable = null; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) drawable = getResources() .getDrawable(R.drawable.dap_wallet_asset_issuer_action_bar_gradient_colors, null); else drawable = getResources() .getDrawable(R.drawable.dap_wallet_asset_issuer_action_bar_gradient_colors); toolbar.setBackground(drawable); } }