当前位置: 首页>>代码示例>>Java>>正文


Java CheckedChange类代码示例

本文整理汇总了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);
}
 
开发者ID:free46000,项目名称:MultiItem,代码行数:27,代码来源:AnimationActivity.java

示例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);
        }
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:17,代码来源:TopBar.java

示例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);
    }

}
 
开发者ID:Brightify,项目名称:autoamplifier,代码行数:17,代码来源:MainActivity.java

示例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();
        }
    }
}
 
开发者ID:feifadaima,项目名称:https-github.com-hyb1996-NoRootScriptDroid,代码行数:12,代码来源:SideMenuFragment.java

示例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();
    }
}
 
开发者ID:feifadaima,项目名称:https-github.com-hyb1996-NoRootScriptDroid,代码行数:12,代码来源:SideMenuFragment.java

示例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();
    }

}
 
开发者ID:hyb1996,项目名称:Auto.js,代码行数:11,代码来源:TimedTaskSettingActivity.java

示例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);
    }
}
 
开发者ID:huang303513,项目名称:Coding-Android,代码行数:13,代码来源:TopBar.java

示例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;
    }
}
 
开发者ID:WrBug,项目名称:wtshanxun,代码行数:16,代码来源:MainActivity.java

示例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();
    }
}
 
开发者ID:Orange-OpenSource,项目名称:simiasque,代码行数:10,代码来源:MyActivity.java

示例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);
	}
}
 
开发者ID:bestarandyan,项目名称:ShoppingMall,代码行数:12,代码来源:ReleasedRentFragment.java

示例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);
	}
}
 
开发者ID:bestarandyan,项目名称:ShoppingMall,代码行数:12,代码来源:ReleasedRentFragment.java

示例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);
	}
}
 
开发者ID:bestarandyan,项目名称:ShoppingMall,代码行数:12,代码来源:ReleasedRentFragment.java

示例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);
	}
}
 
开发者ID:bestarandyan,项目名称:ShoppingMall,代码行数:13,代码来源:ReleasedSellFragment.java

示例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);
	}
}
 
开发者ID:bestarandyan,项目名称:ShoppingMall,代码行数:13,代码来源:ReleasedSellFragment.java

示例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);
	}
}
 
开发者ID:bestarandyan,项目名称:ShoppingMall,代码行数:12,代码来源:ReleasedSellFragment.java


注:本文中的org.androidannotations.annotations.CheckedChange类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。