Re: [android-developers] Re: Problems with Custom Image View

2013-09-16 Thread Subin Sebastian
On Mon, Sep 16, 2013 at 1:43 PM, Piren wrote: > super.onMeasure(heightMeasureSpec, heightMeasureSpec) > +1 for the super.onMeasure(heightMeasureSpec, heightMeasureSpec); but the problem is solved by using a different layout mechanism. Instead of as a child, I moved the textview out to anchor to

Re: [android-developers] Re: Problems with Custom Image View

2013-09-16 Thread Piren
Use MeasureSpec.getSize(heightMeasureSpec) instead of getMeasureHeight() (i think just calling super.onMeasure(heightMeasureSpec, heightMeasureSpec) should work as well) Also, your last TextView should have its width set to 0dp. On Monday, September 16, 2013 6:46:06 AM UTC+3, Napster wrote:

Re: [android-developers] Re: Problems with Custom Image View

2013-09-15 Thread Subin Sebastian
@Piren, The xml for the row is as below. Please take a look. http://schemas.android.com/apk/res/android"; android:id="@+id/rl_root" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="10dp" >