[android] Move the simple map activity to a "Basic" section, always listed first (#7817)

* move the simple map activity to a basic section, always listed first

* category_first -> category_basic
This commit is contained in:
Antonio Zugaldia
2017-01-23 14:22:03 -05:00
committed by GitHub
parent 9b72644191
commit d1a1a03435
3 changed files with 4 additions and 2 deletions

View File

@@ -390,7 +390,7 @@
android:label="@string/activity_simple_map">
<meta-data
android:name="@string/category"
android:value="@string/category_maplayout"/>
android:value="@string/category_basic"/>
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activity.FeatureOverviewActivity"/>

View File

@@ -91,7 +91,8 @@ public class FeatureSectionAdapter extends RecyclerView.Adapter<RecyclerView.Vie
@Override
public void onBindViewHolder(RecyclerView.ViewHolder sectionViewHolder, int position) {
if (isSectionHeaderPosition(position)) {
((SectionViewHolder) sectionViewHolder).title.setText(sections.get(position).title);
String cleanTitle = sections.get(position).title.toString().replace("_", " ");
((SectionViewHolder) sectionViewHolder).title.setText(cleanTitle);
} else {
adapter.onBindViewHolder(sectionViewHolder, getConvertedPosition(position));
}

View File

@@ -124,6 +124,7 @@
<string name="menuitem_title_reset">Reset</string>
<string name="category">category</string>
<string name="category_basic">_Basic</string>
<string name="category_annotation">Annotation</string>
<string name="category_camera">Camera</string>
<string name="category_custom_layer">Custom Layer</string>