[android-developers] Re: ImageButton onClick or onKeyDown?

2010-03-28 Thread Holger
On Mar 28, 3:02 pm, Paolo brand...@gmail.com wrote: is it possible to use onKeyDown() for an ImageButton instead of onClick() to capture the user's click on this imagebutton? what's the difference? Difference #1: Press (-onKeyDown()), hold a while then release (-onClick()). Difference #2:

[android-developers] Re: howto extend LinearLayout?

2010-02-18 Thread Holger
I finally foudn the answer myself. The parameters to layout are relative to the parent and should hence not be passed down to the children. The following works fine: @Override protected void onLayout( boolean changed, int l, int t, int r, int b ) {         int len = getChildCount();        

[android-developers] howto extend LinearLayout?

2010-02-04 Thread Holger
Hi there, I'm am trying to learn how to create LayoutGroups. For a start, I created MyLinearLayout which is supposed to force all children into same width (yes, there is layout_weight, but that's beside the point :-) However, the children won't show up. What am I missing here? public class

[android-developers] Re: TableLayout, Rotating

2010-02-03 Thread Holger
While I am at it: How can I enforce equal width on table columns? Is there a way to do in in layout/*.xml or do I have to render the content of my table programatically (getting screen dimensions, and creating the content of the table calls with computed width) Regards, Holger -- You

[android-developers] TableLayout, Rotating

2010-02-02 Thread Holger
(NumPad+Home) but it does not switch back. Is this a bug in the emulator? The app has no special code regarding screen changes beside two layout*/main.xml files. (Android 2.1 in Eclipse Linux/i386) Regards, Holger -- You received this message because you are subscribed to the Google Groups