Home
last modified time | relevance | path

Searched refs:toggleButton (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/common/
DToggleButtonActionItem.java64 final DrawableStateToggleButton toggleButton = getOptionalToggleButton(frameLayout); in bindViewHolder() local
65 toggleButton.setOnClickListener(null); in bindViewHolder()
67 toggleButton.setOnCheckedChangeListener(null); in bindViewHolder()
68 toggleButton.setButtonDrawable(mDrawable); in bindViewHolder()
69 toggleButton.setChecked(mIsChecked); in bindViewHolder()
70 toggleButton.setEnabled(isEnabled()); in bindViewHolder()
71 toggleButton.setAllowClickWhenDisabled(true); in bindViewHolder()
72 toggleButton.setContentDescription(mContentDescription); in bindViewHolder()
73 toggleButton.setOnCheckedChangeListener((view, isChecked) -> { in bindViewHolder()
75 toggleButton.setChecked(mIsChecked); in bindViewHolder()
[all …]
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/view/
DQCRowView.java364 DrawableStateToggleButton toggleButton = tmpToggleButton; // must be effectively final in initToggleView() local
368 toggleButton.setText(null); in initToggleView()
369 toggleButton.setTextOn(null); in initToggleView()
370 toggleButton.setTextOff(null); in initToggleView()
371 toggleButton.setOnCheckedChangeListener(null); in initToggleView()
373 toggleButton.setContentDescription(action.getContentDescription()); in initToggleView()
374 toggleButton.setButtonDrawable(icon); in initToggleView()
375 toggleButton.setChecked(action.isChecked()); in initToggleView()
376 toggleButton.setEnabled(shouldEnableView); in initToggleView()
377 setToggleButtonDrawableState(toggleButton, action.isEnabled(), action.isAvailable()); in initToggleView()
[all …]
/packages/apps/Camera2/src/com/android/camera/widget/
DModeOptions.java226 MultiToggleImageButton toggleButton = (MultiToggleImageButton) button; in setupToggleButtonParams() local
227 toggleButton.setParentSize(size); in setupToggleButtonParams()
228 toggleButton.setAnimDirection(mIsPortrait ? in setupToggleButtonParams()