package iecs.fcu_navigate;

import android.content.Context;
import android.content.Intent;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.support.v7.widget.SearchView;
import android.util.AttributeSet;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;


public class MarkerSelectorActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_marker_selector);

        ListView view = (ListView) findViewById(R.id.category_listView);

        view.setAdapter(new ArrayAdapter<String>(
                this,
                android.R.layout.simple_list_item_activated_1,
                android.R.id.text1,
                new String[] {
                        "Test",
                        "Test2",
                        "Test3"
                }
        ));

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.marker_selector, menu);
        restoreActionBar();
        return true;
    }

    public void restoreActionBar() {
        ActionBar actionBar = getSupportActionBar();
        actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
        actionBar.setDisplayHomeAsUpEnabled(true);
        actionBar.setDisplayShowTitleEnabled(false);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                onBackPressed();
                return true;
        }
        return super.onOptionsItemSelected(item);
    }
}

@@ -40,296 +40,107 @@
 oid.
-content.Context;%0Aimport android.content.Intent;%0Aimport android.support.v4.view.MenuItemCompat;%0Aimport android.support.v7.app.ActionBar;%0Aimport android.support.v7.app.ActionBarActivity;%0Aimport android.os.Bundle;%0Aimport android.support.v7.widget.SearchView;%0Aimport android.util.AttributeSet
+os.Bundle;%0Aimport android.support.v7.app.ActionBar;%0Aimport android.support.v7.app.ActionBarActivity
 ;%0Aim
@@ -197,34 +197,8 @@
 em;%0A
-import android.view.View;%0A
 impo
@@ -265,40 +265,8 @@
 ew;%0A
-import android.widget.TextView;%0A
 %0A%0Apu

Clean import