commit 0677fbf0597c203d16e8a4c335c9ce880911cdb7 Author: Carlos Galindo Date: Fri Feb 20 20:47:22 2015 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..afbdab3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..ab7a484 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +DungeonManager \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..217af47 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,23 @@ + + + + + + diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..e206d70 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..2cbb09b --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,19 @@ + + + + + + + diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..357c800 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,14 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..3b31283 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..9076de5 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..3439f14 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..def6a6a --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/DungeonManager.iml b/DungeonManager.iml new file mode 100644 index 0000000..2a02201 --- /dev/null +++ b/DungeonManager.iml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/app.iml b/app/app.iml new file mode 100644 index 0000000..9724666 --- /dev/null +++ b/app/app.iml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..d8ed060 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,25 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 21 + buildToolsVersion "21.1.2" + + defaultConfig { + applicationId "com.ddns.kauron.dungeonmanager" + minSdkVersion 15 + targetSdkVersion 21 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + compile 'com.android.support:appcompat-v7:21.0.3' +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..68aff3c --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in C:\Users\Carlos\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/app/src/androidTest/java/com/ddns/kauron/dungeonmanager/ApplicationTest.java b/app/src/androidTest/java/com/ddns/kauron/dungeonmanager/ApplicationTest.java new file mode 100644 index 0000000..0bc98cf --- /dev/null +++ b/app/src/androidTest/java/com/ddns/kauron/dungeonmanager/ApplicationTest.java @@ -0,0 +1,13 @@ +package com.ddns.kauron.dungeonmanager; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..966317e --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + diff --git a/app/src/main/ic_launcher-web.png b/app/src/main/ic_launcher-web.png new file mode 100644 index 0000000..a0b6600 Binary files /dev/null and b/app/src/main/ic_launcher-web.png differ diff --git a/app/src/main/java/com/ddns/kauron/dungeonmanager/HealthDialogFragment.java b/app/src/main/java/com/ddns/kauron/dungeonmanager/HealthDialogFragment.java new file mode 100644 index 0000000..866a9f3 --- /dev/null +++ b/app/src/main/java/com/ddns/kauron/dungeonmanager/HealthDialogFragment.java @@ -0,0 +1,66 @@ +package com.ddns.kauron.dungeonmanager; + + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.Dialog; +import android.app.DialogFragment; +import android.content.DialogInterface; +import android.os.Bundle; + +public class HealthDialogFragment extends DialogFragment { + + static HealthDialogFragment newInstance(int curativeEfforts) { + HealthDialogFragment f = new HealthDialogFragment(); + Bundle args = new Bundle(); + args.putInt("curativeEfforts", curativeEfforts); + f.setArguments(args); + + return f; + } + + public interface HealthDialogListener { + public void curativeEffort(DialogFragment dialog, boolean uses); + } + + + HealthDialogListener mListener; + + @Override + public void onAttach(Activity activity) { + super.onAttach(activity); + try{ + mListener = (HealthDialogListener) activity; + }catch(ClassCastException e){ + throw new ClassCastException(activity.toString() + " must implement HealthDialogListener"); + } + } + + @Override + public Dialog onCreateDialog(Bundle savedInstanceState) { + String message = getString(R.string.new_energies1) + + " " + getArguments().getInt("curativeEfforts") + " " + + getString(R.string.new_energies2); + AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); + builder.setMessage(message) + .setTitle(R.string.new_energies_title) + .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int id) { + mListener.curativeEffort(HealthDialogFragment.this, true); + } + }) + .setNegativeButton(R.string.no, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int id) { + mListener.curativeEffort(HealthDialogFragment.this, false); + } + }) + .setNeutralButton(R.string.cancel, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int id) { + dialog.cancel(); + } + }); + return builder.create(); + } +} diff --git a/app/src/main/java/com/ddns/kauron/dungeonmanager/Introduction.java b/app/src/main/java/com/ddns/kauron/dungeonmanager/Introduction.java new file mode 100644 index 0000000..f7118cb --- /dev/null +++ b/app/src/main/java/com/ddns/kauron/dungeonmanager/Introduction.java @@ -0,0 +1,102 @@ +package com.ddns.kauron.dungeonmanager; + +import android.content.SharedPreferences; +import android.support.v7.app.ActionBarActivity; +import android.os.Bundle; +import android.view.Menu; +import android.view.MenuItem; +import android.widget.EditText; +import android.widget.Toast; + + +public class Introduction extends ActionBarActivity { + + EditText name, className, raceName, level, maxPg; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + getSupportActionBar().setDisplayHomeAsUpEnabled(true); + setContentView(R.layout.activity_introduction); + name = (EditText) findViewById(R.id.editNameIntro); + className = (EditText) findViewById(R.id.editClassIntro); + raceName = (EditText) findViewById(R.id.editRaceIntro); + level = (EditText) findViewById(R.id.editLevelIntro); + maxPg = (EditText) findViewById(R.id.editMaxPgIntro); + } + + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.menu_introduction, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + // Handle action bar item clicks here. The action bar will + // automatically handle clicks on the Home/Up button, so long + // as you specify a parent activity in AndroidManifest.xml. + int id = item.getItemId(); + + //noinspection SimplifiableIfStatement + if (id == R.id.action_finish) { + if(finished()) { + this.finish(); + } else { + Toast.makeText( + getApplicationContext(), + R.string.missing_info_error, + Toast.LENGTH_LONG + ).show(); + } + return true; + } + + return super.onOptionsItemSelected(item); + } + + //TODO: fix this + private boolean finished() { + SharedPreferences p = getSharedPreferences("basics", MODE_PRIVATE); + SharedPreferences.Editor ed = p.edit(); + String nameString = name.getText().toString(); + String classString = className.getText().toString(); + String raceString = raceName.getText().toString(); + int levelInt = 0, maxPgInt = 0; + try { + levelInt = Integer.parseInt(level.getText().toString()); + maxPgInt = Integer.parseInt(level.getText().toString()); + } catch (Exception e) {} + if(getIntent().getExtras().getBoolean("first_time")) { + if (!nameString.isEmpty() && + !classString.isEmpty() && + !raceString.isEmpty() && + levelInt != 0 && + maxPgInt != 0) { + //first save it all + ed.putString("playerName", nameString); + ed.putString("className", classString); + ed.putString("raceName", raceString); + if(p.getInt("pg", Integer.MIN_VALUE) == Integer.MIN_VALUE) + ed.putInt("pg", maxPgInt); + ed.putInt("level", levelInt); + ed.putInt("maxPg", maxPgInt); + ed.putBoolean("saved", true); + ed.apply(); + return true; + } else { + return false; + } + } else { + if(!nameString.isEmpty()) ed.putString("playerName", nameString); + if(!classString.isEmpty()) ed.putString("className", classString); + if(!raceString.isEmpty()) ed.putString("raceName", raceString); + if(levelInt != 0) ed.putInt("level", levelInt); + if(maxPgInt != 0) ed.putInt("maxPg", maxPgInt); + ed.apply(); + return true; + } + } +} diff --git a/app/src/main/java/com/ddns/kauron/dungeonmanager/MainActivity.java b/app/src/main/java/com/ddns/kauron/dungeonmanager/MainActivity.java new file mode 100644 index 0000000..f00d3e0 --- /dev/null +++ b/app/src/main/java/com/ddns/kauron/dungeonmanager/MainActivity.java @@ -0,0 +1,209 @@ +package com.ddns.kauron.dungeonmanager; + +import android.app.AlertDialog; +import android.app.DialogFragment; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.graphics.Color; +import android.support.v7.app.ActionBarActivity; +import android.os.Bundle; +import android.text.InputType; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.TextView; +import android.widget.Toast; + + +public class MainActivity extends ActionBarActivity + implements HealthDialogFragment.HealthDialogListener{ + + public static final int CURRENT_PG = 1, NULL = 0; + + public Player player; + private boolean undo; + private int undoObject, undoPreviousValue; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + restoreData(); + undo = false; + invalidateOptionsMenu(); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.menu_main, menu); + return true; + } + + @Override + public boolean onPrepareOptionsMenu (Menu menu) { + menu.findItem(R.id.action_undo).setVisible(undo); + return true; + } + + + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + // Handle action bar item clicks here. The action bar will + // automatically handle clicks on the Home/Up button, so long + // as you specify a parent activity in AndroidManifest.xml. + int id = item.getItemId(); + + //noinspection SimplifiableIfStatement + if (id == R.id.action_cure) { + showHealthDialog(); + return true; + } else if (id == R.id.action_edit_basics) { + SharedPreferences p = getSharedPreferences("basics", MODE_PRIVATE); + Intent intent = new Intent(this, Introduction.class); + startActivity(intent.putExtra( + "first_time", + !p.getBoolean("saved", false) + )); + restoreData(); + return true; + } else if (id == R.id.action_undo) { + String message = ""; + if(undoObject == CURRENT_PG){ + ((Button) findViewById(R.id.pgCurrent)).setText(String.valueOf(undoPreviousValue)); + undoObject = NULL; + message = getString(R.string.action_undo_current_pg); + } + Toast.makeText( + getApplicationContext(), + message, + Toast.LENGTH_LONG + ).show(); + undo = false; + invalidateOptionsMenu(); + return true; + } else if (id == R.id.action_calendar_activity) { + Intent intent = new Intent(Intent.ACTION_EDIT); + intent.setType("vnd.android.cursor.item/event"); + intent.putExtra("title", R.string.dungeons_and_dragons); + startActivity(intent); + } else if (id == R.id.action_save) { + saveData(); + } + + return super.onOptionsItemSelected(item); + } + + public void showHealthDialog(){ + DialogFragment dialog = HealthDialogFragment.newInstance(player.getCurativeEfforts()); + dialog.show(getFragmentManager(), "HealthDialogFragment"); + } + + @Override + public void curativeEffort(DialogFragment dialog, boolean uses) { + int hasCured = player.recoverPg(Player.USE_CURATIVE_EFFORT, uses); + if (hasCured == Player.NOT_CURED) { + Toast.makeText( + getApplicationContext(), + R.string.no_curative_efforts_error, + Toast.LENGTH_LONG + ).show(); + } else { + if(hasCured == Player.MAXED){ + Toast.makeText( + getApplicationContext(), + R.string.maxed_curative, + Toast.LENGTH_LONG + ).show(); + } + healthStatusCheck(); + } + } + + public void onCurrentPgClick(final View view){ + AlertDialog.Builder alert = new AlertDialog.Builder(this); + alert.setTitle(getString(R.string.suffer_damage)); + + // Set an EditText view to get user input + final EditText input = new EditText(this); + input.setInputType(InputType.TYPE_CLASS_NUMBER); + input.setHint(R.string.suffer_damage_hint); + + + alert.setView(input); + + alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int whichButton) { + Button pg = (Button) findViewById(R.id.pgCurrent); + try { + int preValue = Integer.parseInt(pg.getText().toString()); + int damage = Integer.parseInt(input.getText().toString()); + player.losePg(damage); + pg.setText( + String.valueOf(player.getPg()) + ); + //finished correctly, then apply values to undo's + healthStatusCheck(); + undo = true; + undoPreviousValue = preValue; + undoObject = CURRENT_PG; + invalidateOptionsMenu(); + } catch (Exception e) {} + } + }); + + alert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int whichButton) { + // Canceled. + } + }); + + alert.show(); + } + + private void healthStatusCheck(){ + int status = player.getState(); + Button pg = (Button) findViewById(R.id.pgCurrent); + pg.setText(String.valueOf(player.getPg())); + if (status == Player.MUERTO) { + pg.setText(""); + } else if (status == Player.DEBILITADO) + pg.setTextColor(Color.RED); + else if (status == Player.MALHERIDO) + pg.setTextColor(Color.YELLOW); + else pg.setTextColor(getResources().getColor(R.color.abc_primary_text_material_dark)); + } + + + private void restoreData(){ + SharedPreferences p = getSharedPreferences("basics", MODE_PRIVATE); + //restore state + player = new Player( + p.getString("playerName", getString(R.string.adventurer_name)), + p.getString("className", getString(R.string.class_name)), + p.getString("raceName", getString(R.string.race_name)), + p.getInt("level", 1), + p.getInt("maxPg", 15), + p.getInt("pg", 15), + p.getInt("maxCurativeEfforts", 5), + p.getInt("curativeEfforts", 5), + new int[6], + new int[3], + new int[18], + new Power[4]); + //set restored values to the respective fields + ((TextView) findViewById(R.id.nameText)).setText(player.getName()); + ((TextView) findViewById(R.id.raceText)).setText(player.getRaceName()); + ((TextView) findViewById(R.id.classText)).setText(player.getClassName()); + ((TextView) findViewById(R.id.lvl)).setText(String.valueOf(player.getLevel())); + ((Button) findViewById(R.id.pgCurrent)).setText(String.valueOf(player.getMaxPg())); + } + + private void saveData() { + + } +} \ No newline at end of file diff --git a/app/src/main/java/com/ddns/kauron/dungeonmanager/Player.java b/app/src/main/java/com/ddns/kauron/dungeonmanager/Player.java new file mode 100644 index 0000000..269229a --- /dev/null +++ b/app/src/main/java/com/ddns/kauron/dungeonmanager/Player.java @@ -0,0 +1,115 @@ +package com.ddns.kauron.dungeonmanager; + +public class Player { + /** + * Values for attack + */ + public static final int FUE = 1, CON = 2, DES = 3, INT = 4, SAB = 5, CAR = 6; + + /** + * Values for defenses + */ + public static final int CA = 1, FORT = 2, REF = 3, VOL = 4; + + /** + * Values for abilities + */ + public static final int ACROBACIAS = 1, AGUANTE = 2, ARCANOS = 3, ATLETISMO = 4, DIPLOMACIA = 5, + DUNGEONS = 6, ENGAÑAR = 7, HISTORIA = 8, HURTO = 9, INTIMIDAR = 10, NATURALEZA = 11, + PERCEPCIÓN = 12, PERSPICACIA = 13, RECURSOS = 14, RELIGIÓN = 15, SANAR = 16, SIGILO = 17; + + /** + * Names for the abilities + */ + public static final String[] abilityString = new String[] { + "Acrobacias", "Aguante", "Arcanos", "Atletismo", "Diplomacia", "Dungeons", "Engañar", + "Historia", "Hurto", "Intimidar", "Naturaleza", "Percepción", "Perspicacia", "Recursos", + "Religión", "Sanar", "Sigilo" + }; + + /** + * Values for the current living state + */ + public static final int OK = 1, MALHERIDO = 2, DEBILITADO = 3, MUERTO = 4, + USE_CURATIVE_EFFORT = -1, CURED = 1, NOT_CURED = 0, MAXED = -1; + + private int pg, maxPg; + private int state; + private int curativeEfforts, maxCurativeEfforts; + private int[] atk, def, abilities; + private Power[] powers; + private String name, className, raceName; + private int level; + + + public Player(String name, String className, String raceName, int level, int maxPg, int pg, + int maxCurativeEfforts, int curativeEfforts, int[] atk, int[] def, int[] abilities, Power[] powers){ + this.maxPg = maxPg; + this.pg = pg; + setState(); + this.name = name; + this.className = className; + this.raceName = raceName; + this.level = level; + this.atk = atk; + this.def = def; + this.abilities = abilities; + this.powers = powers; + this.maxCurativeEfforts = maxCurativeEfforts; + this.curativeEfforts = curativeEfforts; + } + + + public int getCurativeEfforts() {return curativeEfforts;} + public void setCurativeEffort(int curativeEfforts) {this.curativeEfforts = curativeEfforts;} + + public int getLevel() {return level;} + + public int getMaxPg() {return maxPg;} + public void setMaxPg(int pg) {this.pg = pg;} + + public int getPg() {return pg;} + public void setPg(int pg) {this.pg = pg;} + public void losePg(int damage) { + pg -= damage; + setState(); + } + public int recoverPg(int recovered, boolean uses) { + if(recovered == USE_CURATIVE_EFFORT){ + if(uses && curativeEfforts <= 0) return NOT_CURED; + else { + if(uses) curativeEfforts--; + pg += maxPg / 4; + } + } else { + pg += recovered; + } + setState(); + + if (pg > maxPg) {pg = maxPg; return MAXED;} + + return CURED; + } + + public int getState() {return state;} + private void setState() { + if (pg < maxPg / -2) state = MUERTO; + else if (pg < 0) state = DEBILITADO; + else if(pg < maxPg / 2) state = MALHERIDO; + else state = OK; + } + + public String getName() {return name;} + public String getClassName() {return className;} + public String getRaceName() {return raceName;} + + + public void rest(boolean length) { + if(length) { + curativeEfforts = maxCurativeEfforts; + for(Power p : powers){ + if(p != null) p.recover(); + } + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/ddns/kauron/dungeonmanager/Power.java b/app/src/main/java/com/ddns/kauron/dungeonmanager/Power.java new file mode 100644 index 0000000..cd91777 --- /dev/null +++ b/app/src/main/java/com/ddns/kauron/dungeonmanager/Power.java @@ -0,0 +1,24 @@ +package com.ddns.kauron.dungeonmanager; + +public class Power { + public static final int DIARIO = 1, A_VOLUNTAD = 2, ENCUENTRO = 3, OPORTUNIDAD = 4; + + private boolean used; + private int type; + private String name; + + + public Power(String name, int type){ + this.name = name; + this.type = type; + used = false; + } + + public String getName(){return name;} + public int getType(){return type;} + + public boolean isUsed(){return used;} + + public void use(){used = true;} + public void recover(){used = false;} +} \ No newline at end of file diff --git a/app/src/main/res/drawable-hdpi/ic_action_done.png b/app/src/main/res/drawable-hdpi/ic_action_done.png new file mode 100644 index 0000000..f33c5df Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_action_done.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_edit.png b/app/src/main/res/drawable-hdpi/ic_action_edit.png new file mode 100644 index 0000000..7801abc Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_action_edit.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_heal.png b/app/src/main/res/drawable-hdpi/ic_action_heal.png new file mode 100644 index 0000000..733fbf6 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_action_heal.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_name.png b/app/src/main/res/drawable-hdpi/ic_action_name.png new file mode 100644 index 0000000..c4a7262 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_action_name.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_save.png b/app/src/main/res/drawable-hdpi/ic_action_save.png new file mode 100644 index 0000000..578ca9c Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_action_save.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_action_undo.png b/app/src/main/res/drawable-hdpi/ic_action_undo.png new file mode 100644 index 0000000..5bced19 Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_action_undo.png differ diff --git a/app/src/main/res/drawable-hdpi/ic_launcher.png b/app/src/main/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..603f22f Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_launcher.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_done.png b/app/src/main/res/drawable-mdpi/ic_action_done.png new file mode 100644 index 0000000..bb20ba8 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_action_done.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_edit.png b/app/src/main/res/drawable-mdpi/ic_action_edit.png new file mode 100644 index 0000000..90bbb50 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_action_edit.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_heal.png b/app/src/main/res/drawable-mdpi/ic_action_heal.png new file mode 100644 index 0000000..f437950 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_action_heal.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_name.png b/app/src/main/res/drawable-mdpi/ic_action_name.png new file mode 100644 index 0000000..b091366 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_action_name.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_save.png b/app/src/main/res/drawable-mdpi/ic_action_save.png new file mode 100644 index 0000000..01aa2c9 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_action_save.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_undo.png b/app/src/main/res/drawable-mdpi/ic_action_undo.png new file mode 100644 index 0000000..f9760d5 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_action_undo.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_launcher.png b/app/src/main/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..805b6f0 Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_launcher.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_done.png b/app/src/main/res/drawable-xhdpi/ic_action_done.png new file mode 100644 index 0000000..65ea256 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_action_done.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_edit.png b/app/src/main/res/drawable-xhdpi/ic_action_edit.png new file mode 100644 index 0000000..b64a5bc Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_action_edit.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_heal.png b/app/src/main/res/drawable-xhdpi/ic_action_heal.png new file mode 100644 index 0000000..3cdb749 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_action_heal.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_name.png b/app/src/main/res/drawable-xhdpi/ic_action_name.png new file mode 100644 index 0000000..6557397 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_action_name.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_save.png b/app/src/main/res/drawable-xhdpi/ic_action_save.png new file mode 100644 index 0000000..64379c7 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_action_save.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_undo.png b/app/src/main/res/drawable-xhdpi/ic_action_undo.png new file mode 100644 index 0000000..95f62d5 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_action_undo.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_launcher.png b/app/src/main/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..5c2cdd9 Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_launcher.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_done.png b/app/src/main/res/drawable-xxhdpi/ic_action_done.png new file mode 100644 index 0000000..c329d01 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_action_done.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_edit.png b/app/src/main/res/drawable-xxhdpi/ic_action_edit.png new file mode 100644 index 0000000..3721478 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_action_edit.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_heal.png b/app/src/main/res/drawable-xxhdpi/ic_action_heal.png new file mode 100644 index 0000000..77aa7b4 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_action_heal.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_name.png b/app/src/main/res/drawable-xxhdpi/ic_action_name.png new file mode 100644 index 0000000..daded34 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_action_name.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_save.png b/app/src/main/res/drawable-xxhdpi/ic_action_save.png new file mode 100644 index 0000000..dc158d6 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_action_save.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_undo.png b/app/src/main/res/drawable-xxhdpi/ic_action_undo.png new file mode 100644 index 0000000..c1515fd Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_action_undo.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_launcher.png b/app/src/main/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..aaf0d9d Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/app/src/main/res/layout/activity_introduction.xml b/app/src/main/res/layout/activity_introduction.xml new file mode 100644 index 0000000..1cf0a9c --- /dev/null +++ b/app/src/main/res/layout/activity_introduction.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..87bb4d0 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,82 @@ + + +