Hi,
I wanted to determine the default color of a text that is used inside
a TextEdit.

However I get confused by all the type int parameters of
obtainStyledAttributes.
Somehow I have to sort them in the right order but I can't figure it
out.

I have available:
com.android.internal.R.styleable.TextView_textColor
android.R.attr.textColorPrimary
android.R.attr.editTextStyle
com.android.internal.R.attr.editTextStyle
and com.android.R.stylabel.EditText which is an array of ints

I would prefer the obtainStyledAttributes solution over a simple (new
TextEdit).getTextColor() which seems to me rather a expensive call.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to