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

公司网站域名是什么意思seo优化关键词排名

公司网站域名是什么意思,seo优化关键词排名,公司做外贸网站,中国电力建设集团有限公司1.设定Android settings中某个xml文件(包括其子项)或者某个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 List<SearchIndexableResource> getXmlResourcesToIndex(Context context,boolean enabled) {List<SearchIndexableResource> 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 List<SearchIndexableResource> getXmlResourcesToIndex(Context context,boolean enabled) {List<SearchIndexableResource> indexables = new ArrayList<>();SearchIndexableResource indexable = new SearchIndexableResource(context);indexable.xmlResId = R.xml.accessibility_settings;indexables.add(indexable);return indexables;}@Overridepublic List<String> getNonIndexableKeys(Context context) {final List<String> 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 ArrayList<Action>();String[] defaultActions = mContext.getResources().getStringArray(R.array.config_globalActionsList);ArraySet<String> addedKeys = new ArraySet<String>();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 translatable="false" name="config_globalActionsList"><item>power</item><item>restart</item><item>lockdown</item><item>logout</item><item>bugreport</item><item>screenshot</item><item>shelf_mode</item><item>emergency</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, don't 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 don't add more than one.addedKeys.add(actionKey);}

http://www.hkea.cn/news/869380/

相关文章:

  • 重庆网站建设设计公司信息ip网站查询服务器
  • 网站积分的作用seo搜索引擎优化就业前景
  • 珠海网站品牌设计公司简介最新国内新闻重大事件
  • 广东专业网站客服软件定制站长统计app下载大全
  • 广东网站建设公司排名磁力帝
  • 胶南网站建设哪家好成都电脑培训班零基础
  • 集团网站建设哪家好网上推广怎么弄?
  • dz网站建设器最近有新病毒出现吗
  • 个人网站制作说明香港旺道旺国际集团
  • 监控做直播网站免费网站seo
  • 网站建设洪塔网站搜索优化排名
  • 专业做设计师品牌网站深圳百度总部
  • 网站兼容工具seo关键词排名优化教程
  • O2O网站制作需要多少钱美区下载的app怎么更新
  • 上海做网站 公司做电商必备的几个软件
  • caozi.com网站建设中百度指数如何分析数据
  • 互联网舆情处置公司武汉seo外包平台
  • 消防器材网站建设背景seo工作职位
  • 专业网站制作公司名称seo咨询茂名
  • 做b2c网站建网站seo
  • 代理注册香港公司seo技术交流论坛
  • 想要提高网站排名应该怎么做seo网站推广费用
  • 专业做食材网站seo链接优化建议
  • 做画册的网站附近哪里有计算机培训班
  • 大兴建站推广google登录
  • 长春个人做网站哪家好百度指数热度榜
  • 嘉兴手机网站开发费用百度学术论文官网入口
  • 刷业务网站怎么做seo关键词挖掘
  • 企业移动网站品牌苏州网站外包
  • 网站建设流程 文档东莞seo技术