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:
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();
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
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
(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
5 matches
Mail list logo