HomeSort by relevance Sort by last modified time
    Searched refs:CheckBox (Results 1 - 25 of 259) sorted by null

1 2 3 4 5 6 7 8 91011

  /frameworks/base/core/java/android/widget/
CheckBox.java 24 * A checkbox is a specific type of two-states button that can be either
25 * checked or unchecked. A example usage of a checkbox inside your activity
36 * final CheckBox checkBox = (CheckBox) findViewById(R.id.checkbox_id);
37 * if (checkBox.isChecked()) {
38 * checkBox.setChecked(false);
44 * <p>See the <a href="{@docRoot}guide/topics/ui/controls/checkbox.html">Checkboxes</a>
55 public class CheckBox extends CompoundButton {
56 public CheckBox(Context context)
    [all...]
  /cts/hostsidetests/theme/app/src/android/theme/app/modifiers/
ViewCheckedModifier.java 20 import android.widget.CheckBox;
26 ((CheckBox) view).setChecked(true);
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowCheckBoxTest.java 5 import android.widget.CheckBox;
15 CheckBox checkBox = new CheckBox(RuntimeEnvironment.application);
16 assertThat(checkBox.isChecked()).isFalse();
18 checkBox.setChecked(true);
19 assertThat(checkBox.isChecked()).isTrue();
21 checkBox.toggle();
22 assertThat(checkBox.isChecked()).isFalse();
24 checkBox.performClick(); // Used to support performClick(), but Android doesn't. Sigh
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
CheckBoxTest.java 35 import android.widget.CheckBox;
49 private CheckBox mCheckBox;
59 mCheckBox = (CheckBox) mActivity.findViewById(R.id.check_box);
64 new CheckBox(mActivity);
65 new CheckBox(mActivity, null);
66 new CheckBox(mActivity, null, android.R.attr.checkboxStyle);
67 new CheckBox(mActivity, null, 0,
69 new CheckBox(mActivity, null, 0,
71 new CheckBox(mActivity, null, 0,
73 new CheckBox(mActivity, null, 0
    [all...]
CheckBoxCtsActivity.java 21 import android.widget.CheckBox;
24 * A minimal application for {@link CheckBox} test.
  /external/autotest/frontend/client/src/autotest/common/table/
CheckboxFilter.java 8 import com.google.gwt.user.client.ui.CheckBox;
12 private CheckBox checkBox = new CheckBox();
16 checkBox.addClickHandler(this);
25 return checkBox;
30 return checkBox.getValue();
34 checkBox.setValue(active);
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
CheckBoxTest.java 3 import android.widget.CheckBox;
15 CheckBox checkBox = new CheckBox(null);
16 assertThat(checkBox.isChecked(), equalTo(false));
18 checkBox.setChecked(true);
19 assertThat(checkBox.isChecked(), equalTo(true));
21 checkBox.performClick();
22 assertThat(checkBox.isChecked(), equalTo(false));
24 checkBox.toggle()
    [all...]
  /frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/util/
ConfigViewHolder.java 20 import android.widget.CheckBox;
28 private CheckBox mCheckBox;
34 mCheckBox = (CheckBox) itemView;
  /external/autotest/frontend/client/src/autotest/afe/
ICheckBox.java 4 import com.google.gwt.user.client.ui.CheckBox;
13 public static class CheckBoxImpl extends CheckBox implements ICheckBox {
  /development/samples/ApiDemos/src/com/example/android/apis/animation/
LayoutAnimations.java 31 import android.widget.CheckBox;
95 CheckBox customAnimCB = (CheckBox) findViewById(R.id.customAnimCB);
103 CheckBox appearingCB = (CheckBox) findViewById(R.id.appearingCB);
109 CheckBox disappearingCB = (CheckBox) findViewById(R.id.disappearingCB);
115 CheckBox changingAppearingCB = (CheckBox) findViewById(R.id.changingAppearingCB);
121 CheckBox changingDisappearingCB = (CheckBox) findViewById(R.id.changingDisappearingCB)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
FragmentMenuFragment.java 29 import android.widget.CheckBox;
37 CheckBox mCheckBox1;
38 CheckBox mCheckBox2;
68 mCheckBox1 = (CheckBox)v.findViewById(R.id.menu1);
70 mCheckBox2 = (CheckBox)v.findViewById(R.id.menu2);
  /frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
FragmentMenuFragmentSupport.java 24 import android.widget.CheckBox;
38 CheckBox mCheckBox1;
39 CheckBox mCheckBox2;
70 mCheckBox1 = (CheckBox)v.findViewById(R.id.menu1);
72 mCheckBox2 = (CheckBox)v.findViewById(R.id.menu2);
  /packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
MasterCheckBoxPreferenceTest.java 28 import android.widget.CheckBox;
62 final CheckBox checkBox = (CheckBox) holder.findViewById(R.id.checkboxWidget);
66 assertThat(checkBox.isChecked()).isTrue();
69 assertThat(checkBox.isChecked()).isFalse();
77 final CheckBox checkBox = (CheckBox) holder.findViewById(R.id.checkboxWidget);
81 assertThat(checkBox.isEnabled()).isTrue()
    [all...]
  /frameworks/support/samples/SupportCarDemos/src/main/java/com/example/androidx/car/
CarAlertDialogDemo.java 22 import android.widget.CheckBox;
40 CheckBox hasTitleView = findViewById(R.id.has_title);
41 CheckBox hasBodyText = findViewById(R.id.has_body_text);
42 CheckBox hasSingleLineBody = findViewById(R.id.has_single_line_body);
43 CheckBox hasAction1 = findViewById(R.id.has_action_1);
44 CheckBox hasAction2 = findViewById(R.id.has_action_2);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
NumberPickerActivity.java 23 import android.widget.CheckBox;
44 ((CheckBox) findViewById(R.id.enabled)).setOnCheckedChangeListener(
  /packages/apps/Settings/src/com/android/settings/localepicker/
LocaleDragCell.java 21 import android.widget.CheckBox;
29 // We need to keep the label and the checkbox "in sync"
30 // The checkbox shows in remove mode, and the label shows in normal mode, in the same position.
33 private CheckBox mCheckbox;
48 mCheckbox = (CheckBox) findViewById(R.id.checkbox);
63 // "Opposite" visibility for label / checkbox
107 public CheckBox getCheckbox() {
  /packages/apps/Settings/src/com/android/settings/widget/
MasterCheckBoxPreference.java 24 import android.widget.CheckBox;
30 * A custom preference that provides inline checkbox. It has a mandatory field for title, and
35 private CheckBox mCheckBox;
82 mCheckBox = (CheckBox) holder.findViewById(R.id.checkboxWidget);
114 public CheckBox getCheckBox() {
  /developers/build/prebuilts/gradle/DocumentCentricApps/Application/src/main/java/com/example/android/documentcentricapps/
DocumentCentricActivity.java 25 import android.widget.CheckBox;
49 private CheckBox mCheckbox;
55 mCheckbox = (CheckBox) findViewById(R.id.multiple_task_checkbox);
  /developers/build/prebuilts/gradle/DocumentCentricApps/Application/tests/src/com/example/android/documentcentricapps/tests/
DocumentCentricAppsUnitTest.java 26 import android.widget.CheckBox;
66 // Given a initialized Activity and ticked "Create new task" checkbox
71 final CheckBox newTaskCheckbox = (CheckBox) mDocumentCentricActivity
  /developers/samples/android/ui/activitytasks/DocumentCentricApps/Application/src/main/java/com/example/android/documentcentricapps/
DocumentCentricActivity.java 25 import android.widget.CheckBox;
49 private CheckBox mCheckbox;
55 mCheckbox = (CheckBox) findViewById(R.id.multiple_task_checkbox);
  /developers/samples/android/ui/activitytasks/DocumentCentricApps/Application/tests/src/com/example/android/documentcentricapps/tests/
DocumentCentricAppsUnitTest.java 26 import android.widget.CheckBox;
66 // Given a initialized Activity and ticked "Create new task" checkbox
71 final CheckBox newTaskCheckbox = (CheckBox) mDocumentCentricActivity
  /development/samples/browseable/DocumentCentricApps/src/com.example.android.documentcentricapps/
DocumentCentricActivity.java 25 import android.widget.CheckBox;
49 private CheckBox mCheckbox;
55 mCheckbox = (CheckBox) findViewById(R.id.multiple_task_checkbox);
  /frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
AnimatedStateVectorDrawableTest.java 22 import android.widget.CheckBox;
52 CheckBox button = new CheckBox(this);
  /packages/apps/Camera2/src/com/android/camera/widget/
LocationDialogLayout.java 22 import android.widget.CheckBox;
39 private CheckBox mCheckBox;
78 mCheckBox = (CheckBox) findViewById(R.id.check_box);
  /packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
NestedDeletionPreference.java 24 import android.widget.CheckBox;
51 CheckBox checkboxWidget =
52 (CheckBox) holder.findViewById(com.android.internal.R.id.checkbox);

Completed in 1127 milliseconds

1 2 3 4 5 6 7 8 91011