the hirarchy ?
It's created in runtime
FramLayout
|
-CanvasView(extends view) - responsible for drawing
our UI, overrides onSizeChanged and onDraw.
|
- EditText, used for binding our UI's focused
textFields to android's.
So when resize happens:
On Feb 18, 10:43 am, poohtbear eyaltg...@gmail.com wrote:
the hirarchy ?
It's created in runtime
FramLayout
|
-CanvasView(extends view) - responsible for drawing
our UI, overrides onSizeChanged and onDraw.
|
- EditText, used for
EditText and Canvas View are both created in the FrameLayout's C'tor
(sorry i forgot to to mention it's my own class inheriting from
FramLayout and not the original).
The first LAyoutParams i give EditText are w:0 h:0 x:0 y:0, each time
on resize is called and the item that the EditText is bounded
poohtbear wrote:
EditText and Canvas View are both created in the FrameLayout's C'tor
(sorry i forgot to to mention it's my own class inheriting from
FramLayout and not the original).
The first LAyoutParams i give EditText are w:0 h:0 x:0 y:0, each time
on resize is called and the item that
Here is the code snippet of the C'tor:
public class CanvasLayout extends FrameLayout
{
public CanvasView canvasView;
public CanvasLayout(Activity context)
{
super(context);
// setFocusableInTouchMode(true);
canvasView =
On Feb 18, 2:52 pm, poohtbear eyaltg...@gmail.com wrote:
Here is the code snippet of the C'tor:
editControl = new MyEditText(context);
editControl.setBackgroundColor(Color.GREEN);
editControl.setVisibility(EditText.GONE);
ah. the x,y secret.
I'm using FrameLayout to adjust my TextEdit is specific X,Y's on the
screen, it's possible sue to FrameLayout's margin layout.
I set the EditText in the screen according to my GUI's list items, so
i need the ability to set it to a specific place.
If not obsolete, i would have
On Feb 18, 3:57 pm, poohtbear eyaltg...@gmail.com wrote:
ah. the x,y secret.
I'm using FrameLayout to adjust my TextEdit is specific X,Y's on the
screen, it's possible sue to FrameLayout's margin layout.
I set the EditText in the screen according to my GUI's list items, so
i need the
Using the hack doesn't work.
if i call to the setMeasuredDimension() with the dimensions i want
from the onLayout() of the layout it wont change the measured values.
So i need some help here :-)
On Feb 17, 5:56 pm, poohtbear eyaltg...@gmail.com wrote:
Hi.
I've got a ported application that
On Feb 17, 6:24 pm, poohtbear eyaltg...@gmail.com wrote:
Using the hack doesn't work.
if i call to the setMeasuredDimension() with the dimensions i want
from the onLayout() of the layout it wont change the measured values.
So i need some help here :-)
On Feb 17, 5:56 pm, poohtbear
setMeasuredDimension(int, int) takes the size you want the view to be,
this is why you have to call it in the end of onMeasure() the params
you writ are parameters to onMeasure() no setMEasureDimension().
On Feb 17, 8:11 pm, skink psk...@gmail.com wrote:
On Feb 17, 6:24 pm, poohtbear
On Feb 17, 10:01 pm, poohtbear eyaltg...@gmail.com wrote:
setMeasuredDimension(int, int) takes the size you want the view to be,
this is why you have to call it in the end of onMeasure() the params
you writ are parameters to onMeasure() no setMEasureDimension().
my question was if you just
On Feb 17, 10:01 pm, poohtbear eyaltg...@gmail.com wrote:
setMeasuredDimension(int, int) takes the size you want the view to be,
this is why you have to call it in the end of onMeasure() the params
you writ are parameters to onMeasure() no setMEasureDimension().
also i dont quite
On Feb 17, 10:13 pm, skink psk...@gmail.com wrote:
On Feb 17, 10:01 pm, poohtbear eyaltg...@gmail.com wrote:
setMeasuredDimension(int, int) takes the size you want the view to be,
this is why you have to call it in the end of onMeasure() the params
you writ are parameters to onMeasure()
14 matches
Mail list logo