com.qmuiteam.qmui.widget.grouplist.QMUICommonListItemView Java Examples
The following examples show how to use
com.qmuiteam.qmui.widget.grouplist.QMUICommonListItemView.
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: SettingActivity.java From v9porn with MIT License | 6 votes |
private void beginTestAddress(String address, QMUICommonListItemView qmuiCommonListItemView, String key) { switch (key) { case AppPreferencesHelper.KEY_SP_PORN_91_VIDEO_ADDRESS: presenter.test9PornVideo(address, qmuiCommonListItemView, key); break; case AppPreferencesHelper.KEY_SP_FORUM_91_PORN_ADDRESS: presenter.test9PornForum(address, qmuiCommonListItemView, key); break; case AppPreferencesHelper.KEY_SP_PIG_AV_ADDRESS: presenter.testPav(address, qmuiCommonListItemView, key); break; case AppPreferencesHelper.KEY_SP_AXGLE_ADDRESS: presenter.testAxgle(address, qmuiCommonListItemView, key); break; default: } }
Example #2
Source File: SettingActivity.java From v9porn with MIT License | 6 votes |
/** * 仅仅只需将新地址保存到sp中即可,下次会自动读取 * * @param key key * @param qmuiCommonListItemView qc * @param address address */ private void saveToSpAndUpdateQMUICommonListItemView(String key, QMUICommonListItemView qmuiCommonListItemView, String address) { switch (key) { case AppPreferencesHelper.KEY_SP_PORN_91_VIDEO_ADDRESS: presenter.setPorn9VideoAddress(address); break; case AppPreferencesHelper.KEY_SP_FORUM_91_PORN_ADDRESS: presenter.setPorn9ForumAddress(address); break; case AppPreferencesHelper.KEY_SP_PIG_AV_ADDRESS: presenter.setPavAddress(address); break; case AppPreferencesHelper.KEY_SP_AXGLE_ADDRESS: presenter.setAxgleAddress(address); break; default: } qmuiCommonListItemView.setDetailText(address); showMessage("设置成功", TastyToast.INFO); testBaseUrl = ""; }
Example #3
Source File: SettingActivity.java From v9porn with MIT License | 6 votes |
private void showPlaybackEngineChoiceDialog(final QMUICommonListItemView qmuiCommonListItemView) { final int checkedIndex = presenter.getPlaybackEngine(); new QMUIDialog.CheckableDialogBuilder(this) .setTitle("播放引擎选择") .setCheckedIndex(checkedIndex) .addItems(PlaybackEngine.PLAY_ENGINE_ITEMS, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { presenter.setPlaybackEngine(which); qmuiCommonListItemView.setDetailText(PlaybackEngine.PLAY_ENGINE_ITEMS[which]); showMessage("设置成功", TastyToast.SUCCESS); dialog.dismiss(); } }) .show(); }
Example #4
Source File: AboutActivity.java From PoetryWeather with Apache License 2.0 | 6 votes |
@Override public void onClick(View view) { //region 列表项点击事件 QMUICommonListItemView listItemView = (QMUICommonListItemView) view; int tag = (int) listItemView.getTag(); Intent intent; switch (tag) { case R.id.listitem_tag_1: copyToClipboard("微信", listItemView.getDetailText().toString()); break; case R.id.listitem_tag_2: copyToClipboard("QQ", listItemView.getDetailText().toString()); break; case R.id.listitem_tag_3: openWebsite(listItemView.getDetailText().toString()); break; default: break; } //endregion }
Example #5
Source File: SettingActivity.java From v9porn with MIT License | 6 votes |
private void beginTestAddress(String address, QMUICommonListItemView qmuiCommonListItemView, String key) { switch (key) { case AppPreferencesHelper.KEY_SP_PORN_91_VIDEO_ADDRESS: presenter.test9PornVideo(address, qmuiCommonListItemView, key); break; case AppPreferencesHelper.KEY_SP_FORUM_91_PORN_ADDRESS: presenter.test9PornForum(address, qmuiCommonListItemView, key); break; case AppPreferencesHelper.KEY_SP_PIG_AV_ADDRESS: presenter.testPav(address, qmuiCommonListItemView, key); break; case AppPreferencesHelper.KEY_SP_AXGLE_ADDRESS: presenter.testAxgle(address, qmuiCommonListItemView, key); break; default: } }
Example #6
Source File: SettingActivity.java From v9porn with MIT License | 6 votes |
/** * 仅仅只需将新地址保存到sp中即可,下次会自动读取 * * @param key key * @param qmuiCommonListItemView qc * @param address address */ private void saveToSpAndUpdateQMUICommonListItemView(String key, QMUICommonListItemView qmuiCommonListItemView, String address) { switch (key) { case AppPreferencesHelper.KEY_SP_PORN_91_VIDEO_ADDRESS: presenter.setPorn9VideoAddress(address); break; case AppPreferencesHelper.KEY_SP_FORUM_91_PORN_ADDRESS: presenter.setPorn9ForumAddress(address); break; case AppPreferencesHelper.KEY_SP_PIG_AV_ADDRESS: presenter.setPavAddress(address); break; case AppPreferencesHelper.KEY_SP_AXGLE_ADDRESS: presenter.setAxgleAddress(address); break; case AppPreferencesHelper.KEY_SP_KE_DOU_WO_ADDRESS: presenter.setKeDouWoAddress(address); break; default: } qmuiCommonListItemView.setDetailText(address); showMessage("设置成功", TastyToast.INFO); testBaseUrl = ""; }
Example #7
Source File: SettingActivity.java From v9porn with MIT License | 6 votes |
private void showPlaybackEngineChoiceDialog(final QMUICommonListItemView qmuiCommonListItemView) { final int checkedIndex = presenter.getPlaybackEngine(); new QMUIDialog.CheckableDialogBuilder(this) .setTitle("播放引擎选择") .setCheckedIndex(checkedIndex) .addItems(PlaybackEngine.PLAY_ENGINE_ITEMS, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { presenter.setPlaybackEngine(which); qmuiCommonListItemView.setDetailText(PlaybackEngine.PLAY_ENGINE_ITEMS[which]); showMessage("设置成功", TastyToast.SUCCESS); dialog.dismiss(); } }) .show(); }
Example #8
Source File: SettingActivity.java From v9porn with MIT License | 6 votes |
@Override public void onClick(View v) { switch (v.getId()) { case R.id.bt_setting_exit_account: showExitDialog(); break; case R.id.setting_item_player_engine_choice: showPlaybackEngineChoiceDialog((QMUICommonListItemView) v); break; case R.id.setting_item_t6y_forum_address: showMessage("暂未支持,敬请期待。", TastyToast.INFO); // showAddressSettingDialog((QMUICommonListItemView) v, ""); break; case R.id.setting_item_google_recaptcha_verify: String address = presenter.getVideo9PornAddress(); if (TextUtils.isEmpty(address)) { showMessage("请先设置9*PORN地址", TastyToast.INFO); return; } Intent intent = new Intent(this, GoogleRecaptchaVerifyActivity.class); startActivityWithAnimation(intent); break; default: } }
Example #9
Source File: SettingActivity.java From v9porn with MIT License | 5 votes |
@Override public void testNewAddressSuccess(String message, QMUICommonListItemView qmuiCommonListItemView, String key) { isTestSuccess = true; dismissDialog(); showMessage(message, TastyToast.SUCCESS); showAddressSettingDialog(qmuiCommonListItemView, key); }
Example #10
Source File: SettingActivity.java From v9porn with MIT License | 5 votes |
/** * 自定义视频下载地址 */ public void selectDownloadVideoDir(final QMUICommonListItemView qmuiCommonListItemView) { if (presenter.isHaveUnFinishDownloadVideo()) { showMessage("当前有未下载完成视频,无法更改", TastyToast.INFO); return; } FilePicker picker = new FilePicker(this, FilePicker.DIRECTORY); picker.setRootPath(StorageUtils.getExternalRootPath()); picker.setTitleText("选择文件夹"); picker.setItemHeight(40); picker.setOnFilePickListener(new FilePicker.OnFilePickListener() { @Override public void onFilePicked(String currentPath) { if (presenter.getCustomDownloadVideoDirPath().equalsIgnoreCase(currentPath + "/")) { showMessage("不能选择原目录哦", TastyToast.WARNING); return; } if (presenter.isHaveFinishDownloadVideoFile()) { showIsMoveOldDirVideoFileToNewDirDialog(currentPath, qmuiCommonListItemView); } else { showMessage("设置成功", TastyToast.SUCCESS); qmuiCommonListItemView.setDetailText(currentPath); presenter.setCustomDownloadVideoDirPath(currentPath); } } }); picker.show(); }
Example #11
Source File: SettingActivity.java From v9porn with MIT License | 5 votes |
private QMUICommonListItemView verifyGoogleRecaptcha() { QMUICommonListItemView googleRecaptchaItemWithChevron = qmuiGroupListView.createItemView(getString(R.string.google_recaptcha_verify)); googleRecaptchaItemWithChevron.setId(R.id.setting_item_google_recaptcha_verify); googleRecaptchaItemWithChevron.setOrientation(QMUICommonListItemView.VERTICAL); googleRecaptchaItemWithChevron.setDetailText("手动验证Google机器人"); googleRecaptchaItemWithChevron.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); return googleRecaptchaItemWithChevron; }
Example #12
Source File: SettingActivity.java From v9porn with MIT License | 5 votes |
@Override public void onClick(View v) { switch (v.getId()) { case R.id.bt_setting_exit_account: showExitDialog(); break; case R.id.setting_item_player_engine_choice: showPlaybackEngineChoiceDialog((QMUICommonListItemView) v); break; case R.id.setting_item_t6y_forum_address: showMessage("暂未支持,敬请期待。", TastyToast.INFO); // showAddressSettingDialog((QMUICommonListItemView) v, ""); break; case R.id.setting_item_google_recaptcha_verify: String address = presenter.getVideo9PornAddress(); if (TextUtils.isEmpty(address)) { showMessage("请先设置9*PORN地址", TastyToast.INFO); return; } Intent intent = new Intent(this, GoogleRecaptchaVerifyActivity.class); startActivityWithAnimation(intent); break; default: } }
Example #13
Source File: SettingActivity.java From v9porn with MIT License | 5 votes |
@Override public void testNewAddressSuccess(String message, QMUICommonListItemView qmuiCommonListItemView, String key) { isTestSuccess = true; dismissDialog(); showMessage(message, TastyToast.SUCCESS); showAddressSettingDialog(qmuiCommonListItemView, key); }
Example #14
Source File: SettingActivity.java From v9porn with MIT License | 5 votes |
@Override public void testNewAddressFailure(String message, QMUICommonListItemView qmuiCommonListItemView, String key) { isTestSuccess = false; showMessage(message, TastyToast.ERROR); showAddressSettingDialog(qmuiCommonListItemView, key); dismissDialog(); }
Example #15
Source File: MineFragment.java From v9porn with MIT License | 5 votes |
@Override public void onClick(View v) { if (v instanceof QMUICommonListItemView) { String string = String.valueOf(((QMUICommonListItemView) v).getText()); actionClickList(string); } else { switch (v.getId()) { case R.id.imageView: userImageViewClick(); break; default: } } }
Example #16
Source File: MineFragment.java From v9porn with MIT License | 5 votes |
@Override public void onClick(View v) { if (v instanceof QMUICommonListItemView) { String string = String.valueOf(((QMUICommonListItemView) v).getText()); actionClickList(string); } else { switch (v.getId()) { case R.id.imageView: userImageViewClick(); break; default: } } }
Example #17
Source File: SettingActivity.java From v9porn with MIT License | 5 votes |
@Override public void testNewAddressFailure(String message, QMUICommonListItemView qmuiCommonListItemView, String key) { isTestSuccess = false; showMessage(message, TastyToast.ERROR); showAddressSettingDialog(qmuiCommonListItemView, key); dismissDialog(); }
Example #18
Source File: SettingActivity.java From v9porn with MIT License | 5 votes |
private QMUICommonListItemView verifyGoogleRecaptcha() { QMUICommonListItemView googleRecaptchaItemWithChevron = qmuiGroupListView.createItemView(getString(R.string.google_recaptcha_verify)); googleRecaptchaItemWithChevron.setId(R.id.setting_item_google_recaptcha_verify); googleRecaptchaItemWithChevron.setOrientation(QMUICommonListItemView.VERTICAL); googleRecaptchaItemWithChevron.setDetailText("手动验证Google机器人"); googleRecaptchaItemWithChevron.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); return googleRecaptchaItemWithChevron; }
Example #19
Source File: SettingActivity.java From v9porn with MIT License | 5 votes |
/** * 自定义视频下载地址 */ public void selectDownloadVideoDir(final QMUICommonListItemView qmuiCommonListItemView) { if (presenter.isHaveUnFinishDownloadVideo()) { showMessage("当前有未下载完成视频,无法更改", TastyToast.INFO); return; } FilePicker picker = new FilePicker(this, FilePicker.DIRECTORY); picker.setRootPath(StorageUtils.getExternalRootPath()); picker.setTitleText("选择文件夹"); picker.setItemHeight(40); picker.setOnFilePickListener(new FilePicker.OnFilePickListener() { @Override public void onFilePicked(String currentPath) { if (presenter.getCustomDownloadVideoDirPath().equalsIgnoreCase(currentPath + "/")) { showMessage("不能选择原目录哦", TastyToast.WARNING); return; } if (presenter.isHaveFinishDownloadVideoFile()) { showIsMoveOldDirVideoFileToNewDirDialog(currentPath, qmuiCommonListItemView); } else { showMessage("设置成功", TastyToast.SUCCESS); qmuiCommonListItemView.setDetailText(currentPath); presenter.setCustomDownloadVideoDirPath(currentPath); } } }); picker.show(); }
Example #20
Source File: AboutActivity.java From PoetryWeather with Apache License 2.0 | 5 votes |
private void initAboutList() { //初始化LOGO下面的名称和版本号 mVersionTextView.setText("诗语天气 V1.0.2"); //作者 QMUICommonListItemView itemAuthor = mAboutGroupListView.createItemView("作者"); itemAuthor.setDetailText("黄振敏"); //微信 QMUICommonListItemView itemWechat = mAboutGroupListView.createItemView("微信"); itemWechat.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); itemWechat.setDetailText("hzm1998hzm"); itemWechat.setTag(R.id.listitem_tag_1); //QQ QMUICommonListItemView itemQQ = mAboutGroupListView.createItemView("QQ"); itemQQ.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); itemQQ.setDetailText("934585316"); itemQQ.setTag(R.id.listitem_tag_2); //GitHub主页 QMUICommonListItemView itemGitHub = mAboutGroupListView.createItemView("作者GitHub主页"); itemGitHub.setOrientation(QMUICommonListItemView.VERTICAL); itemGitHub.setDetailText("https://github.com/hzm0321"); itemGitHub.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); itemGitHub.setTag(R.id.listitem_tag_3); QMUIGroupListView.newSection(this) .setDescription(getString(R.string.about_description)) .addItemView(itemAuthor, null) .addItemView(itemWechat, mOnClickListenerListItem) .addItemView(itemQQ, mOnClickListenerListItem) .addItemView(itemGitHub, mOnClickListenerListItem) .addTo(mAboutGroupListView); //初始化页面底部的版权 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy", Locale.CHINA); String currentYear = dateFormat.format(new java.util.Date()); mCopyrightTextView.setText(String.format(getResources().getString(R.string.about_copyright), currentYear)); }
Example #21
Source File: QMUIGroupListViewActivity.java From BaseUIFrame with MIT License | 5 votes |
@Override public void onClick(View v) { if (v instanceof QMUICommonListItemView) { CharSequence text = ((QMUICommonListItemView) v).getText(); ToastUtil.showToast(text + " is Clicked"); } }
Example #22
Source File: AboutActivity.java From v9porn with MIT License | 4 votes |
@Override public void finishCountCacheFileSize(String message) { cleanCacheQMUICommonListItemView.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_NONE); cleanCacheQMUICommonListItemView.setText(message); }
Example #23
Source File: AboutActivity.java From v9porn with MIT License | 4 votes |
@Override public void finishCountCacheFileSize(String message) { cleanCacheQMUICommonListItemView.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_NONE); cleanCacheQMUICommonListItemView.setText(message); }
Example #24
Source File: AddAndEditPoetryActivity.java From PoetryWeather with Apache License 2.0 | 4 votes |
/** * 初始化列表 */ @SuppressLint("LongLogTag") private void initGroupListView() { idPoetryListView = mGroupListView.createItemView( ContextCompat.getDrawable(AddAndEditPoetryActivity.this,R.drawable.item_icon00), "id", String.valueOf(id), QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_NONE); idPoetryListView.setTag(R.id.listitem_tag_1); firstPoetryListView = mGroupListView.createItemView( ContextCompat.getDrawable(AddAndEditPoetryActivity.this,R.drawable.item_icon01), "诗词上句", sFirstPoetry, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); firstPoetryListView.setTag(R.id.listitem_tag_2); secondPoetryListView = mGroupListView.createItemView( ContextCompat.getDrawable(AddAndEditPoetryActivity.this,R.drawable.item_icon02), "诗词下句", sSecondPotry, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); secondPoetryListView.setTag(R.id.listitem_tag_3); weatherPoetryListView = mGroupListView.createItemView( ContextCompat.getDrawable(AddAndEditPoetryActivity.this,R.drawable.item_icon03), "匹配天气", sWeatherPoetry, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); weatherPoetryListView.setTag(R.id.listitem_tag_4); isqwxlPoetryListView = mGroupListView.createItemView( ContextCompat.getDrawable(AddAndEditPoetryActivity.this,R.drawable.item_icon04), "清婉秀丽", qwxl==-1?null:(qwxl==0?"否":"是"), QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); Log.d(TAG, "initGroupListView: 清婉秀丽"+qwxl); isqwxlPoetryListView.setTag(R.id.listitem_tag_5); isjygkPoetryListView = mGroupListView.createItemView( ContextCompat.getDrawable(AddAndEditPoetryActivity.this,R.drawable.item_icon05), "激越高亢", jygk==-1?null:(jygk==0?"否":"是"), QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); isjygkPoetryListView.setTag(R.id.listitem_tag_6); isyyqlPoetryListView = mGroupListView.createItemView( ContextCompat.getDrawable(AddAndEditPoetryActivity.this,R.drawable.item_icon06), "语言绮丽", yyql==-1?null:(yyql==0?"否":"是"), QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); isyyqlPoetryListView.setTag(R.id.listitem_tag_7); QMUIGroupListView.newSection(this) .addItemView(idPoetryListView,null) .addItemView(firstPoetryListView,onClickListener) .addItemView(secondPoetryListView,onClickListener) .addItemView(weatherPoetryListView,onClickListener) // .addItemView(isqwxlPoetryListView,onClickListener) // .addItemView(isjygkPoetryListView,onClickListener) // .addItemView(isyyqlPoetryListView,onClickListener) .addTo(mGroupListView); }
Example #25
Source File: PersonActivity.java From PoetryWeather with Apache License 2.0 | 4 votes |
/** * 初始化GroupListView */ private void initGroupListView() { nameListView = mGroupListView.createItemView( ContextCompat.getDrawable(PersonActivity.this,R.drawable.item_icon00), "姓名", null, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); nameListView.setTag(R.id.listitem_tag_1); nameListView.setDetailText(name); sexListView = mGroupListView.createItemView( ContextCompat.getDrawable(PersonActivity.this, R.drawable.item_icon01), "性别", null, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); sexListView.setTag(R.id.listitem_tag_2); sexListView.setDetailText(sex); signatureListView = mGroupListView.createItemView( ContextCompat.getDrawable(PersonActivity.this, R.drawable.item_icon02), "个性签名", null, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); signatureListView.setTag(R.id.listitem_tag_3); signatureListView.setDetailText(signature); preferenceListView = mGroupListView.createItemView( ContextCompat.getDrawable(PersonActivity.this, R.drawable.item_icon03), "诗词偏爱", null, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); preferenceListView.setTag(R.id.listitem_tag_4); preferenceListView.setDetailText(preference); refreshForWeatherListView = mGroupListView.createItemView( ContextCompat.getDrawable(PersonActivity.this,R.drawable.item_icon04), "自动刷新间隔", null, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); refreshForWeatherListView.setTag(R.id.listitem_tag_5); refreshForWeatherListView.setDetailText(refreshForWeather); QMUIGroupListView.newSection(this) .setTitle("个人信息") .addItemView(nameListView,onClickListener) .addItemView(sexListView,onClickListener) .addItemView(signatureListView,onClickListener) .addTo(mGroupListView); QMUIGroupListView.newSection(this) .setTitle("偏好设置") .addItemView(refreshForWeatherListView, onClickListener) .addTo(mGroupListView); }
Example #26
Source File: PoetryActivity.java From PoetryWeather with Apache License 2.0 | 4 votes |
/** * 初始化GroupList */ private void initGroupListView() { //检查优先级 int prior = PrefUtils.getInt("priorPoetry", PoetryActivity.this); String sPrior; if (prior == 1) { sPrior = "低"; } else if (prior == 2) { sPrior = "标准"; } else { sPrior = "高"; } int ownNumbers = LitePal.findAll(PoetryDb.class).size(); officialPoetryNumber = mGroupListView.createItemView( ContextCompat.getDrawable(PoetryActivity.this,R.drawable.item_icon05), "官方诗词数", String.valueOf("1w+"), QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_NONE); officialPoetryNumber.setTag(R.id.listitem_tag_1); ownPoetryNumber = mGroupListView.createItemView( ContextCompat.getDrawable(PoetryActivity.this,R.drawable.item_icon06), "自定义诗词数", String.valueOf(ownNumbers), QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_NONE); ownPoetryNumber.setTag(R.id.listitem_tag_2); addOwnPoetry = mGroupListView.createItemView( ContextCompat.getDrawable(PoetryActivity.this,R.drawable.item_icon07), "添加自定义诗词", null, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); addOwnPoetry.setTag(R.id.listitem_tag_3); buyOwnPoetry = mGroupListView.createItemView( ContextCompat.getDrawable(PoetryActivity.this,R.drawable.item_icon00), "购买自定义诗词包", null, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); buyOwnPoetry.setTag(R.id.listitem_tag_4); priorOwnPoetry = mGroupListView.createItemView( ContextCompat.getDrawable(PoetryActivity.this,R.drawable.item_icon01), "自定义诗词匹配优先级", sPrior, QMUICommonListItemView.HORIZONTAL, QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); priorOwnPoetry.setTag(R.id.listitem_tag_5); QMUIGroupListView.newSection(this) .setTitle("本地诗词数据库") .addItemView(officialPoetryNumber,null) .addItemView(ownPoetryNumber,null) .addTo(mGroupListView); QMUIGroupListView.newSection(this) .setTitle("自定义诗词数据库") .addItemView(addOwnPoetry,onClickListener) .addItemView(buyOwnPoetry,onClickListener) .addItemView(priorOwnPoetry,onClickListener) .addTo(mGroupListView); }
Example #27
Source File: QMUIGroupListViewActivity.java From BaseUIFrame with MIT License | 4 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ButterKnife.bind(mActivity); title = getIntent().getStringExtra(MyApp.INTENT_VALUE_TITLE_STR); if (title != null) { topBar.setTitle(title); } //标准样式 QMUICommonListItemView normalItem = mGroupListView.createItemView("Item 1"); normalItem.setOrientation(QMUICommonListItemView.VERTICAL); //右边描述信息 QMUICommonListItemView itemWithDetail = mGroupListView.createItemView("Item 2"); itemWithDetail.setDetailText("右边Detail描述信息"); //下方描述信息 QMUICommonListItemView itemWithDetailBelow = mGroupListView.createItemView("Item 3"); itemWithDetailBelow.setOrientation(QMUICommonListItemView.VERTICAL); itemWithDetailBelow.setDetailText("下方Detail描述信息"); //带向右箭头的ITEM QMUICommonListItemView itemWithChevron = mGroupListView.createItemView("Item 4"); itemWithChevron.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_CHEVRON); //带Boolean SWITCH选择器的ITEM QMUICommonListItemView itemWithSwitch = mGroupListView.createItemView("Item 5"); itemWithSwitch.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_SWITCH); itemWithSwitch.getSwitch().setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { ToastUtil.showToast("checked = " + isChecked); } }); mGroupListView.newSection(mActivity) .setTitle("Section 1: 默认提供的样式(HEAD)") // .setDescription("Section 1 的描述(FOOT)") .addItemView(normalItem, onClickListener) .addItemView(itemWithDetail, onClickListener) .addItemView(itemWithDetailBelow, onClickListener) .addItemView(itemWithChevron, onClickListener) .addItemView(itemWithSwitch, onClickListener) .addTo(mGroupListView); QMUICommonListItemView itemWithCustom = mGroupListView.createItemView("Item 6"); itemWithCustom.setAccessoryType(QMUICommonListItemView.ACCESSORY_TYPE_CUSTOM); QMUILoadingView loadingView = new QMUILoadingView(mActivity); itemWithCustom.addAccessoryCustomView(loadingView); QMUIGroupListView.newSection(mActivity) .setTitle("Section 2: 自定义右侧 View") .addItemView(itemWithCustom, onClickListener) .addTo(mGroupListView); }
Example #28
Source File: ISetting.java From v9porn with MIT License | votes |
void test9PornVideo(String baseUrl, QMUICommonListItemView qmuiCommonListItemView, String key);
Example #29
Source File: ISetting.java From v9porn with MIT License | votes |
void moveOldDownloadVideoToNewDir(String newDirPath, QMUICommonListItemView qmuiCommonListItemView);
Example #30
Source File: ISetting.java From v9porn with MIT License | votes |
void testAxgle(String baseUrl, QMUICommonListItemView qmuiCommonListItemView, String key);