On Thu, Nov 17, 2011 at 12:50 PM, Kim <kimknap...@gmail.com> wrote: > Currently, I am not familiar with using wrap_content or > Android:layout_width. Do you cover them in any of your books?
Yes, though you'll see them used in lots and lots of examples, particularly wrap_content: http://developer.android.com/guide/topics/ui/declaring-layout.html wrap_content, used with android:layout_width or android:layout_height, says "size me to be big enough to hold my content, but no bigger", where the definition of "content" varies by widget/container. android:layout_weight, used on children of LinearLayout, is used, among other things, to size things on a percentage basis: https://github.com/commonsguy/cw-android/tree/master/Containers/LinearPercent Similarly, you can affect widget size via rules on RelativeLayout (e.g., anchor a ListView to the top of the screen and to the top of a Button placed on the bottom of the screen). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.2 Programming Books: http://commonsware.com/books -- 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