Android Nexus5 Navigation Hiding Layout - android

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..

Related

Navigation bar overlaps with bottom bar icons

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>

Issue with Android devices having soft status bar which hides bottom tabs

I am having issue with different android devices to set layout as it soft status bar at bottom covers bottom tabs.
Is there any way to overcome this issue as I tried to set margin of my tab layout which works but need a way to detect different android devices so I can set margin for particular.
Any help Appreciated.

Android Lollipop navigation bar overlays activity view

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.

Overlay a Full screen Transparent layer in Android 4.4(KitKat)

I want to overlay a transparent view on the entire screen including the bottom most Navigation Bar in Android 4.4.
I am able to do so in Android 4.3 by defining the window Manager LayoutParams as TYPE_SYSTEM_OVERLAY, but when I use the same definition the layout is now pushed behind the navigation bar. could you please let me know if it due to the recent updates in KitKat? or If any one have a solution please share with me.
regards

ActionBarSherlock tab height not adjustable on Jelly Bean

I am creating an application with ActionBarSherlock and using ActionBar tabs. Below is how I am defining tabs:
actionBar.addTab(actionBar.newTab().setText("test").setTabListener(new TabListener<AccountsListFragment>(this, "accounts",AccountsListFragment.class)));
I am trying to change the height of the tabs. From what I understand there is no way to change just the height of the tabs. You also have to change the height of the main action bar(I am pulling my definition of the main action bar from)
http://developer.android.com/design/patterns/actionbar.html#considerations-split-action-bars
So how you change the height of the action bar is using the below style inside the main theme
<item name="actionBarSize">100dp</item>
<item name="android:actionBarSize">100dp</item>
The above code seems to work on all devices to change both the Main action bar and the tabs except jellybean. I tested this on a 4.1.2 galaxy nexus. Also on a 4.2 Nexus 7. It seems to work the same on both. It only changes the main action bar and not the tab height at all.
We also tried a custom view for the tabs which did not help us.
If anyone can point me to where in google it says that they do not allow changing height of tabs anymore(Which I doubt is the case) or give me a style to fix this issue. I would greatly appreciate it. If you even give me an example on a normal action bar and not sherlock that should help me.
To me it sounds like a silent bug fix. They make some of these at every new release. I doesn't make sense that changing the height of the actionbar should increase the size of the tabs and it isn't something that has been encouraged by Google, rather it's a hack developers have found nice to use. Your only other option is to make it yourself, but it's quite complex and could prove to be time consuming.
Similar post here:
Change Actionbar height on Android JellyBean

Categories

Resources