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 out to anchor to the root relative layout and it works fine. <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 android:id="@+id/linearLayout1" android:layout_width="wrap_content" android:layout_height="wrap_content" > <com.viktorq.widgets.IconView android:id="@+id/iv_order_status" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="10dp" android:src="@drawable/ic_launcher" /> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" > <TextView android:id="@+id/tv_order_id" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="TextView" android:textSize="16sp" android:textStyle="bold" /> <TextView android:id="@+id/tv_order_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="TextView" android:textSize="10sp" /> <TextView android:id="@+id/tv_laundry_pounds" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="TextView" /> </LinearLayout> </LinearLayout> <TextView android:id="@+id/tv_total" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignBottom="@+id/linearLayout1" android:layout_alignParentRight="true" android:gravity="center_vertical|right" android:text="$0" android:textColor="#578F50" android:textSize="30sp" android:textStyle="bold" /> </RelativeLayout> -- Thanks & Regards -- Subin Sebastian www.nintriva.com http://subinsebastien.tumblr.com http://in.linkedin.com/in/subinsebastien http://plus.google.com/subin <https://plus.google.com/118262481642737404812> http://facebook.com/subinsebastien -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.