Tweak splash screen visuals and add a preferences button
@ -34,17 +34,23 @@ public class Apple2SplashScreen implements Apple2MenuView {
|
||||
LayoutInflater inflater = (LayoutInflater) mActivity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||
mSettingsView = inflater.inflate(R.layout.activity_splash_screen, null, false);
|
||||
|
||||
Drawable d = mActivity.getResources().getDrawable(R.drawable.apple_iie);
|
||||
ImageView imageView = (ImageView)mSettingsView.findViewById(R.id.splashView);
|
||||
imageView.setImageDrawable(d);
|
||||
|
||||
Button startButton = (Button)mSettingsView.findViewById(R.id.startButton);
|
||||
Button startButton = (Button) mSettingsView.findViewById(R.id.startButton);
|
||||
startButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Apple2SplashScreen.this.dismiss();
|
||||
}
|
||||
});
|
||||
|
||||
Button prefsButton = (Button) mSettingsView.findViewById(R.id.prefsButton);
|
||||
prefsButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Apple2SettingsMenu settingsMenu = mActivity.getView().getMainMenu().getSettingsMenu();
|
||||
settingsMenu.show();
|
||||
Apple2SplashScreen.this.dismiss();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void show() {
|
||||
|
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 355 KiB After Width: | Height: | Size: 358 KiB |
Before Width: | Height: | Size: 355 KiB After Width: | Height: | Size: 358 KiB |
Before Width: | Height: | Size: 479 KiB After Width: | Height: | Size: 494 KiB |
@ -15,6 +15,7 @@
|
||||
android:layout_height="fill_parent"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/apple_iie"
|
||||
android:id="@+id/splashView" />
|
||||
|
||||
<Button
|
||||
@ -25,8 +26,29 @@
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginRight="20dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:layout_marginRight="18dp"
|
||||
android:layout_marginEnd="18dp"
|
||||
android:layout_marginTop="18dp" />
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/emulation_preferences"
|
||||
android:id="@+id/prefsButton"
|
||||
android:layout_marginTop="18dp"
|
||||
android:layout_below="@+id/startButton"
|
||||
android:layout_alignRight="@+id/startButton"
|
||||
android:layout_alignEnd="@+id/startButton" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/imageView"
|
||||
android:src="@drawable/ic_launcher"
|
||||
android:layout_alignTop="@+id/startButton"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginLeft="18dp"
|
||||
android:layout_marginStart="18dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|