Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-07-12 Thread b0b


On Wednesday, 11 July 2012 18:12:59 UTC+2, Dianne Hackborn wrote:

 It's a bug in the app; the app isn't using the standard action bar.


Btw what is the rationale for the system to never display the overflow menu 
on ICS phones having a hardware menu key ?
Isn't that bad for discoverability, one of the benefits of the overflow 
menu ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-07-12 Thread Dianne Hackborn
On Thu, Jul 12, 2012 at 2:54 AM, b0b pujos.mich...@gmail.com wrote:

 Btw what is the rationale for the system to never display the overflow
 menu on ICS phones having a hardware menu key ?
 Isn't that bad for discoverability, one of the benefits of the overflow
 menu ?


It would be redundant, and this behavior is consist with the long standing
UX for devices with a physical menu button.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-07-12 Thread b0b


On Thursday, 12 July 2012 19:01:26 UTC+2, Dianne Hackborn wrote:

 On Thu, Jul 12, 2012 at 2:54 AM, b0b wrote:

 Btw what is the rationale for the system to never display the overflow 
 menu on ICS phones having a hardware menu key ?
 Isn't that bad for discoverability, one of the benefits of the overflow 
 menu ?


 It would be redundant, and this behavior is consist with the long standing 
 UX for devices with a physical menu button.



This is really dabatable and a matter of personal opinion...I would have 
liked the Action Bar of my app to look the same weather there
is a physical menu button or not. 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-07-11 Thread Kiview
But why do the google apps (like Google+) use overflow in the action bar on 
devices with physical menu button if this is considered bad?


Am Dienstag, 5. Juni 2012 22:30:49 UTC+2 schrieb Dianne Hackborn:

 Oh good lord, don't freaking do that.

 On Tue, Jun 5, 2012 at 12:10 PM, b0b pujos.mich...@gmail.com wrote:




 Unless I missed something in the previous discussions, or there has 
 been a breakthrough since, there is NO possible way to make the 
 overflow button show up if there is a physical hardware key. 



 There is. With hack below you can force the appearance of the overflow 
 menu even if there is a physical button menu  
 with target SDK = 14. Of course you must never use it since it is a 
 horrible hack, and nobody shall use hacks ever, especially on Android !

 static public void setHasPermanentMenuKey(Context context, boolean value) 
 { 
 if (isICSOrLater()) {
 ViewConfiguration config = ViewConfiguration.get(context);
 try {
 Field f = ViewConfiguration.class
 .getDeclaredField(sHasPermanentMenuKey);
 f.setAccessible(true);
 if (f != null) {
 f.set(config, value);
 log.info(Successfully hacked permanent menu key);
 }
 } catch (Exception ex) {
 log.info(Unable to hack permanent menu key:  + ex);
 }
 }
 }
  
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to 
 provide private support, and so won't reply to such e-mails.  All such 
 questions should be posted on public forums, where I and others can see and 
 answer them.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-07-11 Thread Kostya Vasilyev
They might have their own action bar implementation, just like gmail on 2.*
uses its own, rather than the framework's Quick Contact Badge (you can tell
on HTC devices, which has a modified version of this class in their
firmware).
11.07.2012 17:46 пользователь Kiview shaolin.aven...@googlemail.com
написал:

 But why do the google apps (like Google+) use overflow in the action bar
 on devices with physical menu button if this is considered bad?


 Am Dienstag, 5. Juni 2012 22:30:49 UTC+2 schrieb Dianne Hackborn:

 Oh good lord, don't freaking do that.

 On Tue, Jun 5, 2012 at 12:10 PM, b0b pujos.mich...@gmail.com wrote:




 Unless I missed something in the previous discussions, or there has
 been a breakthrough since, there is NO possible way to make the
 overflow button show up if there is a physical hardware key.



 There is. With hack below you can force the appearance of the overflow
 menu even if there is a physical button menu
 with target SDK = 14. Of course you must never use it since it is a
 horrible hack, and nobody shall use hacks ever, especially on Android !

 static public void setHasPermanentMenuKey(Context context, boolean
 value) {
 if (isICSOrLater()) {
 ViewConfiguration config = ViewConfiguration.get(context)**;
 try {
 Field f = ViewConfiguration.class
 .getDeclaredField(**sHasPermanentMenuKey);
 f.setAccessible(true);
 if (f != null) {
 f.set(config, value);
 log.info(Successfully hacked permanent menu key);
 }
 } catch (Exception ex) {
 log.info(Unable to hack permanent menu key:  + ex);
 }
 }
 }

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@**
 googlegroups.com android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-07-11 Thread Dianne Hackborn
It's a bug in the app; the app isn't using the standard action bar.

On Wed, Jul 11, 2012 at 6:44 AM, Kiview shaolin.aven...@googlemail.comwrote:

 But why do the google apps (like Google+) use overflow in the action bar
 on devices with physical menu button if this is considered bad?


 Am Dienstag, 5. Juni 2012 22:30:49 UTC+2 schrieb Dianne Hackborn:

 Oh good lord, don't freaking do that.

 On Tue, Jun 5, 2012 at 12:10 PM, b0b pujos.mich...@gmail.com wrote:




 Unless I missed something in the previous discussions, or there has
 been a breakthrough since, there is NO possible way to make the
 overflow button show up if there is a physical hardware key.



 There is. With hack below you can force the appearance of the overflow
 menu even if there is a physical button menu
 with target SDK = 14. Of course you must never use it since it is a
 horrible hack, and nobody shall use hacks ever, especially on Android !

 static public void setHasPermanentMenuKey(Context context, boolean
 value) {
 if (isICSOrLater()) {
 ViewConfiguration config = ViewConfiguration.get(context)**;
 try {
 Field f = ViewConfiguration.class
 .getDeclaredField(**sHasPermanentMenuKey);
 f.setAccessible(true);
 if (f != null) {
 f.set(config, value);
 log.info(Successfully hacked permanent menu key);
 }
 } catch (Exception ex) {
 log.info(Unable to hack permanent menu key:  + ex);
 }
 }
 }

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@**
 googlegroups.com android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en




 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Showing Overflow menu button on ICS.

2012-06-05 Thread Dianne Hackborn
Oh good lord, don't freaking do that.

On Tue, Jun 5, 2012 at 12:10 PM, b0b pujos.mich...@gmail.com wrote:




 Unless I missed something in the previous discussions, or there has
 been a breakthrough since, there is NO possible way to make the
 overflow button show up if there is a physical hardware key.



 There is. With hack below you can force the appearance of the overflow
 menu even if there is a physical button menu
 with target SDK = 14. Of course you must never use it since it is a
 horrible hack, and nobody shall use hacks ever, especially on Android !

 static public void setHasPermanentMenuKey(Context context, boolean value)
 {
 if (isICSOrLater()) {
 ViewConfiguration config = ViewConfiguration.get(context);
 try {
 Field f = ViewConfiguration.class
 .getDeclaredField(sHasPermanentMenuKey);
 f.setAccessible(true);
 if (f != null) {
 f.set(config, value);
 log.info(Successfully hacked permanent menu key);
 }
 } catch (Exception ex) {
 log.info(Unable to hack permanent menu key:  + ex);
 }
 }
 }

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en