Re: [android-developers] Re: android how to use one view in multiple layouts files.

2013-12-02 Thread Justin Anderson
You can do it this way but you may have to set the text programatically... However, a better way would be to create a style for your text view and apply the style wherever you want a textview that looks the same. Thanks, Justin Anderson MagouyaWare Developer

Re: [android-developers] Re: android how to use one view in multiple layouts files.

2013-12-02 Thread Justin Anderson
@MathieuB Before chastising others, at least make sure you know what you are talking about. When using the include tag you are only able to change the layout attributes... you are not able to change any other attributes. The solution did not work. From *Re-using Layouts with include /*: You can

[android-developers] Re: android how to use one view in multiple layouts files.

2013-11-15 Thread 12169
Hi , android:text=”Your new text string” eclipse is not showing this option in ctrl+space On Wednesday, November 13, 2013 7:51:47 AM UTC-8, MathieuB wrote: Let's say you named this layout, with your textview tv_layout. Use that in your other layout to include it. Note that you can override

[android-developers] Re: android how to use one view in multiple layouts files.

2013-11-15 Thread 12169
It is not working... On Friday, November 15, 2013 8:53:19 AM UTC-8, 12169 wrote: Hi , android:text=”Your new text string” eclipse is not showing this option in ctrl+space On Wednesday, November 13, 2013 7:51:47 AM UTC-8, MathieuB wrote: Let's say you named this layout, with your

[android-developers] Re: android how to use one view in multiple layouts files.

2013-11-15 Thread MathieuB
Well, i'm not gonna come and do it for you. There's no reason it's not working. If you are not willing to learn the basic first...i'm outta here Learn to read the error, the console, logcat, etc. On Friday, November 15, 2013 11:58:14 AM UTC-5, 12169 wrote: It is not working... On Friday,

[android-developers] Re: android how to use one view in multiple layouts files.

2013-11-15 Thread 12169
Hi, After search i found include tag does not know about the view to which it is creating ,so it does not know about the properties of the child view to which it is creating.so the way you mention is not feasible .. On Friday, November 15, 2013 10:03:29 AM UTC-8, MathieuB wrote: Well, i'm

[android-developers] Re: android how to use one view in multiple layouts files.

2013-11-13 Thread MathieuB
Let's say you named this layout, with your textview tv_layout. Use that in your other layout to include it. Note that you can override other value like layout_width, id, etc. : include android:text=”Your new text string” layout=”@layout/tv_layout”/ -- You received this message