i\'m going to change text typeface to arialbold in my spinner how i\'m going to do so. Below is my code :-
ArrayAdapter genderAdap = Arra
For changing the font of spinner items, you have to use custom spinner
try as to set custom Typeface for all TextView's in spinner :
Typeface typeface;
font_name_Adapter= new ArrayAdapter
(this,android.R.layout.simple_spinner_item,ARRLIST_FONTS)
{
public View getView(int position, View convertView,ViewGroup parent) {
View v = super.getView(position, convertView, parent);
((TextView) v).setTextSize(12);
((TextView) v).setTextColor(Color.WHITE);
if(position<=ARRLIST_FONTS.size()){
typeface =
Typeface.createFromAsset(Your_Current_Activity.this.getAssets(),
"fonts/yourfontname.ttf");
((TextView) v).setTypeface(typeface);
}
return v;
}