Nice! Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware
On Tue, Oct 18, 2011 at 10:28 AM, Kostya Vasilyev <[email protected]>wrote: > > http://developer.android.com/reference/android/content/res/ColorStateList.html > > Public Constructors **** > **ColorStateList<http://developer.android.com/reference/android/content/res/ColorStateList.html#ColorStateList%28int[][],%20int[]%29>(int[][] > states, int[] colors)** > Creates a ColorStateList that returns the specified mapping from states to > colors. > > -- Kostya > > 18.10.2011 20:22, Justin Anderson пишет: > > Hmm... I'm not aware of a way to programmatically create a selector (but > that doesn't mean it is impossible). > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Tue, Oct 18, 2011 at 1:49 AM, Build account <[email protected]>wrote: > >> Wow! This is what a wonderful workaround! >> >> Thank you GG! >> >> On Oct 18, 3:51 pm, gaurav gupta <[email protected]> wrote: >> > Hello , >> > >> > U can try Html.fromhtml tag. >> > >> > Like this line >> > >> > hotelCity = hotel_Name_Str + ","+ "<b><font color=#6AA3FA>"+ " >> > "+tracks.get(position).getHotelCity()+ "</font></b>"; >> > then set this string in a Textview. >> > >> > hotelname.setText(Html.fromHtml(hotelCity)); >> > >> > Note : *Here hotelCity and hotel_Name_Str is String and hotelname is >> > TextView.* >> > >> > I hope this will work for you. >> > Kindly let me know ur comment over this. >> > >> > Thanks n Regards, >> > Gaurav Gupta >> > Android Developer >> > On Tue, Oct 18, 2011 at 12:13 PM, Build account < >> [email protected]>wrote: >> > >> > >> > >> > > Hello, good to see you again. >> > >> > > I had looked into, >> > > (but there is limitation which I can create only few selector xml >> > > physically...since my app need to set various colors properly depends >> > > on situation. Not only dozone of colors. lol) >> > >> > > Is there any way to programmtically implement? >> > > I need programmatic way.... >> > >> > > Any advice? >> > >> > > On Oct 18, 3:07 pm, Justin Anderson <[email protected]> wrote: >> > > > Have you tried looking at a selector? >> > >> > > > Thanks, >> > > > Justin Anderson >> > > > MagouyaWare Developerhttp://sites.google.com/site/magouyaware >> > >> > > > On Mon, Oct 17, 2011 at 10:42 PM, Build account < >> [email protected] >> > > >wrote: >> > >> > > > > Hello. >> > >> > > > > Is there any way to change the color of 'selected' state? >> > > > > Since I'm trying to use textview as below. >> > >> > > > > - one simple textview with a standard TextAppearance attribute. >> > > > > - with marquee attribute as well. >> > > > > - I have set tv.setSelected(true); for marquee effect. >> > > > > - in this case I want to change the text color which the moving >> text's >> > > > > color. >> > >> > > > > setHighlightColor seem that not working.. >> > >> > > > > Any workaround please? >> > >> > > > > Please advice me >> > >> > > > > -- >> > > > > 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-Hidequoted >> > > text - >> > >> > > > - Show quoted text - >> > >> > > -- >> > > 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- Hide quoted >> text - >> > >> > - Show quoted text - >> >> -- >> 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 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 > > > -- > Kostya Vasilyev > > -- > 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 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

