My android actionbar is not perfect - android-actionbar

I am using an actionbar in my app. But this actionbar is not displayed perfectly.
This is a picture of my actionbar:
please help me ...

Just use this code for set Background image in actionbar
getSupportActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.bgimage));
or
getActionBar().setBackgroundDrawable(getResources().getDrawable(R.drawable.bgimage));

Related

WinUI3 : How to put an translucent grey overlay on Canvas

I'm working on a WinUI3 desktop application in c++. I was trying to achieve an experience where we can show a ProgressRing in the center of the screen when there is a delay in screen update. In my application, my window has a Canvas as its content and that canvas contains many widgets. I want to put a new Canvas as an overlay on top of the existing Canvas and show a ProgressRing on the new Overlay Canvas and I was able to achieve an experience like this.
The overlay Canvas in the image has a background color as transparent, I wanted to make the overlay canvas translucent. So that all the widgets below the overlay canvas will look like grayed-out non-interactive widgets.
I would be of great help if you could help me with this issue.
Thank you,
Harshithraj P
One way to do that is to set the Background("Black" maybe?) and the Opacity depending on how you want it to look.

How to make appBar and statusBar transparent

I want my home page of my app to look like the pictures seen in this link Transparent actionBar and statusBar in Android lollipop
How can I do this?

Android ActionBar vs ToolBar

Can you make Android new Toolbar to be shown with shadow like you could do with the old ActionBar?
Please refer to the image: Left is ActionBar and you can see it looks "floating" with shadow while the right one is ToolBar, how can you show it the same?
Use attibute android:elevetion=4dp on toolbar.

How to show Popup view in fullscreen over tabbar and navigationbar in viewcontroller?

I want to show a popup view in my app in full screen, This screen contains tabbar and navigation bar both, i am getting the problem is when popup shows, it display only in middle of the screen, but I want to show in fullscreen and above on tabbar and navigationbar, If any person have any idea please provide yout thoughts and solution.I am attaching screenshot of my problem, plz give some solution.
self.container = [[UIView alloc] initWithFrame:self.window.bounds];
[self.container addSubview:self.alertView];
[self.window addSubview:self.container];

Android show ActionBar without navigation items

I would like to display the ActionBar alone without any navigation buttons(Home, back,etc) which are present at the bottom of the screen.
If I use '#android:style/Theme.NoTitleBar.Fullscreen', then even the ActionBar is not present.
Is there a way to display ONLY the ACTIONBAR without the navigation bar at the bottom?
For hiding the Navigation Bar, which is there only since API 14, see this