U can acheive this by using include tag in xml layout On Oct 18, 2013 7:23 PM, "12169" <[email protected]> wrote:
> Hi, > > I have below layout file and i want to use it inside of other layout > files, instead of every time creating it. and inside of other layout > files i want to change the text of textview and also want to provide the > id to TextView > > <LinearLayout > android:layout_width="match_parent" > android:layout_height="wrap_content" > android:orientation="vertical"> > <TextView > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Ashish"/> > <TextView > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:text="Sharma"/> > </LinearLayout > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

