Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Android
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
A Functional Approach to Java: Augmenting Object-Oriented Java Code with Functional Principles
this week in the
Functional programming
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Liutauras Vilda
Ron McLeod
Jeanne Boyarsky
Paul Clapham
Sheriffs:
Junilu Lacar
Tim Cooke
Saloon Keepers:
Carey Brown
Stephan van Hulst
Tim Holloway
Peter Rooke
Himai Minh
Bartenders:
Piet Souris
Mikalai Zaikin
Forum:
Android
Layouts, bottom position
Mathew Mintalm
Ranch Hand
Posts: 103
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello, im trying to put my horizontal linear layout at bottom possition, but it keeps staying under last component, take a loook:
Would be great if someone can tell me whats wrong, thanks in advance.
Helio Padrao
Greenhorn
Posts: 5
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Could you please show your XML code?
BR,
Hélio Padrão"
Mathew Mintalm
Ranch Hand
Posts: 103
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Here it is:
<?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" android:weightSum="1"> <TextView android:textAppearance="?android:attr/textAppearanceLarge" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/textView1" android:text="@string/integerText" /> - <EditText android:layout_height="wrap_content" android:id="@+id/editText1" android:layout_width="match_parent" android:inputType="number" android:editable="false" android:enabled="true" android:focusable="false"> <requestFocus /> </EditText> <Button android:layout_height="wrap_content" android:id="@+id/button1" android:layout_width="match_parent" android:text="@string/findText" /> <Button android:layout_height="wrap_content" android:id="@+id/button2" android:layout_width="match_parent" android:text="@string/infoText" /> - <LinearLayout android:id="@+id/linearLayout1" android:layout_height="wrap_content" android:orientation="vertical" android:layout_width="match_parent" android:layout_gravity="center_vertical"> - <LinearLayout android:id="@+id/linearLayout2" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_gravity="center_horizontal"> <Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/button0" android:id="@+id/btn0" /> <Button android:text="@string/button1" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/btn1" /> <Button android:text="@string/button2" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/btn2" /> <Button android:text="@string/button3" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/btn3" /> <Button android:text="@string/button4" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/btn4" /> <Button android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/button5" android:layout_gravity="center_vertical" android:id="@+id/btn5" /> </LinearLayout> </LinearLayout> - <LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout3" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_gravity="center_horizontal"> <Button android:text="@string/button6" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/btn6" /> <Button android:text="@string/button7" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/btn7" /> <Button android:text="@string/button8" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/btn8" /> <Button android:text="@string/button9" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/btn9" /> <Button android:text="@string/buttonDel" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/btnDel" /> </LinearLayout> <LinearLayout android:layout_height="wrap_content" android:orientation="vertical" android:layout_width="match_parent" android:id="@+id/linearLayout4" android:layout_gravity="bottom" android:layout_weight="0.26" /> </LinearLayout>
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
I want to make port scanning
How to center lines using SpringLayout?
IllegalArgumentException
Writing a class file to read text file.
Adding up the elements of two arrays and putting the resulting sum in another array
More...