layout_width - - match_parent from parent



can (for example a textview) in an (for example linearlayout) match the width with the parent of the linearlayout. (Caution, in my case, the parent of the linearlayout is in a different layout-xml-file.)


I tried something like:



<TextView ...
android:layout_width:"@layout/LayoutParentFromLinearLayout"/> <-- but i'm not able to add here
match_parent


to get a reference to the other XML-layout.


Is it possible trough XML? If not, is it possible programmatically. (I would do this if the first case doesn't work).


Thanks for any suggestion


No comments:

Post a Comment