add some strings and formatting
This commit is contained in:
parent
9028e7a5f3
commit
ea7b545c66
|
@ -90,7 +90,7 @@ public class MainActivity extends SimpleActivity implements MyCanvas.PathsChange
|
||||||
mMyCanvas.clearCanvas();
|
mMyCanvas.clearCanvas();
|
||||||
return true;
|
return true;
|
||||||
case R.id.change_background:
|
case R.id.change_background:
|
||||||
int oldColor = ((ColorDrawable)mMyCanvas.getBackground()).getColor();
|
int oldColor = ((ColorDrawable) mMyCanvas.getBackground()).getColor();
|
||||||
AmbilWarnaDialog dialog = new AmbilWarnaDialog(this, oldColor,
|
AmbilWarnaDialog dialog = new AmbilWarnaDialog(this, oldColor,
|
||||||
new AmbilWarnaDialog.OnAmbilWarnaListener() {
|
new AmbilWarnaDialog.OnAmbilWarnaListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -100,9 +100,9 @@ public class MainActivity extends SimpleActivity implements MyCanvas.PathsChange
|
||||||
@Override
|
@Override
|
||||||
public void onOk(AmbilWarnaDialog dialog, int pickedColor) {
|
public void onOk(AmbilWarnaDialog dialog, int pickedColor) {
|
||||||
if (Utils.shouldUseWhite(pickedColor)) {
|
if (Utils.shouldUseWhite(pickedColor)) {
|
||||||
((ImageView)mUndoBtn).setImageResource(R.mipmap.undo_white);
|
((ImageView) mUndoBtn).setImageResource(R.mipmap.undo_white);
|
||||||
} else {
|
} else {
|
||||||
((ImageView)mUndoBtn).setImageResource(R.mipmap.undo_black);
|
((ImageView) mUndoBtn).setImageResource(R.mipmap.undo_black);
|
||||||
}
|
}
|
||||||
mMyCanvas.setBackgroundColor(pickedColor);
|
mMyCanvas.setBackgroundColor(pickedColor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<string name="settings">Einstellungen</string>
|
<string name="settings">Einstellungen</string>
|
||||||
<string name="dark_theme">Dunkles Design</string>
|
<string name="dark_theme">Dunkles Design</string>
|
||||||
<string name="clear">Leeren</string>
|
<string name="clear">Leeren</string>
|
||||||
|
<string name="change_background">Change background</string>
|
||||||
|
|
||||||
<!-- About -->
|
<!-- About -->
|
||||||
<string name="about">Über</string>
|
<string name="about">Über</string>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<string name="settings">Impostazioni</string>
|
<string name="settings">Impostazioni</string>
|
||||||
<string name="dark_theme">Tema scuro</string>
|
<string name="dark_theme">Tema scuro</string>
|
||||||
<string name="clear">Clear</string>
|
<string name="clear">Clear</string>
|
||||||
|
<string name="change_background">Change background</string>
|
||||||
|
|
||||||
<!-- About -->
|
<!-- About -->
|
||||||
<string name="about">Informazioni</string>
|
<string name="about">Informazioni</string>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<string name="settings">設定</string>
|
<string name="settings">設定</string>
|
||||||
<string name="dark_theme">ダークテーマ</string>
|
<string name="dark_theme">ダークテーマ</string>
|
||||||
<string name="clear">クリア</string>
|
<string name="clear">クリア</string>
|
||||||
|
<string name="change_background">Change background</string>
|
||||||
|
|
||||||
<!-- About -->
|
<!-- About -->
|
||||||
<string name="about">アプリについて</string>
|
<string name="about">アプリについて</string>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<string name="settings">Definições</string>
|
<string name="settings">Definições</string>
|
||||||
<string name="dark_theme">Tema escuro</string>
|
<string name="dark_theme">Tema escuro</string>
|
||||||
<string name="clear">Limpar</string>
|
<string name="clear">Limpar</string>
|
||||||
|
<string name="change_background">Change background</string>
|
||||||
|
|
||||||
<!-- About -->
|
<!-- About -->
|
||||||
<string name="about">Acerca</string>
|
<string name="about">Acerca</string>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<string name="settings">Inställningar</string>
|
<string name="settings">Inställningar</string>
|
||||||
<string name="dark_theme">Mörkt tema</string>
|
<string name="dark_theme">Mörkt tema</string>
|
||||||
<string name="clear">Clear</string>
|
<string name="clear">Clear</string>
|
||||||
|
<string name="change_background">Change background</string>
|
||||||
|
|
||||||
<!-- About -->
|
<!-- About -->
|
||||||
<string name="about">Om</string>
|
<string name="about">Om</string>
|
||||||
|
|
Loading…
Reference in New Issue