Changed Toasts per Snackbars
This commit is contained in:
parent
06673bdcd0
commit
624766ad33
16 changed files with 524 additions and 446 deletions
|
@ -86,9 +86,11 @@
|
||||||
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
|
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
<orderEntry type="library" exported="" name="appcompat-v7-21.0.3" level="project" />
|
<orderEntry type="library" exported="" name="appcompat-v7-21.0.3" level="project" />
|
||||||
<orderEntry type="library" exported="" name="support-v4-21.0.3" level="project" />
|
<orderEntry type="library" exported="" name="recyclerview-v7-22.0.0" level="project" />
|
||||||
<orderEntry type="library" exported="" name="support-annotations-21.0.3" level="project" />
|
<orderEntry type="library" exported="" name="support-v4-22.0.0" level="project" />
|
||||||
|
<orderEntry type="library" exported="" name="snackbar-2.10.6" level="project" />
|
||||||
<orderEntry type="library" exported="" name="cardview-v7-21.0.3" level="project" />
|
<orderEntry type="library" exported="" name="cardview-v7-21.0.3" level="project" />
|
||||||
|
<orderEntry type="library" exported="" name="support-annotations-22.0.0" level="project" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
|
|
@ -24,4 +24,5 @@ dependencies {
|
||||||
compile fileTree(include: ['*.jar'], dir: 'libs')
|
compile fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
compile 'com.android.support:appcompat-v7:21.0.3'
|
compile 'com.android.support:appcompat-v7:21.0.3'
|
||||||
compile 'com.android.support:cardview-v7:21.0.3'
|
compile 'com.android.support:cardview-v7:21.0.3'
|
||||||
|
compile 'com.nispok:snackbar:2.10.6'
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class Introduction extends ActionBarActivity {
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
getApplicationContext(),
|
getApplicationContext(),
|
||||||
R.string.message_no_back_button_intro,
|
R.string.message_no_back_button_intro,
|
||||||
Toast.LENGTH_LONG
|
Toast.LENGTH_SHORT
|
||||||
).show();
|
).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,9 @@ import android.widget.Button;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
|
||||||
|
import com.nispok.snackbar.Snackbar;
|
||||||
|
import com.nispok.snackbar.SnackbarManager;
|
||||||
|
|
||||||
public class MainActivity extends ActionBarActivity{
|
public class MainActivity extends ActionBarActivity{
|
||||||
|
|
||||||
|
@ -94,11 +96,11 @@ public class MainActivity extends ActionBarActivity{
|
||||||
//noinspection SimplifiableIfStatement
|
//noinspection SimplifiableIfStatement
|
||||||
if (id == R.id.action_cure) {
|
if (id == R.id.action_cure) {
|
||||||
if(player.getMaxPg() <= player.getPg()){
|
if(player.getMaxPg() <= player.getPg()){
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(),
|
Snackbar
|
||||||
R.string.maxed_curative,
|
.with(getApplicationContext())
|
||||||
Toast.LENGTH_LONG
|
.text(R.string.maxed_curative)
|
||||||
).show();
|
);
|
||||||
} else {
|
} else {
|
||||||
healDialog();
|
healDialog();
|
||||||
}
|
}
|
||||||
|
@ -143,11 +145,11 @@ public class MainActivity extends ActionBarActivity{
|
||||||
// true, player.getPx() - Player.LEVEL_PX[player.getLevel() - 1]
|
// true, player.getPx() - Player.LEVEL_PX[player.getLevel() - 1]
|
||||||
// );
|
// );
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(),
|
Snackbar
|
||||||
R.string.message_no_px,
|
.with(getApplicationContext())
|
||||||
Toast.LENGTH_LONG
|
.text(R.string.message_no_px)
|
||||||
).show();
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -156,9 +158,11 @@ public class MainActivity extends ActionBarActivity{
|
||||||
return true;
|
return true;
|
||||||
} else if (id == R.id.action_time_long_rest) {
|
} else if (id == R.id.action_time_long_rest) {
|
||||||
player.rest(true);
|
player.rest(true);
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(), R.string.long_rest_done, Toast.LENGTH_LONG
|
Snackbar
|
||||||
).show();
|
.with(getApplicationContext())
|
||||||
|
.text(R.string.long_rest_done)
|
||||||
|
);
|
||||||
p.edit()
|
p.edit()
|
||||||
.putInt("pg", player.getPg())
|
.putInt("pg", player.getPg())
|
||||||
.putInt("curativeEfforts", player.getCurativeEfforts())
|
.putInt("curativeEfforts", player.getCurativeEfforts())
|
||||||
|
@ -167,9 +171,11 @@ public class MainActivity extends ActionBarActivity{
|
||||||
ceUpdate();
|
ceUpdate();
|
||||||
} else if (id == R.id.action_time_rest) {
|
} else if (id == R.id.action_time_rest) {
|
||||||
player.rest(false);
|
player.rest(false);
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(), R.string.rest_done, Toast.LENGTH_LONG
|
Snackbar
|
||||||
).show();
|
.with(getApplicationContext())
|
||||||
|
.text(R.string.rest_done)
|
||||||
|
);
|
||||||
pgUpdate();
|
pgUpdate();
|
||||||
ceUpdate();
|
ceUpdate();
|
||||||
}
|
}
|
||||||
|
@ -189,18 +195,18 @@ public class MainActivity extends ActionBarActivity{
|
||||||
public void heal(boolean usesEffort) {
|
public void heal(boolean usesEffort) {
|
||||||
int hasCured = player.recoverPg(Player.USE_CURATIVE_EFFORT, usesEffort);
|
int hasCured = player.recoverPg(Player.USE_CURATIVE_EFFORT, usesEffort);
|
||||||
if (hasCured == Player.NOT_CURED) {
|
if (hasCured == Player.NOT_CURED) {
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(),
|
Snackbar
|
||||||
R.string.no_curative_efforts_error,
|
.with(getApplicationContext())
|
||||||
Toast.LENGTH_LONG
|
.text(R.string.no_curative_efforts_error)
|
||||||
).show();
|
);
|
||||||
} else {
|
} else {
|
||||||
if(hasCured == Player.MAXED){
|
if(hasCured == Player.MAXED){
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(),
|
Snackbar
|
||||||
R.string.maxed_curative,
|
.with(getApplicationContext())
|
||||||
Toast.LENGTH_LONG
|
.text(R.string.maxed_curative)
|
||||||
).show();
|
);
|
||||||
}
|
}
|
||||||
SharedPreferences.Editor e = p.edit();
|
SharedPreferences.Editor e = p.edit();
|
||||||
e.putInt("pg", player.getPg());
|
e.putInt("pg", player.getPg());
|
||||||
|
@ -321,11 +327,11 @@ public class MainActivity extends ActionBarActivity{
|
||||||
|
|
||||||
alert.setNegativeButton(R.string.die, new DialogInterface.OnClickListener() {
|
alert.setNegativeButton(R.string.die, new DialogInterface.OnClickListener() {
|
||||||
public void onClick(DialogInterface dialog, int whichButton) {
|
public void onClick(DialogInterface dialog, int whichButton) {
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(),
|
Snackbar
|
||||||
R.string.message_death,
|
.with(getApplicationContext())
|
||||||
Toast.LENGTH_LONG
|
.text(R.string.message_death)
|
||||||
).show();
|
);
|
||||||
p.edit().clear().apply();
|
p.edit().clear().apply();
|
||||||
restoreData();
|
restoreData();
|
||||||
}
|
}
|
||||||
|
@ -338,11 +344,11 @@ public class MainActivity extends ActionBarActivity{
|
||||||
pgBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);
|
pgBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);
|
||||||
negPgBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);
|
negPgBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);
|
||||||
if(lastState != Player.SAME) {
|
if(lastState != Player.SAME) {
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(),
|
Snackbar
|
||||||
R.string.state_changed_debilitado,
|
.with(getApplicationContext())
|
||||||
Toast.LENGTH_LONG
|
.text(R.string.state_changed_debilitado)
|
||||||
).show();
|
);
|
||||||
}
|
}
|
||||||
} else if (status == Player.MALHERIDO) {
|
} else if (status == Player.MALHERIDO) {
|
||||||
pgCurrent.setBackgroundColor(android.R.drawable.btn_default);
|
pgCurrent.setBackgroundColor(android.R.drawable.btn_default);
|
||||||
|
@ -350,11 +356,11 @@ public class MainActivity extends ActionBarActivity{
|
||||||
pgBar.getProgressDrawable().setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_IN);
|
pgBar.getProgressDrawable().setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_IN);
|
||||||
negPgBar.getProgressDrawable().setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_IN);
|
negPgBar.getProgressDrawable().setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_IN);
|
||||||
if(lastState != Player.SAME) {
|
if(lastState != Player.SAME) {
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(),
|
Snackbar
|
||||||
R.string.state_changed_malherido,
|
.with(getApplicationContext())
|
||||||
Toast.LENGTH_LONG
|
.text(R.string.state_changed_malherido)
|
||||||
).show();
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pgCurrent.setTextColor(Color.GREEN);
|
pgCurrent.setTextColor(Color.GREEN);
|
||||||
|
@ -499,11 +505,11 @@ public class MainActivity extends ActionBarActivity{
|
||||||
message = getString(R.string.action_undo_current_pg);
|
message = getString(R.string.action_undo_current_pg);
|
||||||
}
|
}
|
||||||
if (!message.isEmpty()) {
|
if (!message.isEmpty()) {
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(),
|
Snackbar
|
||||||
message,
|
.with(getApplicationContext())
|
||||||
Toast.LENGTH_LONG
|
.text(message)
|
||||||
).show();
|
);
|
||||||
}
|
}
|
||||||
pgUpdate();
|
pgUpdate();
|
||||||
undo = false;
|
undo = false;
|
||||||
|
@ -525,11 +531,11 @@ public class MainActivity extends ActionBarActivity{
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
if (input.getText().toString().isEmpty()) {
|
if (input.getText().toString().isEmpty()) {
|
||||||
Toast.makeText(
|
SnackbarManager.show(
|
||||||
getApplicationContext(),
|
Snackbar
|
||||||
R.string.empty_field,
|
.with(getApplicationContext())
|
||||||
Toast.LENGTH_LONG
|
.text(R.string.empty_field)
|
||||||
).show();
|
);
|
||||||
pgDialog();
|
pgDialog();
|
||||||
} else {
|
} else {
|
||||||
player.setMaxPg(Integer.parseInt(input.getText().toString()));
|
player.setMaxPg(Integer.parseInt(input.getText().toString()));
|
||||||
|
|
BIN
app/src/main/res/drawable-hdpi/ic_action_settings.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_action_settings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 757 B |
BIN
app/src/main/res/drawable-mdpi/ic_action_settings.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_action_settings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 492 B |
BIN
app/src/main/res/drawable-xhdpi/ic_action_settings.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_action_settings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_action_settings.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_action_settings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
|
@ -47,13 +47,15 @@
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:id="@+id/classSpinner"/>
|
android:id="@+id/classSpinner"
|
||||||
|
android:spinnerMode="dropdown" />
|
||||||
|
|
||||||
<Spinner
|
<Spinner
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:id="@+id/raceSpinner"/>
|
android:id="@+id/raceSpinner"
|
||||||
|
android:spinnerMode="dialog" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<GridLayout
|
<GridLayout
|
||||||
|
@ -141,4 +143,24 @@
|
||||||
android:hint="@string/CAR"/>
|
android:hint="@string/CAR"/>
|
||||||
</GridLayout>
|
</GridLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:layout_below="@+id/thirdLayout"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignParentStart="true">
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/new_attack"
|
||||||
|
android:id="@+id/new_attack_button" />
|
||||||
|
|
||||||
|
<ListView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:id="@+id/listView" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
|
@ -1,256 +1,358 @@
|
||||||
<ScrollView
|
<FrameLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
android:orientation="vertical"
|
||||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
||||||
android:paddingTop="@dimen/activity_vertical_margin"
|
android:layout_marginTop="@dimen/activity_vertical_margin"
|
||||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
||||||
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
||||||
tools:context=".MainActivity">
|
tools:context=".MainActivity">
|
||||||
<LinearLayout
|
<ScrollView
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent">
|
||||||
android:orientation="vertical">
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
||||||
android:id="@+id/pgCurrent"
|
|
||||||
android:textSize="40sp"
|
|
||||||
android:onClick="damage" />
|
|
||||||
|
|
||||||
<HorizontalScrollView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:onClick="selectPlayer"
|
|
||||||
android:id="@+id/scroll1">
|
|
||||||
<RelativeLayout
|
|
||||||
android:orientation="vertical"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/basicInfoContainer">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:text="@string/adventurer_name"
|
|
||||||
android:id="@+id/nameText"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:layout_alignParentStart="true" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:text="@string/race_name"
|
|
||||||
android:id="@+id/raceText"
|
|
||||||
android:layout_alignTop="@+id/classText"
|
|
||||||
android:layout_toRightOf="@+id/classText"
|
|
||||||
android:layout_toEndOf="@+id/classText"
|
|
||||||
android:layout_marginLeft="10dp" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:text="@string/class_name"
|
|
||||||
android:id="@+id/classText"
|
|
||||||
android:layout_below="@+id/nameText"
|
|
||||||
android:layout_alignParentStart="false"
|
|
||||||
android:layout_alignParentLeft="true" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:text="@string/level"
|
|
||||||
android:id="@+id/lvlText"
|
|
||||||
android:layout_alignParentBottom="false"
|
|
||||||
android:layout_toRightOf="@+id/raceText"
|
|
||||||
android:layout_toEndOf="@+id/raceText"
|
|
||||||
android:layout_alignTop="@+id/raceText"
|
|
||||||
android:layout_marginLeft="10dp" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:id="@+id/lvl"
|
|
||||||
android:layout_alignParentBottom="false"
|
|
||||||
android:layout_toRightOf="@+id/lvlText"
|
|
||||||
android:layout_toEndOf="@+id/lvlText"
|
|
||||||
android:layout_alignTop="@+id/lvlText"
|
|
||||||
android:layout_marginLeft="10dp" />
|
|
||||||
</RelativeLayout>
|
|
||||||
</HorizontalScrollView>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/titlePgBar"
|
|
||||||
android:text="@string/pg"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:drawableBottom="?android:attr/listChoiceBackgroundIndicator"
|
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textColor="?android:textColorSecondary"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:paddingLeft="8dip"
|
|
||||||
android:paddingRight="8dip"
|
|
||||||
android:layout_weight="1"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="right"
|
|
||||||
android:id="@+id/currentPg"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:layout_weight="1"/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<ProgressBar
|
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/negPgBar"
|
|
||||||
android:layout_weight="2"
|
|
||||||
android:rotation="180"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:layout_marginRight="5dp"
|
|
||||||
android:layout_marginLeft="5dp"
|
|
||||||
android:text="0"/>
|
|
||||||
<ProgressBar
|
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/pgBar"
|
|
||||||
android:layout_weight="1"/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/titleCurativeEffortsBar"
|
|
||||||
android:text="@string/curative_efforts"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:drawableBottom="?android:attr/listChoiceBackgroundIndicator"
|
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textColor="?android:textColorSecondary"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:paddingLeft="8dip"
|
|
||||||
android:paddingRight="8dip"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:gravity="right"
|
|
||||||
android:id="@+id/currentCurativeEfforts"
|
|
||||||
android:textAllCaps="true"/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<ProgressBar
|
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/curativeEffortsBar"/>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/titleXpBar"
|
|
||||||
android:text="@string/px"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:drawableBottom="?android:attr/listChoiceBackgroundIndicator"
|
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textColor="?android:textColorSecondary"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:paddingLeft="8dip"
|
|
||||||
android:paddingRight="8dip"
|
|
||||||
android:layout_weight="1"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="right"
|
|
||||||
android:id="@+id/currentXp"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:layout_weight="1"/>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<ProgressBar
|
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/xpBar"/>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:id="@+id/attackContainer"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="10dp"
|
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
<LinearLayout
|
||||||
<TextView
|
|
||||||
android:id="@+id/titleAttack"
|
|
||||||
android:text="@string/attack"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:drawableBottom="?android:attr/listChoiceBackgroundIndicator"
|
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textColor="?android:textColorSecondary"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:paddingLeft="8dip"
|
|
||||||
android:paddingRight="8dip"/>
|
|
||||||
<HorizontalScrollView
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content"
|
||||||
<GridLayout
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<Button
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/attackGrid"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:columnCount="3"
|
android:id="@+id/pgCurrent"
|
||||||
|
android:textSize="40sp"
|
||||||
|
android:onClick="damage" />
|
||||||
|
|
||||||
|
<HorizontalScrollView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:onClick="selectPlayer"
|
||||||
|
android:id="@+id/scroll1">
|
||||||
|
<RelativeLayout
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/basicInfoContainer">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:text="@string/adventurer_name"
|
||||||
|
android:id="@+id/nameText"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignParentStart="true" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:text="@string/race_name"
|
||||||
|
android:id="@+id/raceText"
|
||||||
|
android:layout_alignTop="@+id/classText"
|
||||||
|
android:layout_toRightOf="@+id/classText"
|
||||||
|
android:layout_toEndOf="@+id/classText"
|
||||||
|
android:layout_marginLeft="10dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:text="@string/class_name"
|
||||||
|
android:id="@+id/classText"
|
||||||
|
android:layout_below="@+id/nameText"
|
||||||
|
android:layout_alignParentStart="false"
|
||||||
|
android:layout_alignParentLeft="true" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:text="@string/level"
|
||||||
|
android:id="@+id/lvlText"
|
||||||
|
android:layout_alignParentBottom="false"
|
||||||
|
android:layout_toRightOf="@+id/raceText"
|
||||||
|
android:layout_toEndOf="@+id/raceText"
|
||||||
|
android:layout_alignTop="@+id/raceText"
|
||||||
|
android:layout_marginLeft="10dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:id="@+id/lvl"
|
||||||
|
android:layout_alignParentBottom="false"
|
||||||
|
android:layout_toRightOf="@+id/lvlText"
|
||||||
|
android:layout_toEndOf="@+id/lvlText"
|
||||||
|
android:layout_alignTop="@+id/lvlText"
|
||||||
|
android:layout_marginLeft="10dp" />
|
||||||
|
</RelativeLayout>
|
||||||
|
</HorizontalScrollView>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/titlePgBar"
|
||||||
|
android:text="@string/pg"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:drawableBottom="?android:attr/listChoiceBackgroundIndicator"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="?android:textColorSecondary"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:paddingLeft="8dip"
|
||||||
|
android:paddingRight="8dip"
|
||||||
|
android:layout_weight="1"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="right"
|
||||||
|
android:id="@+id/currentPg"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:layout_weight="1"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ProgressBar
|
||||||
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/negPgBar"
|
||||||
|
android:layout_weight="2"
|
||||||
|
android:rotation="180"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:layout_marginRight="5dp"
|
||||||
|
android:layout_marginLeft="5dp"
|
||||||
|
android:text="0"/>
|
||||||
|
<ProgressBar
|
||||||
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/pgBar"
|
||||||
|
android:layout_weight="1"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/titleCurativeEffortsBar"
|
||||||
|
android:text="@string/curative_efforts"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:drawableBottom="?android:attr/listChoiceBackgroundIndicator"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="?android:textColorSecondary"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:paddingLeft="8dip"
|
||||||
|
android:paddingRight="8dip"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:gravity="right"
|
||||||
|
android:id="@+id/currentCurativeEfforts"
|
||||||
|
android:textAllCaps="true"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/curativeEffortsBar"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/titleXpBar"
|
||||||
|
android:text="@string/px"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:drawableBottom="?android:attr/listChoiceBackgroundIndicator"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="?android:textColorSecondary"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:paddingLeft="8dip"
|
||||||
|
android:paddingRight="8dip"
|
||||||
|
android:layout_weight="1"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="right"
|
||||||
|
android:id="@+id/currentXp"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:layout_weight="1"/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/xpBar"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/attackContainer"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/titleAttack"
|
||||||
|
android:text="@string/attack"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:drawableBottom="?android:attr/listChoiceBackgroundIndicator"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="?android:textColorSecondary"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingLeft="8dip"
|
||||||
|
android:paddingRight="8dip"/>
|
||||||
|
<HorizontalScrollView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
<GridLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/attackGrid"
|
||||||
|
android:columnCount="3"
|
||||||
|
android:rowCount="2">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:typeface="monospace"
|
||||||
|
android:ems="4"
|
||||||
|
android:layout_row="0"
|
||||||
|
android:layout_column="0"
|
||||||
|
android:id="@+id/FUE"
|
||||||
|
android:hint="@string/FUE" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:typeface="monospace"
|
||||||
|
android:ems="4"
|
||||||
|
android:layout_row="1"
|
||||||
|
android:layout_column="0"
|
||||||
|
android:id="@+id/CON"
|
||||||
|
android:hint="@string/CON" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:typeface="monospace"
|
||||||
|
android:ems="4"
|
||||||
|
android:layout_row="0"
|
||||||
|
android:layout_column="1"
|
||||||
|
android:id="@+id/DES"
|
||||||
|
android:hint="@string/DES" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:typeface="monospace"
|
||||||
|
android:ems="4"
|
||||||
|
android:layout_row="1"
|
||||||
|
android:layout_column="1"
|
||||||
|
android:id="@+id/INT"
|
||||||
|
android:hint="@string/INT" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:typeface="monospace"
|
||||||
|
android:ems="4"
|
||||||
|
android:layout_row="0"
|
||||||
|
android:layout_column="2"
|
||||||
|
android:id="@+id/SAB"
|
||||||
|
android:hint="@string/SAB" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:typeface="monospace"
|
||||||
|
android:ems="4"
|
||||||
|
android:layout_row="1"
|
||||||
|
android:layout_column="2"
|
||||||
|
android:id="@+id/CAR"
|
||||||
|
android:hint="@string/CAR" />
|
||||||
|
</GridLayout>
|
||||||
|
</HorizontalScrollView>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/defenseContainer"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/titleDefense"
|
||||||
|
android:text="@string/defense"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:textColor="?android:textColorSecondary"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingLeft="8dip"
|
||||||
|
android:paddingRight="8dip"/>
|
||||||
|
|
||||||
|
<GridLayout
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:id="@+id/defenseGrid"
|
||||||
|
android:columnCount="2"
|
||||||
android:rowCount="2">
|
android:rowCount="2">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -258,143 +360,46 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
android:typeface="monospace"
|
android:typeface="monospace"
|
||||||
android:ems="4"
|
android:ems="5"
|
||||||
android:layout_row="0"
|
android:layout_row="0"
|
||||||
android:layout_column="0"
|
android:layout_column="0"
|
||||||
android:id="@+id/FUE"
|
android:id="@+id/CA"
|
||||||
android:hint="@string/FUE" />
|
android:hint="@string/CA" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
android:typeface="monospace"
|
android:typeface="monospace"
|
||||||
android:ems="4"
|
android:ems="5"
|
||||||
|
android:layout_row="0"
|
||||||
|
android:layout_column="1"
|
||||||
|
android:id="@+id/FORT"
|
||||||
|
android:hint="@string/FORT" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:typeface="monospace"
|
||||||
|
android:ems="5"
|
||||||
android:layout_row="1"
|
android:layout_row="1"
|
||||||
android:layout_column="0"
|
android:layout_column="0"
|
||||||
android:id="@+id/CON"
|
android:id="@+id/REF"
|
||||||
android:hint="@string/CON" />
|
android:hint="@string/REF" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
android:typeface="monospace"
|
android:typeface="monospace"
|
||||||
android:ems="4"
|
android:ems="5"
|
||||||
android:layout_row="0"
|
|
||||||
android:layout_column="1"
|
|
||||||
android:id="@+id/DES"
|
|
||||||
android:hint="@string/DES" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:typeface="monospace"
|
|
||||||
android:ems="4"
|
|
||||||
android:layout_row="1"
|
android:layout_row="1"
|
||||||
android:layout_column="1"
|
android:layout_column="1"
|
||||||
android:id="@+id/INT"
|
android:id="@+id/VOL"
|
||||||
android:hint="@string/INT" />
|
android:hint="@string/VOL" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:typeface="monospace"
|
|
||||||
android:ems="4"
|
|
||||||
android:layout_row="0"
|
|
||||||
android:layout_column="2"
|
|
||||||
android:id="@+id/SAB"
|
|
||||||
android:hint="@string/SAB" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:typeface="monospace"
|
|
||||||
android:ems="4"
|
|
||||||
android:layout_row="1"
|
|
||||||
android:layout_column="2"
|
|
||||||
android:id="@+id/CAR"
|
|
||||||
android:hint="@string/CAR" />
|
|
||||||
</GridLayout>
|
</GridLayout>
|
||||||
</HorizontalScrollView>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
<LinearLayout
|
</FrameLayout>
|
||||||
android:id="@+id/defenseContainer"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="10dp"
|
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/titleDefense"
|
|
||||||
android:text="@string/defense"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:layout_marginBottom="5dp"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textStyle="bold"
|
|
||||||
android:textColor="?android:textColorSecondary"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:paddingLeft="8dip"
|
|
||||||
android:paddingRight="8dip"/>
|
|
||||||
|
|
||||||
<GridLayout
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/defenseGrid"
|
|
||||||
android:columnCount="2"
|
|
||||||
android:rowCount="2">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:typeface="monospace"
|
|
||||||
android:ems="5"
|
|
||||||
android:layout_row="0"
|
|
||||||
android:layout_column="0"
|
|
||||||
android:id="@+id/CA"
|
|
||||||
android:hint="@string/CA" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:typeface="monospace"
|
|
||||||
android:ems="5"
|
|
||||||
android:layout_row="0"
|
|
||||||
android:layout_column="1"
|
|
||||||
android:id="@+id/FORT"
|
|
||||||
android:hint="@string/FORT" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:typeface="monospace"
|
|
||||||
android:ems="5"
|
|
||||||
android:layout_row="1"
|
|
||||||
android:layout_column="0"
|
|
||||||
android:id="@+id/REF"
|
|
||||||
android:hint="@string/REF" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
||||||
android:typeface="monospace"
|
|
||||||
android:ems="5"
|
|
||||||
android:layout_row="1"
|
|
||||||
android:layout_column="1"
|
|
||||||
android:id="@+id/VOL"
|
|
||||||
android:hint="@string/VOL" />
|
|
||||||
</GridLayout>
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
</ScrollView>
|
|
|
@ -1,4 +1,4 @@
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
@ -9,26 +9,45 @@
|
||||||
tools:context="com.kauron.dungeonmanager.Welcome"
|
tools:context="com.kauron.dungeonmanager.Welcome"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
||||||
android:text="@string/new_character_warning"
|
|
||||||
android:id="@+id/newText" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/new_character"
|
|
||||||
android:id="@+id/newCharacter"
|
|
||||||
android:onClick="onNewClick" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/load_character"
|
android:text="@string/load_character"
|
||||||
android:id="@+id/loadCharacter"
|
android:id="@+id/loadCharacter"
|
||||||
android:onClick="onLoadClick" />
|
android:onClick="onLoadClick"
|
||||||
|
android:layout_below="@+id/relativeLayout"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignParentStart="true" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:elevation="3dp"
|
||||||
|
android:id="@+id/relativeLayout"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_alignParentEnd="true">
|
||||||
|
|
||||||
</LinearLayout>
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:text="Medium Text"
|
||||||
|
android:id="@+id/textView"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_alignParentStart="true" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/new_character"
|
||||||
|
android:id="@+id/newCharacter"
|
||||||
|
android:onClick="onNewClick"
|
||||||
|
android:layout_below="@+id/textView"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_alignParentEnd="true" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
|
@ -2,6 +2,13 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
tools:context="com.kauron.dungeonmanager.Welcome">
|
tools:context="com.kauron.dungeonmanager.Welcome">
|
||||||
<item android:id="@+id/action_settings" android:title="@string/action_settings"
|
<item
|
||||||
android:orderInCategory="100" app:showAsAction="never" />
|
android:id="@+id/action_settings"
|
||||||
|
android:title="@string/action_settings"
|
||||||
|
android:orderInCategory="100"
|
||||||
|
app:showAsAction="ifRoom"
|
||||||
|
android:icon="@drawable/ic_action_settings"
|
||||||
|
android:alpha="10"
|
||||||
|
android:enabled="false"/>
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -75,4 +75,5 @@
|
||||||
<string name="title_activity_welcome">Bienvenido</string>
|
<string name="title_activity_welcome">Bienvenido</string>
|
||||||
<string name="load_character">Cargar personaje</string>
|
<string name="load_character">Cargar personaje</string>
|
||||||
<string name="new_character_warning">Esto borrará al personaje anterior</string>
|
<string name="new_character_warning">Esto borrará al personaje anterior</string>
|
||||||
|
<string name="new_attack">Nuevo ataque</string>
|
||||||
</resources>
|
</resources>
|
|
@ -1,5 +1,13 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="primary">#5D4037</color>
|
<color name="primary">#795548</color>
|
||||||
<color name="primaryDark">#3E2723</color>
|
<color name="primary_dark">#5D4037</color>
|
||||||
|
<color name="primary_light">#D7CCC8</color>
|
||||||
|
<color name="accent">#FF5252</color>
|
||||||
|
<color name="primary_text">#212121</color>
|
||||||
|
<color name="secondary_text">#727272</color>
|
||||||
|
<color name="icons">#FFFFFF</color>
|
||||||
|
<color name="divider">#B6B6B6</color>
|
||||||
|
<!--<color name="primary">#5D4037</color>-->
|
||||||
|
<!--<color name="primaryDark">#3E2723</color>-->
|
||||||
</resources>
|
</resources>
|
|
@ -7,10 +7,10 @@
|
||||||
<string name="action_undo">Undo</string>
|
<string name="action_undo">Undo</string>
|
||||||
<string name="pg">PG</string>
|
<string name="pg">PG</string>
|
||||||
<string name="die">Die</string>
|
<string name="die">Die</string>
|
||||||
<string name="CA">CA</string>
|
<string name="CA">AC</string>
|
||||||
<string name="FORT">FORT</string>
|
<string name="FORT">FORT</string>
|
||||||
<string name="REF">REF</string>
|
<string name="REF">REF</string>
|
||||||
<string name="VOL">VOL</string>
|
<string name="VOL">WILL</string>
|
||||||
<string name="defense">Defense</string>
|
<string name="defense">Defense</string>
|
||||||
<string name="curative_efforts">Curative efforts</string>
|
<string name="curative_efforts">Curative efforts</string>
|
||||||
<string name="load_text">Load %1$s</string>
|
<string name="load_text">Load %1$s</string>
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<string name="action_time_encounter_end">Encounter ended</string>
|
<string name="action_time_encounter_end">Encounter ended</string>
|
||||||
<string name="adventurer_name">Adventurer name</string>
|
<string name="adventurer_name">Adventurer name</string>
|
||||||
<string name="state_changed_malherido">You have less than half of your maximum health</string>
|
<string name="state_changed_malherido">You have less than half of your maximum health</string>
|
||||||
<string name="new_energies_message">Who is using a curative effort?</string>
|
<string name="new_energies_message">Who is using a surge?</string>
|
||||||
<string name="class_name">Class</string>
|
<string name="class_name">Class</string>
|
||||||
<string name="race_name">Race</string>
|
<string name="race_name">Race</string>
|
||||||
<string name="state_changed_debilitado">You have fainted. You can\'t do anything!</string>
|
<string name="state_changed_debilitado">You have fainted. You can\'t do anything!</string>
|
||||||
|
@ -42,16 +42,16 @@
|
||||||
<string name="edit_PG_Title">Suffer damage</string>
|
<string name="edit_PG_Title">Suffer damage</string>
|
||||||
<string name="message_death">You have died</string>
|
<string name="message_death">You have died</string>
|
||||||
<string name="new_energies1">You have</string>
|
<string name="new_energies1">You have</string>
|
||||||
<string name="new_energies2">curative efforts</string>
|
<string name="new_energies2">surges</string>
|
||||||
<string name="new_energies">New energies</string>
|
<string name="new_energies">Surge</string>
|
||||||
<string name="title_activity_introduction">Edit character</string>
|
<string name="title_activity_introduction">Edit character</string>
|
||||||
<string name="action_finish">Save</string>
|
<string name="action_finish">Save</string>
|
||||||
|
|
||||||
<string name="level">Level</string>
|
<string name="level">Level</string>
|
||||||
<string name="max_curative_efforts">Max curative efforts</string>
|
<string name="max_curative_efforts">Max surges</string>
|
||||||
<string name="max_pg">Max PG</string>
|
<string name="max_pg">Max PG</string>
|
||||||
<string name="missing_info_error">You need to fill all the information</string>
|
<string name="missing_info_error">You need to fill all the information</string>
|
||||||
<string name="no_curative_efforts_error">You don\'t have any curative efforts left!</string>
|
<string name="no_curative_efforts_error">You don\'t have any surges left!</string>
|
||||||
<string name="maxed_curative">You have reached your maximum level of PG</string>
|
<string name="maxed_curative">You have reached your maximum level of PG</string>
|
||||||
<string name="suffer_damage">Input the damage suffered</string>
|
<string name="suffer_damage">Input the damage suffered</string>
|
||||||
<string name="suffer_damage_hint">PG lost</string>
|
<string name="suffer_damage_hint">PG lost</string>
|
||||||
|
@ -81,4 +81,5 @@
|
||||||
<string name="new_character">New character</string>
|
<string name="new_character">New character</string>
|
||||||
<string name="load_character">Load character</string>
|
<string name="load_character">Load character</string>
|
||||||
<string name="new_character_warning">This will erase any previously existing data saved</string>
|
<string name="new_character_warning">This will erase any previously existing data saved</string>
|
||||||
|
<string name="new_attack">New attack</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -3,8 +3,14 @@
|
||||||
<!-- Base application theme. -->
|
<!-- Base application theme. -->
|
||||||
<style name="AppTheme" parent="Base.Theme.AppCompat">
|
<style name="AppTheme" parent="Base.Theme.AppCompat">
|
||||||
<!-- Customize your theme here. -->
|
<!-- Customize your theme here. -->
|
||||||
<item name="colorPrimaryDark">@color/primaryDark</item>
|
<item name="colorPrimaryDark">@color/primary_dark</item>
|
||||||
<item name="colorPrimary">@color/primary</item>
|
<item name="colorPrimary">@color/primary</item>
|
||||||
|
<!--<item name="colorAccent">@color/accent</item>-->
|
||||||
|
<!--<item name="colorprimaryLight">@color/primary_light</item>-->
|
||||||
|
<!--<item name="colorPrimaryText">@color/primary_text</item>-->
|
||||||
|
<!--<item name="colorSecondaryText">@color/secondary_text</item>-->
|
||||||
|
<!--<item name="colorIcons">@color/icons</item>-->
|
||||||
|
<!--<item name="colorDivider">@color/divider</item>-->
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Reference in a new issue