コード例 #1
0
 @Override
 public List<SearchIndexableResource> getXmlResourcesToIndex(
     Context context, boolean enabled) {
   SearchIndexableResource sir = new SearchIndexableResource(context);
   sir.xmlResId = R.xml.wireless_settings;
   return Arrays.asList(sir);
 }
 @Override
 public List<SearchIndexableResource> getXmlResourcesToIndex(
     Context context, boolean enabled) {
   List<SearchIndexableResource> indexables = new ArrayList<SearchIndexableResource>();
   SearchIndexableResource indexable = new SearchIndexableResource(context);
   indexable.xmlResId = R.xml.accessibility_settings;
   indexables.add(indexable);
   return indexables;
 }
コード例 #3
0
        @Override
        public List<SearchIndexableResource> getXmlResourcesToIndex(
            Context context, boolean enabled) {
          ArrayList<SearchIndexableResource> result = new ArrayList<SearchIndexableResource>();

          SearchIndexableResource sir = new SearchIndexableResource(context);
          sir.xmlResId = R.xml.livedisplay;
          result.add(sir);

          return result;
        }