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-16 Thread Subin Sebastian
On Mon, Sep 16, 2013 at 1:43 PM, Piren gpi...@gmail.com 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

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

2013-09-15 Thread Piren
How did you define the xml for the row item? It would also be helpful if you turn on the developer option to show layout borders and provide another screen cap On Sunday, September 15, 2013 6:06:54 AM UTC+3, Napster wrote: The paste is in here : http://paste.ubuntu.com/6108587/ And here is a

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. RelativeLayout xmlns:android=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 LinearLayout