[TIMOB-10123] Android: Expose Action Bar API's hide method to hide the action bar
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-02-16T00:09:48.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | SupportTeam, api, insight, look1 |
Reporter | Varun Joshi |
Assignee | Ingo Muschenetz |
Created | 2012-07-24T17:10:45.000+0000 |
Updated | 2017-03-16T22:20:17.000+0000 |
Description
Problem
The action bar on Android is appearing by default on devices running Android OS version 3.0 or greater. This is device specific. It happens on Samsung Galaxy Nexus and HTC One X but not on Samsung Galaxy S3. It is requested to expose the hide method that would probably hide the action bar for these devices.Attachments
File | Date | Size |
---|---|---|
Screenshot_2012-07-18-14-32-07.png | 2012-08-06T11:31:39.000+0000 | 43562 |
@Varun Could you attach a sample test case which we can use to reproduce the issue.
Attaching the screenshot of how the action bar looks like (notice the three vertical dots). The Kitchen sink app can be used as a sample. Please let me know if this works.
De escalating it right now as the workaround provided worked for the customer. The workaround is to add a custom theme based on the android api versions to platform/res/styles folder. Related doc: http://developer.android.com/reference/android/R.style.html and http://developer.android.com/guide/topics/ui/themes.html
We might want to utilize the "navBarHidden" property on Window. On older Android versions this will hide the title bar. Honeycomb or later have replaced the title bar with the action bar. It seems logical we would control the visibility of both with the same property.
Moving this out of the current release as Google recommends using theme to achieve the desired behavior and the theme is working for the customer.
http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Android.ActionBar-method-hide
Closing ticket as fixed.