diff --git a/app/src/main/java/us/shandian/giga/ui/fragment/MissionsFragment.java b/app/src/main/java/us/shandian/giga/ui/fragment/MissionsFragment.java
index 7b42f90c9..5241415b2 100644
--- a/app/src/main/java/us/shandian/giga/ui/fragment/MissionsFragment.java
+++ b/app/src/main/java/us/shandian/giga/ui/fragment/MissionsFragment.java
@@ -16,6 +16,8 @@ import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
+import android.view.Menu;
+import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
@@ -144,17 +146,21 @@ public abstract class MissionsFragment extends Fragment {
}
@Override
- public boolean onOptionsItemSelected(MenuItem item) {
- return super.onOptionsItemSelected(item);
+ public void onPrepareOptionsMenu(Menu menu) {
+ mSwitch = menu.findItem(R.id.switch_mode);
+ super.onPrepareOptionsMenu(menu);
+ }
- /*switch (item.getItemId()) {
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ switch (item.getItemId()) {
case R.id.switch_mode:
mLinear = !mLinear;
updateList();
return true;
default:
return super.onOptionsItemSelected(item);
- }*/
+ }
}
public void notifyChange() {
diff --git a/app/src/main/res/layout/mission_item_linear.xml b/app/src/main/res/layout/mission_item_linear.xml
index 21f637839..0133d0c3f 100644
--- a/app/src/main/res/layout/mission_item_linear.xml
+++ b/app/src/main/res/layout/mission_item_linear.xml
@@ -9,7 +9,7 @@
android:layout_width="match_parent"
android:layout_margin="2dp"
android:background="@color/bluegray">
-
+
-
-
+ android:ellipsize="end"
+ android:padding="6dp"
+ android:text="XXX.xx"
+ android:textColor="@color/white"
+ android:textSize="16sp"
+ android:textStyle="bold" />
-
-
-
-
-
-
+
+ android:textColor="@color/white"
+ android:textSize="12sp" />
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 0dc837ae8..04a0be64f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -517,5 +517,6 @@
None
Minimize to background player
Minimize to popup player
+ Switch View