[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-18 Thread poohtbear
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:

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-18 Thread skink
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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-18 Thread poohtbear
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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-18 Thread skink
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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-18 Thread poohtbear
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 =

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-18 Thread skink
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);                

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-18 Thread poohtbear
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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-18 Thread skink
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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-17 Thread poohtbear
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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-17 Thread skink
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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-17 Thread 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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-17 Thread skink
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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-17 Thread skink
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

[android-developers] Re: Causing onMeasure() to be called for an EditView

2010-02-17 Thread skink
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()