Add Menu to Test Chooser Activity.

Provides way to enable/disable the following when starting a test:  Mouse Events, Joystick Events, Key Events, Verbose Logging.
define_list_fix
iwgeric 9 years ago
parent e5c6673df1
commit 1e23cfcb0a
  1. 3
      jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/MainActivity.java
  2. 20
      jme3-android-examples/src/main/res/menu/menu_items.xml

@ -4,6 +4,7 @@ import android.app.Activity;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.Log;
@ -30,7 +31,7 @@ import java.util.List;
* applications that are started via TestsHarness Activity.
* @author iwgeric
*/
public class MainActivity extends Activity implements OnItemClickListener, View.OnClickListener, TextWatcher {
public class MainActivity extends AppCompatActivity implements OnItemClickListener, View.OnClickListener, TextWatcher {
private static final String TAG = "MainActivity";
/**

@ -9,23 +9,23 @@
android:id="@+id/optionMouseEvents"
android:orderInCategory="100"
android:title="@string/strOptionEnableMouseEventsTitle"
app:showAsAction="ifRoom" />
app:showAsAction="never" />
<item
android:id="@+id/optionJoystickEvents"
android:orderInCategory="200"
android:title="@string/strOptionEnableJoystickEventsTitle"
app:showAsAction="ifRoom" />
app:showAsAction="never" />
<item
android:id="@+id/optionKeyEvents"
android:orderInCategory="300"
android:title="@string/strOptionEnableKeyEventsTitle"
app:showAsAction="ifRoom" />
android:id="@+id/optionKeyEvents"
android:orderInCategory="300"
android:title="@string/strOptionEnableKeyEventsTitle"
app:showAsAction="never" />
<item
android:id="@+id/optionVerboseLogging"
android:orderInCategory="300"
android:title="@string/strOptionEnableVerboseLoggingTitle"
app:showAsAction="ifRoom" />
android:id="@+id/optionVerboseLogging"
android:orderInCategory="300"
android:title="@string/strOptionEnableVerboseLoggingTitle"
app:showAsAction="never" />
<!--
android:icon="@mipmap/redmonkey"

Loading…
Cancel
Save