Hi,

How can we pass through a text style to our own compound control? For
example, I have the following:

    com.me.test.MyCompoundView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:textAppearance="@style/TextStyleFoo"

    public class MyCompoundView extends LinearLayout {
        TextView mTextView;

        public MyCompoundView(Context context, AttributeSet attrs) {
            super(context, attrs);
            TypedArray a = context.obtainStyledAttributes(...);

            // How do we pass the text style in the xml def
            // to our child textview here?
            mTextView.setTypeFace(...?...);
        }
    }

yeah I'm not sure what the correct way to do it is, thanks for any
pointers,

Mark

-- 
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

Reply via email to