Tuesday 15 January 2013

Spinner visibility in android 4.0 -


is working on an app in which the screen background is "almost # 232323" (almost black), I have a spinner on screen The problem is that the spinner marker (on the bottom right corner) is not visible as a screen background in the Android 4.0 device and the marker's color is the same. Is there a way to change the spinner marker color? You are moving forward to help ... thanks :)

Try it out in your spinner Spinner color

  Find mdt_spn = (spinner) VVBIID (R.D.XMDTM_SPN); ArrayAdapter & LT; String & gt; Adapter1 = New array adapter & lt; String & gt; (GetApplicationContext (), android.R.layout.simple_spinner_item, mdt_arr) {see public getView (integer status, see convertview view, viewgroup parent) {see v = super.getView (status, convertview, parent); (TextView) v) .setTextSize (30); (TextView) v .setTextColor (getResources () .getColorStateList (R.color.mycolor1)); Return vi; } View public getDropDownView (integer status, seeviewview, ViewGroup parent) {see v = super.getDropDownView (Status, ConvertView, Parent); (TextView) v) .setTextSize (35); (TextView) v .setTextColor (getResources (). GetColorStateList (R.color.mycolor)); Return vi; }}; Mdt_spn.setAdapter (adapter1);    

No comments:

Post a Comment