List of usage examples for android.graphics Typeface ITALIC
int ITALIC
To view the source code for android.graphics Typeface ITALIC.
Click Source Link
From source file:jmri.enginedriver.throttle.java
void set_stop_button(int whichThrottle, boolean pressed) { if (pressed) { bStops[whichThrottle].setPressed(true); bStops[whichThrottle].setTypeface(null, Typeface.ITALIC); } else {/*from w w w . j a va 2s.c o m*/ bStops[whichThrottle].setPressed(false); bStops[whichThrottle].setTypeface(null, Typeface.NORMAL); } }
From source file:jmri.enginedriver.throttle.java
void set_function_request(int whichThrottle, int function, int reqState) { // Log.d("Engine_Driver","starting set_function_request"); Button b;// w w w . j a va2 s . c om b = functionMaps[whichThrottle].get(function); if (b != null) { if (reqState != 0) { b.setTypeface(null, Typeface.ITALIC + Typeface.BOLD); } else { b.setTypeface(null, Typeface.NORMAL); } } }