This is my Code : I have created Spinner with a list of FontSize options.
If i click FontSize "26" then it should be able to change in that specific
FontSize. I mean below that i have EditBox. So if i clicked Fontsize as 40
and in a Italic style than usual Bold. So i should be able to type inside
EditBox with this selected "Font" : FontSize "40" and Italic style.
How could i do this programmatically in Android ? Could anyone suggest or
help me ?
font=new Spinner(con);
option= new String[] {"Select Font
Size","8","10","12","14","16","18","20","22","24","26","28","30","32","34","36","38","40","50"};
ArrayAdapter<String> adapter= new
ArrayAdapter<String>(con,android.R.layout.simple_spinner_dropdown_item,option);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
font.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> arg0, View arg1,int position,
long id) {
option[1]="8";
selectedItem= option[position];
}
@Override
public void onNothingSelected(AdapterView<?> arg0) {
// TODO Auto-generated method stub
}
});
--
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