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

广东东莞保安公司湖南 seo

广东东莞保安公司,湖南 seo,合肥网站搭建公司哪家好,成都网站设计策划免费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.w-s-a.com/news/15463/

相关文章:

  • 无锡网站策划公司如何零基础学编程
  • 金融网站如何做设计网站开发流程 文档
  • 用jsp做网站国内知名设计工作室
  • 一键搭建网站北京公司网站设计
  • 山东省城乡建设部网站网站营销单页怎么做
  • 中国移动视频网站建设百度统计官网
  • 网站实施过程网站上传视频怎么做
  • 网上书店网站建设实训总结嘉兴seo
  • 网站运行需求cos wordpress
  • 网络小说网站推广策划方案单位网站建设收费标准
  • 医院网站建设论证报告河源网站seo
  • 网站demo怎么做淘宝客网站一般用什么做的
  • 网站开发之美 pdf关键词查询优化
  • 可以建站的网站做一个网站美工多少钱
  • 怎么做网站专题互联网营销师报考费用
  • 淘宝导购网站怎么做上海数据开放网站建设
  • 广东网站建设怎么选2021个人网站盈利模式
  • 珠海网站建设的公司排名网站前端开发培训
  • 手机网站制作 费怎么做分录网站域名hk
  • 济南做网站建网站公司怎样用代码制作网站
  • 网站开发文档有哪些建设规划
  • 专注网站建设11年百度搜索不到我的网站
  • 企业网站 建设 流程wordpress 分类目录自定义
  • 北京市建设管理公司网站长春网站推广排名
  • 西安建站软件获取网站全站代码
  • 个人做网站怎么备案网站建设收费标准渠道
  • 单位做网站注意什么问题如何修改单页网站
  • asp全静态企业网站wordpress文章封面
  • 电白区住房和城乡建设部门户网站免费公司网站模版
  • 做玩游戏任务得q币的网站如何制作自己的公司内部网站