the navigation bar is overlaying my activity view on the bottom. Same issue like here: Android Navigation Bar overlaying my view
The issue seems to happen only on Android Lollipop. On my Moto G with KitKat 4.4.4. i don't have this issue. I don't know why this problem is only related to Lollipop.
My problem is, with the solution #ps-glass postet is not working for me somehow setting fitsSystemWindow = true. I tried it with the theme or with the layout file directly, nothing worked for me so far.
Here is an image: https://drive.google.com/file/d/0B5g_MttTC7ZIQzNfS3Y2dVFKSFk/view?usp=sharing
You can only see a bit of the text, the rest is overlaid by the navigation bar.
I found out that this problem is related to a library we are using:
https://github.com/jfeinstein10/SlidingMenu
and other people have this problem too after they updated their AppCompat to v21.
Some solutions were posted here https://github.com/jfeinstein10/SlidingMenu/issues/680 and another one here The getDecorView method return view include navigation bar view on lollipop?
The Solution from https://stackoverflow.com/users/715451/saulobrito is working for me now and it is the easiest way i think.
<style name="Theme" parent="FrameworkRoot.Theme">
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
</style>
I put this code snippet to a my theme in the res/values-v21 folder.
Related
I am Android developer and dealing with Android Nougat (7.0) source code. I experienced kind of strange problem in Snapchat app. In the app, bottom bar icons overlap with the android navigation bar, so I can't use bottom bar icons in the app. I found this issue from different resources as well so I am confused whether this problem is in the app side or in the code base. Does anyone have any idea what can cause this problem?
Add this line in your styles.xml file
<item name="android:windowTranslucentNavigation">false</item>
I used fragment to act as the listview in navigation drawer (as instructed by android developers guide). It's work fine to me, but now I have to put the status bar under the drawer layout - not otherwise with transparent status bar.
I have searched around and only found 1 potential solution provided in here. But it's not working. I would like to comment for more info but I dont have commentator privilege yet, so I start a new question.
In theme of your App in style.xml
add <item name="android:statusBarColor">#android:color/transparent</item>
I am designing an app with Material Design, but I am having trouble styling the ActionBar.
First of all, I can not get the ActionBar to render a shadow. I have tried setting the elevation in multiple ways:
In the styles.xml (v21):
<item name="android:elevation">4dp</item>
<item name="elevation">4dp</item>
In the onCreate() method
getActionBar().setElevation(4);
However, none of these result in the ActionBar rendering a shadow. Not sure if this is important, but I am running Android 5.0.1 Lollipop. What am I missing in trying to render a shadow? I don't really want to make a drawable shadow and set it as the window background.
Secondly, my ActionBar buttons are square, and when I click on them, the ripple is cut off in a square, while in other apps I have used the mask for the ripples has been circular, and my app had been using round buttons, but recently it changed and I don't know why. Could I have accidentaly changed something making them square?
Thank you
The issue is that u use ActionBar while the other apps use ToolBar. Read about and change your code, everything should work after that.
I'm using Nexus5 for testing application and I got issue that is Navigation bar hides Bottom Layout
Main container is RelativeLayout which has LinearLayout on the bottom. other devices are fine and showing well but only Nexus5 has that issue because I think it has navigation bar on the bottom of screen.
Anyone has the same issue that you got? If you do, please share it.
// In style 21 add this line.
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
for more info visit Documentation..
Ohoy. As Im upgrading my app to L, I replaced ActionBars with Toolbars and whenever I start an ActionMode now it pushes down all the content. (I suppose this is because the ActionBar is once again shown in order to display the ActionMode.) Is it possible to display the ActionMode as an overlay, or have it reside within the Toolbar?
Also no styling options seem to apply to it, which makes me wonder whether theres a new way to style it. Any ideas?
Im using AppCompat V7 21 and so far Ive tried windowActionModeOverlay=true and toolbar.startActionMode(..)
Use <item name="windowActionModeOverlay">true</item> in your app theme (without android:).