当前位置: 首页 > news >正文

jsp网站开发实例视频移动端app

jsp网站开发实例视频,移动端app,时事新闻摘抄,网站建设淘宝客模板下载1.设定Android settings中某个xml文件#xff08;包括其子项#xff09;或者某个Preference不被搜索到 设定某个xml文件(包括子项)不被搜索到 找到该xml文件对应的fragment java文件中的SEARCH_INDEX_DATA_PROVIDER,在该provider中对isPageSearchEnabled方法进行重写并…1.设定Android settings中某个xml文件包括其子项或者某个Preference不被搜索到   设定某个xml文件(包括子项)不被搜索到     找到该xml文件对应的fragment java文件中的SEARCH_INDEX_DATA_PROVIDER,在该provider中对isPageSearchEnabled方法进行重写并返回false.   public static final SearchIndexProvider SEARCH_INDEX_DATA_PROVIDER new BaseSearchIndexProvider() {Overridepublic ListSearchIndexableResource getXmlResourcesToIndex(Context context,boolean enabled) {ListSearchIndexableResource indexables new ArrayList();SearchIndexableResource indexable new SearchIndexableResource(context);indexable.xmlResId R.xml.accessibility_vibration_settings;indexables.add(indexable);return indexables;}Overrideprotected boolean isPageSearchEnabled(Context context) {return false;}}; 设定特定的Preference不被搜索到     找到这个特定的Preference对应的xml文件所在的fragment java文件中的SEARCH_INDEX_DATA_PROVIDER, 对该Provider中的getNonIndexableKeys方法进行重写.   public static final SearchIndexProvider SEARCH_INDEX_DATA_PROVIDER new BaseSearchIndexProvider() {Overridepublic ListSearchIndexableResource getXmlResourcesToIndex(Context context,boolean enabled) {ListSearchIndexableResource indexables new ArrayList();SearchIndexableResource indexable new SearchIndexableResource(context);indexable.xmlResId R.xml.accessibility_settings;indexables.add(indexable);return indexables;}Overridepublic ListString getNonIndexableKeys(Context context) {final ListString nonIndexableKeys super.getNonIndexableKeys(context);nonIndexableKeys.add(vibration_preference_screen); //这个key为特定preference keyreturn nonIndexableKeys;}}; 2.在长按Power弹出的选项中添加或删除项 在长按power弹出的选项中添加或删除某一项在frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java文件中定义一个私有类继承SinglePressAction.   private final class BatteryShelfModeAction extends SinglePressAction{private BatteryShelfModeAction() {super(R.drawable.ic_lock_power_off, //display iconandroid.R.string.battery_shelf_mode_title_in_power_menu); //display icon label}Overridepublic boolean showDuringKeyguard() {return true;}Overridepublic boolean showBeforeProvisioning() {return true;}Overridepublic void onPress() {// enter battery shelf modeIntent batteryShelfDialogIntent new Intent();batteryShelfDialogIntent.setComponent(new ComponentName(com.wistron.touchfwupdate, com.wistron.battery.BatteryShelfMode));batteryShelfDialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);mContext.startActivity(batteryShelfDialogIntent);}} 在 GlobalActionsDialog.java文件中的createDialog 方法中找到globalActionsList   mItems new ArrayListAction();String[] defaultActions mContext.getResources().getStringArray(R.array.config_globalActionsList);ArraySetString addedKeys new ArraySetString();mHasLogoutButton false;mHasLockdownButton false;for (int i 0; i defaultActions.length; i) { 在frameworks/base/core/res/res/values/config.xml中的config_globalActionsList 添加key   string-array translatablefalse nameconfig_globalActionsListitempower/itemitemrestart/itemitemlockdown/itemitemlogout/itemitembugreport/itemitemscreenshot/itemitemshelf_mode/itemitememergency/item/string-array 在 GlobalActionsDialog.java文件中的createDialog 方法中添加   for (int i 0; i defaultActions.length; i) {String actionKey defaultActions[i];if (addedKeys.contains(actionKey)) {// If we already have added this, dont add it again.continue;}if (GLOBAL_ACTION_KEY_POWER.equals(actionKey)) {mItems.add(new PowerAction());} else if (GLOBAL_ACTION_KEY_AIRPLANE.equals(actionKey)) {mItems.add(mAirplaneModeOn);} else if (GLOBAL_ACTION_KEY_BUGREPORT.equals(actionKey)) {if (Settings.Global.getInt(mContext.getContentResolver(),Settings.Global.BUGREPORT_IN_POWER_MENU, 0) ! 0 isCurrentUserOwner()) {mItems.add(new BugReportAction());}} else if (GLOBAL_ACTION_KEY_SILENT.equals(actionKey)) {if (mShowSilentToggle) {mItems.add(mSilentModeAction);}} else if (GLOBAL_ACTION_KEY_USERS.equals(actionKey)) {if (SystemProperties.getBoolean(fw.power_user_switcher, false)) {addUsersToMenu(mItems);}} else if (GLOBAL_ACTION_KEY_SETTINGS.equals(actionKey)) {mItems.add(getSettingsAction());} else if (GLOBAL_ACTION_KEY_LOCKDOWN.equals(actionKey)) {if (Settings.Secure.getIntForUser(mContext.getContentResolver(),Settings.Secure.LOCKDOWN_IN_POWER_MENU, 0, getCurrentUser().id) ! 0 shouldDisplayLockdown()) {mItems.add(getLockdownAction());mHasLockdownButton true;}} else if (GLOBAL_ACTION_KEY_VOICEASSIST.equals(actionKey)) {mItems.add(getVoiceAssistAction());} else if (GLOBAL_ACTION_KEY_ASSIST.equals(actionKey)) {mItems.add(getAssistAction());} else if (GLOBAL_ACTION_KEY_RESTART.equals(actionKey)) {mItems.add(new RestartAction());} else if (GLOBAL_ACTION_KEY_SCREENSHOT.equals(actionKey)) {mItems.add(new ScreenshotAction());} else if (GLOBAL_ACTION_KEY_LOGOUT.equals(actionKey)) {if (mDevicePolicyManager.isLogoutEnabled() getCurrentUser().id ! UserHandle.USER_SYSTEM) {mItems.add(new LogoutAction());mHasLogoutButton true;}} else if (GLOBAL_ACTION_KEY_EMERGENCY.equals(actionKey)) {if (!mEmergencyAffordanceManager.needsEmergencyAffordance()) {mItems.add(new EmergencyDialerAction());}} else if (GLOBAL_ACTION_KEY_BATTERY_SHELF_MODE.equals(actionKey)) { // if (!SystemProperties.get(ro.boot.hwid, 0).equals(0))mItems.add(new BatteryShelfModeAction());}else {Log.e(TAG, Invalid global action key actionKey);}// Add here so we dont add more than one.addedKeys.add(actionKey);}
http://www.tj-hxxt.cn/news/141947.html

相关文章:

  • 数据库网站开发站长之家特效网站
  • 做网站的公司还市场吗百度网址导航主页
  • 投教网站建设临沂文联最新消息
  • 营销型类型网站多少钱些全国教育平台网站建设
  • 北京做网站开发公司电话苏州营销型网站制作多少钱
  • 云空间布置网站免费查询公司信息
  • 邵阳做网站哪家好企业邮箱263登录入口
  • php新手网站开发二级建造师官网查询系统
  • excel做网站二维码网站开发的完整流程
  • 微软网站开发软件如何创业做网站
  • 哪家公司做跳转网站dedecms源码下载
  • 海南创作什么网站谷歌seo推广公司
  • 网站关键词提升店铺首页图片
  • 特效网站模板半夜一分快三app推荐直播下载
  • 电脑怎样做轰炸网站wordpress phone主题
  • 高端网站开发地址天元建设集团有限公司张国庆
  • asp.net做购物网站正确建设企业网站
  • jsp网站建设课程设计一个网站设计的费用
  • 网站的后台管理账号和密码聊城集团网站建设多少钱
  • 电子商务网站建设需要学什么软件怎么样提升自己的学历
  • 购买网站域名东莞网页制作价格
  • 个人做网站时不要做什么样的网站网站域名的作用是什么
  • 三乡网站建设公司长沙网站搭建
  • 网站建设与推广是什么意思江苏企业网站建设公司
  • 嘉兴网站建设模板网站企业网站建设有没有模板
  • 如果使用自己电脑做网站怎样做引流推广
  • 有没有接做网站私活的平台软件开发公司的组织架构
  • 做网站的域名怎么申请ui培训的机构
  • 六安网站关键词排名优化报价重庆网站建设模板制作
  • vps网站建站助手网站开发ckplayer加载失败