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
Building Green Software: A Sustainable Approach to Software Development and Operations
this week in the
Agile/Processes
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:
Tim Cooke
Campbell Ritchie
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Android
ViewStub not show
shawn peter
Ranch Hand
Posts: 1325
1
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:id="@+id/header" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_above="@+id/txtPassword" android:layout_alignParentTop="true" android:layout_marginBottom="0dp" android:layout_marginTop="5dp" android:orientation="horizontal" android:padding="5dp" > <ViewStub android:id="@+id/vsHeader" android:layout_width="fill_parent" android:layout_height="wrap_content" android:inflatedId="@+id/header" android:layout="@layout/header" /> </LinearLayout> <LinearLayout android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_above="@+id/txtPassword" android:layout_alignParentTop="true" android:layout_marginBottom="0dp" android:layout_marginTop="5dp" android:orientation="horizontal" android:padding="5dp" > <ListView android:id="@+id/list" android:layout_width="wrap_content" android:layout_height="wrap_content" > </ListView> </LinearLayout> </RelativeLayout>
above is my list view xml file.I need ViewStub to be in top,but it is not coming to top.even it is not shown.
Steve Luke
Bartender
Posts: 4179
22
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What is a ViewStub? Have you read its API?
Steve
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
last button(Sybmit) not shown when testing via phone
ScrollView issue in my layout
how to align radio button groups
how to add textviews dinamically
how to give Edittext and button to half of the screen width?
More...