What i am trying to do is newTextView =(TextView)getLayoutInflater().inflate(R.layout.styledtextvew1, null);
I have xml like the following..when the style is applied the weight and gravity does not..is this the normal behaviour because I am trying to do it at runtime? <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_weight="1" android:gravity="center" style="@style/rowText0" /> <style name="rowText0" parent="@android:style/TextAppearance.Medium"> <item name="android:textColor">#0000FF</item> <item name="android:textSize">14dip</item> </style> On Monday, July 9, 2012 11:47:01 AM UTC+5:30, maccoy wrote: > > Can i set a style from one TextView to another? -- 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

