1
0
Fork 0

Functioning welcome activity

This commit is contained in:
Carlos Galindo 2015-03-04 11:32:14 +01:00
commit 0670be555f
6 changed files with 56 additions and 74 deletions

View file

@ -7,12 +7,12 @@
tools:context="com.kauron.dungeonmanager.Welcome"
android:orientation="vertical">
<Button
android:layout_width="match_parent"
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Load character"
android:id="@+id/loadCharacter"
android:onClick="onLoadClick" />
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/new_character_warning"
android:id="@+id/newText" />
<Button
android:layout_width="fill_parent"
@ -21,4 +21,12 @@
android:id="@+id/newCharacter"
android:onClick="onNewClick" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/load_character"
android:id="@+id/loadCharacter"
android:onClick="onLoadClick"
android:layout_marginTop="10dp" />
</LinearLayout>

View file

@ -1,6 +1,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity">
<!--TODO: create fancy responsive toasts-->
<item
android:id="@+id/action_undo"
android:title="@string/action_undo"
@ -37,24 +38,6 @@
android:orderInCategory="2"
app:showAsAction="never"/>
</menu>
</item>
<item
android:id="@+id/action_edit_basics"
android:title="@string/action_edit_basics"
android:orderInCategory="20"
app:showAsAction="never"
android:icon="@drawable/ic_action_edit"/>
<item
android:id="@+id/action_download"
android:title="@string/action_download"
android:orderInCategory="25"
app:showAsAction="never"/>
<item
android:id="@+id/action_reset"
android:title="@string/action_reset"
android:orderInCategory="30"
app:showAsAction="never" />
</menu>

View file

@ -66,7 +66,13 @@
<string name="dialog_resolve_max_pg_title">Atención</string>
<string name="empty_field">Por favor, escribe algo</string>
<string name="action_download">Actualizar app</string>
<string name="message_no_back_button_intro">No puedes volver atrás. Para crear tu personaje pulsa el botón de guardar</string>
<string name="message_no_back_button_intro">Tu personaje no se ha guardado</string>
<string name="long_rest_done">Has descansado y restaurado todos tus poderes</string>
<string name="rest_done">Tus poderes de encuentro han sido restaurados</string>
<string name="action_settings">Ajustes</string>
<string name="load_text">Cargar %1$s</string>
<string name="new_character">Nuevo personaje</string>
<string name="title_activity_welcome">Bienvenido</string>
<string name="load_character">Cargar personaje</string>
<string name="new_character_warning">Esto borrará al personaje anterior</string>
</resources>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name" translatable="false">DungeonManager</string>
<string name="app_name" translatable="false">Dungeon Manager</string>
<string name="attack">Attack</string>
<string name="action_cure">Cure</string>
<string name="action_undo">Undo</string>
@ -13,6 +13,7 @@
<string name="VOL">VOL</string>
<string name="defense">Defense</string>
<string name="curative_efforts">Curative efforts</string>
<string name="load_text">Load %1$s</string>
<string name="rest_done">Your encounter powers have been restored</string>
<string name="long_rest_done">All your stats have been restored</string>
<string name="action_reset">Reset</string>
@ -73,10 +74,11 @@
<string name="dialog_resolve_max_pg_title">Alert</string>
<string name="dialog_resolve_max_pg_message">Couldn\'t compute your max PG based on your level</string>
<string name="action_download">Update app</string>
<string name="message_no_back_button_intro">You can\'t go back. Fill the information and press the save button.</string>
<string name="message_no_back_button_intro">Your information hasn\'t been saved</string>
<string name="title_activity_welcome">Welcome</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="new_character">New character</string>
<string name="load_character">Load character</string>
<string name="new_character_warning">This will erase any previously existing data saved</string>
</resources>