I want to change status bar height of android device using an application
for non rooted devices.
I found a way to modify it using xPosed installer but it is for rooted
device.
I also tried to get the height of status bar at run time using java
reflection technique and is able to set the new height but the new height
is not reflected to status bar UI.
Below is the code snippet which I tried:
field = c.getDeclaredField("status_bar_height");
field.setAccessible(true);
field.setInt("status_bar_height", 2000 & ~Modifier.FINAL);
Do I need to modify the dimens.xml file as well or this value of
status_bar_height
can be reflected directly.
Please let me know any changes which I have to make.
Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/788ed7f5-f546-4e04-b803-10561deb23c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.