Home
last modified time | relevance | path

Searched refs:toggle (Results 1 – 25 of 98) sorted by relevance

1234

/frameworks/base/docs/html/guide/topics/ui/controls/
Dtogglebutton.jd22 <p>A toggle button allows the user to change a setting between two states.</p>
24 <p>You can add a basic toggle button to your layout with the {@link android.widget.ToggleButton}
25 object. Android 4.0 (API level 14) introduces another kind of toggle button called a switch that
31 {@link android.widget.CompoundButton#toggle CompoundButton.toggle()} methods.
55 ToggleButton toggle = (ToggleButton) findViewById(R.id.togglebutton);
56 toggle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
59 // The toggle is enabled
61 // The toggle is disabled
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/util/
DConfigViewHolder.java37 public void bind(ConfigToggle toggle) { in bind() argument
38 mConfigToggle = toggle; in bind()
39 mCheckBox.setText(toggle.getText()); in bind()
40 mCheckBox.setChecked(toggle.isChecked()); in bind()
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DVectorDrawable01.java63 CheckBox toggle = new CheckBox(this); in onCreate() local
64 toggle.setText("Toggle"); in onCreate()
65 toggle.setChecked(true); in onCreate()
66 toggle.setOnCheckedChangeListener(new OnCheckedChangeListener() { in onCreate()
78 container.addView(toggle); in onCreate()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DProjectionActivity.java39 boolean toggle = false; in ProjectedView()
42 toggle = !toggle; in ProjectedView()
43 setProject(toggle); in ProjectedView()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DREADME.txt17 …ttingsStore: Tracks the various settings (wifi toggle, airplane toggle, tethering toggle, scan mod…
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDrawerController.java90 ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( in create() local
97 return new RuntimeDrawerController(layout, drawer, toggle, toolbar); in create()
131 DrawerLayout layout, View drawer, ActionBarDrawerToggle toggle, in RuntimeDrawerController() argument
138 mToggle = toggle; in RuntimeDrawerController()
/frameworks/base/core/java/android/widget/
DRadioButton.java72 public void toggle() { in toggle() method in RadioButton
76 super.toggle(); in toggle()
DCheckable.java41 void toggle(); in toggle() method
/frameworks/base/docs/html/topic/libraries/support-library/
Drevisions.jd8 <div class="toggle-content opened">
12 "toggle-content-img" alt="">Android Support Library, revision 24.2.0</a>
16 <div class="toggle-content-toggleme">
118 password visibility toggle</a> from the material design specification.
323 <div class="toggle-content closed">
327 "toggle-content-img" alt="">Android Support Library, revision 24.1.1</a>
331 <div class="toggle-content-toggleme">
348 <div class="toggle-content closed">
352 "toggle-content-img" alt="">Android Support Library, revision 24.1.0</a>
356 <div class="toggle-content-toggleme">
[all …]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/graphics/
DRoundedBitmapDrawableActivity.java49 ToggleButton toggle = (ToggleButton) findViewById(R.id.toggle_round); in onCreate() local
54 toggle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { in onCreate()
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DBottomSheetWithFab.java40 if (v.getId() == R.id.toggle && mBehavior != null) {
59 mToggle = (Button) findViewById(R.id.toggle); in onCreate()
DBottomSheetHideable.java48 mToggle = (Button) findViewById(R.id.toggle); in onCreate()
77 if (v.getId() == R.id.toggle && mBehavior != null) {
/frameworks/base/docs/html/about/versions/
Dandroid-2.1.jd71 <div class="toggle-content opened" style="padding-left:1em;">
75 class="toggle-content-img" alt="" />
79 <div class="toggle-content-toggleme" style="padding-left:2em;">
99 <div class="toggle-content closed" style="padding-left:1em;">
103 class="toggle-content-img" alt="" />
107 <div class="toggle-content-toggleme" style="padding-left:2em;">
126 <div class="toggle-content closed" style="padding-left:1em;">
130 class="toggle-content-img" alt="" />
134 <div class="toggle-content-toggleme" style="padding-left:2em;">
Dandroid-1.5.jd76 …$(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/styles/dis…
81 …$(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/styles/dis…
104 #jd-content .toggle-img {
111 …<img src="{@docRoot}assets/images/styles/disclosure_up.png" class="toggle-img" height="9px" width=…
134 …<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-img" height="9px" widt…
148 …<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-img" height="9px" widt…
157 …<img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-img" height="9px" widt…
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBatteryTile.java210 Checkable checkbox = (Checkable) mCurrentView.findViewById(android.R.id.toggle); in bindView()
228 mCurrentView.findViewById(android.R.id.toggle).setVisibility(View.GONE); in bindView()
235 mCurrentView.findViewById(android.R.id.toggle).setVisibility(View.VISIBLE); in bindView()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/view/
DCheckableFrameLayout.java45 public void toggle() { in toggle() method in CheckableFrameLayout
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/view/
DCheckableFrameLayout.java45 public void toggle() { in toggle() method in CheckableFrameLayout
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DToggleSlider.java69 mToggle = (CompoundButton) findViewById(R.id.toggle); in ToggleSlider()
142 public void onCheckedChanged(CompoundButton toggle, boolean checked) {
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DActionBarDrawerToggle.java200 toggle(); in ActionBarDrawerToggle()
277 toggle(); in onOptionsItemSelected()
283 private void toggle() { in toggle() method in ActionBarDrawerToggle
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DBaseLayoutManagerActivity.java183 ConfigToggle toggle = mConfigToggles[position];
184 holder.bind(toggle);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DCheckableImageView.java52 public void toggle() { in toggle() method in CheckableImageView
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/
DItemTouchHelperActivity.java82 ConfigToggle toggle = mConfigToggles[position]; in initToggles()
83 holder.bind(toggle); in initToggles()
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/items/
DSwitchItem.java75 public void toggle(View view) { in toggle() method in SwitchItem
/frameworks/support/design/src/android/support/design/widget/
DCheckableImageButton.java83 public void toggle() { in toggle() method in CheckableImageButton
/frameworks/base/proto/src/
Dmetrics_constants.proto779 // ACTION: QS Wi-Fi detail panel > Wi-Fi toggle
785 // ACTION: QS Bluetooth detail panel > Bluetooth toggle
791 // ACTION: QS Cellular detail panel > Cellular toggle
850 // ACTION: QS DND detail panel > DND toggle
856 // ACTION: DND Settings > Priority only allows > Reminder toggle
862 // ACTION: DND Settings > Priority only allows > Event toggle
880 // ACTION: DND Settings > Priority only allows > Repeat callers toggle
912 // ACTION: Settings > More > Airplane mode toggle
918 // ACTION: Settings > Data usage > Cellular data toggle
1367 // ACTION: Visual interruptions > No screen interuptions toggle
[all …]

1234