本文整理汇总了Java中org.androidannotations.annotations.CheckedChange类的典型用法代码示例。如果您正苦于以下问题:Java CheckedChange类的具体用法?Java CheckedChange怎么用?Java CheckedChange使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CheckedChange类属于org.androidannotations.annotations包,在下文中一共展示了CheckedChange类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkedChanged
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange({R.id.leftCheck, R.id.rightCheck, R.id.bottomCheck, R.id.scaleCheck, R.id.alphaCheck})
protected void checkedChanged(CompoundButton compoundButton, boolean isChecked) {
if (!isChecked) {
return;
}
BaseAnimation baseAnimation;
switch (compoundButton.getId()) {
case R.id.leftCheck:
baseAnimation = new SlideInLeftAnimation();
break;
case R.id.rightCheck:
baseAnimation = new SlideInRightAnimation();
break;
case R.id.bottomCheck:
baseAnimation = new SlideInBottomAnimation();
break;
case R.id.alphaCheck:
baseAnimation = new AlphaInAnimation();
break;
default:
baseAnimation = new ScaleInAnimation();
break;
}
//开启动画,并取消动画只在第一次加载时展示
adapter.enableAnimation(baseAnimation, false);
}
示例2: popVoice
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange
void popVoice(boolean checked) {
if (disableCheckedChange) {
return;
}
if (checked) {
slowlyPop(false);
} else {
if (popEmoji.isChecked()) {
keyboardControl.showEmojiInput();
} else {
keyboardControl.showSystemInput(true);
}
}
}
示例3: serviceEnabled
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.enable_switch)
void serviceEnabled(CompoundButton button) {
if (button.isChecked()) {
if (!isServiceRunning()) {
AmplifierService_.intent(this).start();
}
if(!preferenceProvider.isSavingEnabled()){
reset();
}
currentMicGroup.setVisibility(View.VISIBLE);
} else {
AmplifierService_.intent(this).stop();
currentMicGroup.setVisibility(View.INVISIBLE);
}
}
示例4: setAutoOperateServiceEnable
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.sw_accessibility_service)
void setAutoOperateServiceEnable(CompoundButton button, boolean enable) {
boolean isAccessibilityServiceEnabled = AccessibilityServiceTool.isAccessibilityServiceEnabled(App.getApp());
if (enable && !isAccessibilityServiceEnabled) {
enableAccessibilityService();
} else if (!enable && isAccessibilityServiceEnabled) {
if (!AccessibilityService.disable()) {
AccessibilityServiceTool.goToAccessibilitySetting();
}
}
}
示例5: setFloatingWindowEnable
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.sw_floating_window)
void setFloatingWindowEnable(CompoundButton button, boolean enable) {
if (enable && !HoverMenuManger.isHoverMenuShowing()) {
HoverMenuManger.showHoverMenu();
if (Pref.enableAccessibilityServiceByRoot()) {
enableAccessibilityServiceByRoot();
}
} else if (!enable && HoverMenuManger.isHoverMenuShowing()) {
HoverMenuManger.hideHoverMenu();
}
}
示例6: onCheckedChanged
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange({R.id.daily_task_radio, R.id.weekly_task_radio, R.id.disposable_task_radio})
void onCheckedChanged(CompoundButton button) {
ExpandableRelativeLayout relativeLayout = findExpandableLayoutOf(button);
if (button.isChecked()) {
relativeLayout.post(relativeLayout::expand);
} else {
relativeLayout.collapse();
}
}
示例7: popEmoji
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange
void popEmoji(boolean checked) {
if (disableCheckedChange) {
return;
}
if (checked) { // 需要弹出 emoji 键盘
slowlyPop(true);
} else {
keyboardControl.showSystemInput(true);
}
}
示例8: onChecked
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange({R.id.autoGetPasswordCheckBox, R.id.sendHeartCheckBox})
public void onChecked(CompoundButton view, boolean isChecked) {
switch (view.getId()) {
case R.id.autoGetPasswordCheckBox:
if (isChecked) {
String c = "该功能会自动发送短信获取密码,请慎重使用!非闪讯电话卡或双卡手机请关闭此功能,否则无法正常使用软件";
new NoticeDialog(context, "注意", c).show();
}
preference.putBoolean(Preference.AUTO_GET_PASSWORD, isChecked);
break;
case R.id.sendHeartCheckBox:
preference.putBoolean(Preference.SEND_HEART, isChecked);
break;
}
}
示例9: checkedChangeOnSwitch
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.switch_view)
protected void checkedChangeOnSwitch(boolean isChecked) {
// called whenever the switch is touched
if (isChecked) {
ViewService_.intent(getApplication()).showMask().start();
} else {
ViewService_.intent(getApplication()).hideMask().start();
}
}
示例10: buildingCheckChange
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.rent_single_building)
public void buildingCheckChange(CompoundButton buttonView, boolean isChecked) {
ManyiAnalysis.onEvent(getActivity(), "SingleHoseOnRentPublishClick");
if (isChecked) {
mRentBuilding = "0";
mRentSeatNumber.setVisibility(View.GONE);
} else {
mRentBuilding = mRentSeatNumber.getText().toString();
mRentSeatNumber.setVisibility(View.VISIBLE);
}
}
示例11: unitCheckChange
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.rent_not_unit)
public void unitCheckChange(CompoundButton buttonViews, boolean isChecked) {
ManyiAnalysis.onEvent(getActivity(), "SingleHoseOnRentPublishClick");
if (isChecked) {
mRentUnitNumber = "0";
mRentUnitNo.setVisibility(View.GONE);
} else {
mRentUnitNumber = mRentUnitNo.getText().toString();
mRentUnitNo.setVisibility(View.VISIBLE);
}
}
示例12: villaCheckChange
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.rent_villa)
public void villaCheckChange(CompoundButton buttonViews, boolean isChecked) {
ManyiAnalysis.onEvent(getActivity(), "VillaOnRentPublishClick");
if (isChecked) {
mRentRoomNumber = "0000";
mRentRoomNO.setVisibility(View.GONE);
} else {
mRentRoomNumber = mRentRoomNO.getText().toString();
mRentRoomNO.setVisibility(View.VISIBLE);
}
}
示例13: buildingCheckChange
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.sell_single_building)
public void buildingCheckChange(CompoundButton buttonView, boolean isChecked) {
ManyiAnalysis.onEvent(getActivity(), "SingleHoseOnSellPublishClick");
if (isChecked) {
mSellBuilding = "0";
mSellSeatNumber.setVisibility(View.GONE);
} else {
mSellBuilding = mSellSeatNumber.getText().toString();
mSellSeatNumber.setVisibility(View.VISIBLE);
}
}
示例14: sellNotUnit
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.sell_not_unit)
public void sellNotUnit(CompoundButton buttonView, boolean isChecked) {
ManyiAnalysis.onEvent(getActivity(), "SingleHoseOnSellPublishClick");
if (isChecked) {
mSellUnitNumber = "0";
mUtilNot.setVisibility(View.GONE);
} else {
mSellUnitNumber = mUtilNot.getText().toString();
mUtilNot.setVisibility(View.VISIBLE);
}
}
示例15: sellVilla
import org.androidannotations.annotations.CheckedChange; //导入依赖的package包/类
@CheckedChange(R.id.sell_villa)
public void sellVilla(CompoundButton buttonView, boolean isChecked) {
ManyiAnalysis.onEvent(getActivity(), "VillaOnSellPublishClick");
if (isChecked) {
mSellRoomNumber = "0000";
mSellRoomNO.setVisibility(View.GONE);
} else {
mSellRoomNumber = mSellRoomNO.getText().toString();
mSellRoomNO.setVisibility(View.VISIBLE);
}
}