mirror of
https://github.com/jamessanford/kegs.git
synced 2025-01-09 20:30:59 +00:00
Add icon. Use string resources instead of raw strings.
This commit is contained in:
parent
635117a0a9
commit
cc5e16b6da
@ -8,7 +8,7 @@
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||
|
||||
<application android:label="KEGS" android:hardwareAccelerated="true">
|
||||
<application android:icon="@drawable/icon" android:label="@string/app_name" android:description="@string/app_description" android:hardwareAccelerated="true">
|
||||
<activity android:name="KegsMain" android:launchMode="singleInstance" android:configChanges="orientation|keyboardHidden|screenSize" android:windowSoftInputMode="stateAlwaysVisible|adjustPan">
|
||||
|
||||
<intent-filter>
|
||||
|
BIN
res/drawable-xhdpi/icon.png
Normal file
BIN
res/drawable-xhdpi/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
15
res/values/strings.xml
Normal file
15
res/values/strings.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">KEGS</string>
|
||||
<string name="app_description">Apple IIgs Emulator</string>
|
||||
|
||||
<string name="rom_title">Checking for ROM</string>
|
||||
<string name="rom_check">Checking for ROM...</string>
|
||||
<string name="rom_error">Unable to obtain ROM. Find ROM.01 or ROM.03 and put it in the /KEGS/ directory on your SD Card.</string>
|
||||
|
||||
<string-array name="rom_choices">
|
||||
<item>I don\'t own a GS</item>
|
||||
<item>I have a ROM 01</item>
|
||||
<item>I have a ROM 03</item>
|
||||
</string-array>
|
||||
</resources>
|
@ -112,7 +112,7 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset {
|
||||
ProgressDialog dialog = new ProgressDialog(getActivity());
|
||||
// TODO: should probably use an XML layout for this.
|
||||
dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
|
||||
dialog.setMessage("Checking for ROM...");
|
||||
dialog.setMessage(getResources().getText(R.string.rom_check));
|
||||
dialog.setProgressNumberFormat(null);
|
||||
dialog.setProgressPercentFormat(null);
|
||||
dialog.setIndeterminate(true);
|
||||
@ -126,7 +126,7 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset {
|
||||
@Override
|
||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||
builder.setMessage("Unable to obtain ROM. Find ROM.01 or ROM.03 and put it in the /KEGS/ directory on your SD Card.");
|
||||
builder.setMessage(getResources().getText(R.string.rom_error));
|
||||
// TODO do getActivity().finish() on button clicks
|
||||
return builder.create();
|
||||
}
|
||||
|
@ -10,13 +10,9 @@ import android.util.Log;
|
||||
public class RomDialogFragment extends DialogFragment {
|
||||
@Override
|
||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
final CharSequence[] items = {"I don't own a GS",
|
||||
"I have a ROM 01",
|
||||
"I have a ROM 03"};
|
||||
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||
builder.setTitle("Checking for ROM");
|
||||
builder.setSingleChoiceItems(items, -1,
|
||||
builder.setTitle(R.string.rom_title);
|
||||
builder.setSingleChoiceItems(R.array.rom_choices, -1,
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int item) {
|
||||
dismiss();
|
||||
|
Loading…
x
Reference in New Issue
Block a user