Possible values for android:layout_width and what do they do

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Possible values for android:layout_width and what do they do

Postby lostInTransit » Wed Feb 18, 2009 5:22 am

Hi

What are the possible values for android:layout_width other than wrap_content, fill_content and a specific width?
What do the wrap_content and fill_content do?

Thanks.
lostInTransit
Developer
Developer
 
Posts: 26
Joined: Thu Feb 12, 2009 10:37 am
Location: India

Top

Postby kali » Mon Feb 23, 2009 9:32 am

no there are not more than it
wrap_content will fill object as its parent
and fill_content will fill as the output to in it it may extend it self according to its output
kali
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Tue Jan 27, 2009 1:31 pm

Re: Possible values for android:layout_width and what do the

Postby jagtap.jj1 » Mon Feb 23, 2009 1:31 pm

u can use other specific value too using
android:layout_width="100px" here width is 100 pixel u can diff unit too e.g. dp(independent point ), inch, etc
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Postby kali » Tue Feb 24, 2009 5:08 am

thanks
i know that we use specific height or width
is there any default value like
fill_content
wrap_content
kali
Experienced Developer
Experienced Developer
 
Posts: 62
Joined: Tue Jan 27, 2009 1:31 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 8 guests