Hi, I am trying to implement my own custom widget, but I am not sure how to implement the onMeasure() for my custom Widget.
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { ... } I want to put my custom widget in a linear layout, so that myWidget's width can fill up the rest of the linear layout after the android widget on the same LinearLayout : <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res/com.tmobile.socialhub" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <Button android:id="@+id/buttonA" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/buttonA" /> <com.mycompany.MyWidget android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" app:text="Red some more text and more text etc etc"/> <ImageView android:id="@+id/icon" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/icon" /> </LinearLayout> -- 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