Re: [android-developers] button placement problem
On Thu, Oct 7, 2010 at 6:13 PM, Varun Khanduja varunkhand...@gmail.comwrote: I am trying to get a button at bottom of a screen having a list view. Could you add more detail to the problem you're having and the outcome you're trying to achieve? A picture of each case would help as well if you have it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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
[android-developers] button placement problem
Hey guys, I am trying to get a button at bottom of a screen having a list view. This button is non-scrollable and the list view slips below the button if it is larger than the size of the button. Could someone please help me get the right xml properties. Tried layout_gravity and other things but it doesnt seems to be displaying. Here is the main.xml file ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TextView android:id=@+id/textViewHello android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=horizontal Button android:id=@+id/Button1 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_alignParentLeft=true android:textSize=15sp android:typeface=monospace android:textColor=#ffFFffFF android:text=@string/Button1 /Button Button android:id=@+id/Button2 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_alignParentRight=true android:textSize=15sp android:typeface=monospace android:textColor=#ffFFffFF android:text=@string/Button2 /Button Button android:id=@+id/Button3 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_alignParentRight=true android:textSize=15sp android:typeface=monospace android:textColor=#ffFFffFF android:text=@string/Button3 /Button Button android:id=@+id/Button4 android:layout_height=wrap_content android:layout_width=wrap_content android:layout_alignParentRight=true android:textSize=15sp android:typeface=monospace android:textColor=#ffFFffFF android:text=@string/Button4 /Button /LinearLayout ListView android:id=@android:id/list android:layout_width=wrap_content android:layout_height=wrap_content android:drawSelectorOnTop=false / Button android:layout_width=fill_parent android:layout_height=wrap_content android:id=@+id/Button4 android:text=@string/hello android:layout_gravity=bottom android:isScrollContainer=false / /LinearLayout Here is the list xml file. ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android= http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=horizontal ImageView android:id=@+id/icon android:layout_width=22px android:paddingLeft=2px android:paddingRight=2px android:paddingTop=2px android:layout_height=wrap_content android:src=@drawable/icon/ LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:orientation=vertical TextView android:id=@+id/label1 android:layout_width=100px android:layout_height=wrap_content android:textSize=10sp/ TextView android:id=@+id/label2 android:layout_width=100px android:layout_height=wrap_content android:textSize=10sp/ /LinearLayout TextView android:id=@+id/label3 android:layout_width=100px android:layout_height=wrap_content android:layout_marginLeft=40px android:textSize=15sp android:text=hello / ImageView android:id=@+id/icon android:layout_width=22px android:paddingLeft=2px android:paddingRight=2px android:paddingTop=2px android:layout_height=wrap_content android:src=@drawable/icon android:layout_gravity=right/ /LinearLayout Thank you, Varun -- 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