Access XML attributes (layout_width)

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

Access XML attributes (layout_width)

Postby mangaluve » Mon Apr 06, 2009 11:49 am

I want to write my own LinearLayout class, for learning purposes. Usually I specify some XML attributes for my items, for instance layout_width (android:layout_width="wrap_content). In my own view, how can I read this attribute from it's children?
mangaluve
Experienced Developer
Experienced Developer
 
Posts: 82
Joined: Mon Mar 23, 2009 8:59 pm

Top

Re: Access XML attributes (layout_width)

Postby The_One_Neo » Tue Apr 14, 2009 10:48 am

you can't read the width, because the View width is auto fit, you can get the width when the acticity start complete
The_One_Neo
Developer
Developer
 
Posts: 28
Joined: Wed May 07, 2008 9:34 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests