diff --git a/support/android/apk/servoapp/src/main/AndroidManifest.xml b/support/android/apk/servoapp/src/main/AndroidManifest.xml index 3c7cdc11507..7c0b914b421 100644 --- a/support/android/apk/servoapp/src/main/AndroidManifest.xml +++ b/support/android/apk/servoapp/src/main/AndroidManifest.xml @@ -12,7 +12,8 @@ + android:exported="true" + android:theme="@style/AppTheme"> diff --git a/support/android/apk/servoapp/src/main/java/org/servo/servoshell/MainActivity.java b/support/android/apk/servoapp/src/main/java/org/servo/servoshell/MainActivity.java index ee301bfb19c..4eab22ba0d2 100644 --- a/support/android/apk/servoapp/src/main/java/org/servo/servoshell/MainActivity.java +++ b/support/android/apk/servoapp/src/main/java/org/servo/servoshell/MainActivity.java @@ -19,6 +19,7 @@ import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; +import android.widget.ImageButton; import android.widget.ProgressBar; import android.widget.TextView; @@ -32,10 +33,10 @@ public class MainActivity extends Activity implements Servo.Client { private static final String LOGTAG = "MainActivity"; ServoView mServoView; - Button mBackButton; - Button mFwdButton; - Button mReloadButton; - Button mStopButton; + ImageButton mBackButton; + ImageButton mFwdButton; + ImageButton mReloadButton; + ImageButton mStopButton; EditText mUrlField; ProgressBar mProgressBar; TextView mIdleText; @@ -60,6 +61,9 @@ public class MainActivity extends Activity implements Servo.Client { mBackButton.setEnabled(false); mFwdButton.setEnabled(false); + // Avoid reload/stop icons doubling up on launch + mReloadButton.setVisibility(View.GONE); + mServoView.setClient(this); mServoView.requestFocus(); diff --git a/support/android/apk/servoapp/src/main/res/drawable/cancel.png b/support/android/apk/servoapp/src/main/res/drawable/cancel.png new file mode 100644 index 00000000000..397881217ac Binary files /dev/null and b/support/android/apk/servoapp/src/main/res/drawable/cancel.png differ diff --git a/support/android/apk/servoapp/src/main/res/drawable/history_back.png b/support/android/apk/servoapp/src/main/res/drawable/history_back.png new file mode 100644 index 00000000000..7b6f829420d Binary files /dev/null and b/support/android/apk/servoapp/src/main/res/drawable/history_back.png differ diff --git a/support/android/apk/servoapp/src/main/res/drawable/history_forward.png b/support/android/apk/servoapp/src/main/res/drawable/history_forward.png new file mode 100644 index 00000000000..bf8f3fe0c09 Binary files /dev/null and b/support/android/apk/servoapp/src/main/res/drawable/history_forward.png differ diff --git a/support/android/apk/servoapp/src/main/res/drawable/refresh.png b/support/android/apk/servoapp/src/main/res/drawable/refresh.png new file mode 100644 index 00000000000..3acfd59781b Binary files /dev/null and b/support/android/apk/servoapp/src/main/res/drawable/refresh.png differ diff --git a/support/android/apk/servoapp/src/main/res/layout/activity_main.xml b/support/android/apk/servoapp/src/main/res/layout/activity_main.xml index 291b8470531..874b6850617 100644 --- a/support/android/apk/servoapp/src/main/res/layout/activity_main.xml +++ b/support/android/apk/servoapp/src/main/res/layout/activity_main.xml @@ -16,90 +16,117 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> - + android:layout_height="?attr/actionBarSize" + android:background="?attr/colorPrimary" + android:elevation="4dp" + android:theme="@style/ThemeOverlay.AppCompat.ActionBar" + app:popupTheme="@style/ThemeOverlay.AppCompat.Light"> + + -