2014-02-05 69 views

回答

2
private OnItemSelectedListener OnCatSpinnerCL = new AdapterView.OnItemSelectedListener() { 
    public void onItemSelected(AdapterView<?> parent, View view, int pos, 
      long id) { 

     ((TextView) parent.getChildAt(0)).setTextColor(Color.BLUE); 
     ((TextView) parent.getChildAt(0)).setTextSize(5); 



    } 

    public void onNothingSelected(AdapterView<?> parent) { 

    } 
}; 
+0

感謝它幫助了很多,而不是輕微的閃爍,而改變字體顏色。你有什麼主意嗎? – youssefhassan