org.androidannotations.annotations.CheckedChange Java Examples
The following examples show how to use
org.androidannotations.annotations.CheckedChange.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AnimationActivity.java From MultiItem with Apache License 2.0 | 6 votes |
@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); }
Example #2
Source File: MyActivity.java From simiasque with Mozilla Public License 2.0 | 5 votes |
@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(); } }
Example #3
Source File: SettingsFragment.java From Local-GSM-Backend with Apache License 2.0 | 5 votes |
@CheckedChange protected void openCellId(boolean checked) { if (checked && TextUtils.isEmpty(Settings.with(this).openCellIdApiKey())) { openCellId.setChecked(false); obtainOpenCellIdApiKey(); } else { Settings.with(this).useOpenCellId(checked); } }
Example #4
Source File: SettingsFragment.java From Local-GSM-Backend with Apache License 2.0 | 4 votes |
@CheckedChange protected void mozillaLocationServices(boolean checked) { Settings.with(this).useMozillaLocationService(checked); }
Example #5
Source File: SettingsFragment.java From Local-GSM-Backend with Apache License 2.0 | 4 votes |
@CheckedChange protected void filterRemote(boolean enabled) { Settings.with(this).useLacells(enabled); updateSourcesVisibility(); }
Example #6
Source File: SettingsFragment.java From Local-GSM-Backend with Apache License 2.0 | 4 votes |
@CheckedChange protected void filterOnPhone(boolean enabled) { filterRemote(!enabled); }
Example #7
Source File: CertificateManagementActivity.java From moVirt with Apache License 2.0 | 4 votes |
@CheckedChange(R.id.radio_button_default_url) void defaultUrlChecked(CompoundButton button, boolean isChecked) { if (isChecked) { presenter.onCertificateLocationChangeAttempt(CertLocation.DEFAULT_URL); } }
Example #8
Source File: CertificateManagementActivity.java From moVirt with Apache License 2.0 | 4 votes |
@CheckedChange(R.id.radio_button_custom_url) void customUrlChecked(CompoundButton button, boolean isChecked) { if (isChecked) { presenter.onCertificateLocationChangeAttempt(CertLocation.CUSTOM_URL); } }
Example #9
Source File: CertificateManagementActivity.java From moVirt with Apache License 2.0 | 4 votes |
@CheckedChange(R.id.radio_button_import_from_file) void importFromFileChecked(CompoundButton button, boolean isChecked) { if (isChecked) { presenter.onCertificateLocationChangeAttempt(CertLocation.FILE); } }