Saturday, 15 May 2010

android - How do I know if there is a navigation bar? -


Navigation bar is drawn on top of my activity with transparency so that my content can be viewed through the navigation bar. It's fine and I like it. However, there are two types of devices:

  1. Devices with a transparent navigation bar
  2. Device with hardware navigation bar (like some Samsung models) that include content, courses, Not drawn behind the navigation bar.

How do I know that the way my app is running is type 1 above? To wit. How can I get a semi-transparent navigation bar at the top of my program, "How can I put the" top of my activity "answer?

You can try to do something like this:

  Boolean menu menu = view configuration (reference) .hasPermanentMenuKey (); Boolean has a back key = keychart map.Device Husky (KEVENT.KKO_back); If you want to do this tool (there is a navigation bar in it!)  
(if you want to! Hemenuke & amp;!

No comments:

Post a Comment