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
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
Ron McLeod
Tim Cooke
Paul Clapham
Liutauras Vilda
Sheriffs:
Junilu Lacar
Rob Spoor
Jeanne Boyarsky
Saloon Keepers:
Stephan van Hulst
Carey Brown
Tim Holloway
Piet Souris
Bartenders:
Forum:
Android
Control with fill_parent takes all remaining space
Andrzej Borucki
Ranch Hand
Posts: 101
1
posted 1 year ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have activity_main.xml:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:text="EditText" /> <Button android:layout_width="match_parent" android:layout_height="fill_parent" android:text="Control" /> <TextView android:layout_width="match_parent" android:layout_height="100px" android:text="TextView" /> </LinearLayout>
I want some:
but is
No textview displayed. Control with fill_parent must be last , but I want some controls below.
Which layout I must use (Linear? Relative? Constraint?) and how?
Swastik Dey
Bartender
Posts: 2270
20
I like...
posted 1 year ago
Number of slices to send:
Optional 'thank-you' note:
Send
How about using layout_weight?
Swastik
He baked a muffin that stole my car! And this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Layouts, bottom position
when i change android:orientation to horizontal it shows blank screen
All controls of layout xml not shown in emulator
getSupportFragmentManager returns null in certain devices
Layout issues
More...