File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Difference between layout_width and android:width Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Difference between layout_width and android:width " Watch "Difference between layout_width and android:width " New topic

Difference between layout_width and android:width

Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
Hi all,

You all must be familiar with android:layout_width and android:width attribute in layout's xml file.
I am very confused with this tow tags. Sat I have TextView then I can use both tags. But if I put only width tag android asks for layout_width tag. So I am very confuse regarding use of both tags.
Please explain...
Vishal Trivedi
Ranch Hand

Joined: Sep 05, 2011
Posts: 57
I believe layout tags are mandatory tags havent used width and height seperately though.
wood burning stoves
subject: Difference between layout_width and android:width
Similar Threads
Using child tag information in parent.
Tag question
Binding of user input to command objects
Custom tags...
body-content version conflict !!! (***doubt)