I want to implement a white theme, mean that toolbar and status bar should be in white also bottom sheet etc.
i implement theme correctly and it worksMaterialDatePicker dialog i try many solutions here to customize theme for dialog and it never work form
as you can see in the image the buttons for dialog doesn't appear
Related
I'm using new Navigation Component in my project. I created a custom Toolbar which will keep the Title in the centre even when having navigation drawer.
This is how my toolbar looks now.
I'm trying to put a custom hamburger and back icon there(basically i need white icons).
I've tried
dataBinding.appBarHome.toolbar.setNavigationIcon(ContextCompat.getDrawable(this, R.drawable.ic_hamburger));
getSupportActionBar().setHomeAsUpIndicator(ContextCompat.getDrawable(this,R.drawable.ic_hamburger));
None of it is working. if want to see any specific part of my code, feel free to ask.
Maybe it just because of style or them,
Just try with bellow style
ThemeOverlay.AppCompat.Dark.ActionBar
When every you choose dark action bar then default icon color should be white and when you select an action bar then it will be the black icon
So just replace style in your manifest or style.xml
I've got an AlertDialog and I would like to change the height of the underlaying background, not the dialog itself. Haven't been able to find any source online showing if this is possible or which attributes in the alert dialog theme to manipulate. The only attribute that seems to change anything with the underlaying background is dimAmount. Here is what I have:
Here's what I would like to have:
As you can see the action bar and bottom navigation buttons are no longer being covered by the AlertDialog underlay.
I'm trying to customise the DatePickerDialog so that the background is all white.
If I do
datePickerDialog.setInverseBackgroundForced(true);
the background is white but the panel behind the buttons remains gray.
How do I specify a colour for this panel?
Since DatePickerDialog extends Dialog, you can set the layout and theming that you want, overriding the existing theme. So, you could check about custom dialogs: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
I want to have a GUI kindof like how Market is. Mainly I want a title with an icon and the name. So I've disabled the default titlebar and are using a 9 patch image as my custom titlebar. It looks great, but the top system bar ( cannot remember what's it called atm ) is casting a shadow on my application - specifically on my titlebar. I've looked at the Market's custom titlebar and it doesn't have a shadow, or the shadow is below the three main buttons casting on the contentlist.
How can I remove the shadow from my custom titlebar, and maybe have it below - casting on the content?
The short answer to this is that the title bar is a part of the theme and that one have to make changes to the current theme and set a custom layout for the title bar. More info here: http://www.anddev.org/my_own_titlebar_backbutton_like_on_the_iphone-t4591.html
I would like to modify the background of the title bar of the dropdown dialog associated to a spinner.
If this is not possible I would like to know what resource is used to draw this background android.R.drawable.* ?
This is an effort of uniformity for my various pop ups in my application.
You can change everything using styles and themes.
Take a look at this example for buttons:
http://blog.androgames.net/40/custom-button-style-and-theme/