Home | History | Annotate | Download | only in widget

Lines Matching defs:Switch

45  * A Switch is a two-state toggle switch widget that can select between two
48 * property controls the text displayed in the label for the switch, whereas the
68 public class Switch extends CompoundButton {
117 * Construct a new Switch with default styling.
121 public Switch(Context context) {
126 * Construct a new Switch with default styling, overriding specific style
132 public Switch(Context context, AttributeSet attrs) {
137 * Construct a new Switch with a default style determined by the given theme attribute,
145 public Switch(Context context, AttributeSet attrs, int defStyle) {
154 com.android.internal.R.styleable.Switch, defStyle, 0);
184 * Sets the switch text color, size, style, hint color, and highlight color
238 switch (typefaceIndex) {
257 * switch, and turns on the fake bold and italic bits in the Paint if the
283 * Sets the typeface in which the text should be displayed on the switch.
302 * Set the amount of horizontal padding between the switch and the associated text.
314 * Get the amount of horizontal padding between the switch and the associated text.
325 * Set the minimum width of the switch in pixels. The switch's width will be the maximum
326 * of this value and its measured width as determined by the switch drawables and text used.
328 * @param pixels Minimum width of the switch in pixels
338 * Get the minimum width of the switch in pixels. The switch's width will be the maximum
339 * of this value and its measured width as determined by the switch drawables and text used.
341 * @return Minimum width of the switch in pixels
350 * Set the horizontal padding around the text drawn on the switch itself.
352 * @param pixels Horizontal padding for switch thumb text in pixels
362 * Get the horizontal padding around the text drawn on the switch itself.
364 * @return Horizontal padding for switch thumb text in pixels
373 * Set the drawable used for the track that the switch slides within.
385 * Set the drawable used for the track that the switch slides within.
396 * Get the drawable used for the track that the switch slides within.
407 * Set the drawable used for the switch "thumb" - the piece that the user
420 * Set the drawable used for the switch "thumb" - the piece that the user
432 * Get the drawable used for the switch "thumb" - the piece that the user
528 * @return true if (x, y) is within the target area of the switch thumb
544 switch (action) {
557 switch (mTouchMode) {
621 // Up and not canceled, also checks the switch has not been disabled during the drag
690 switch (getGravity() & Gravity.VERTICAL_GRAVITY_MASK) {
719 // Draw the switch
832 event.setClassName(Switch.class.getName());
838 info.setClassName(Switch.class.getName());