add some strings and formatting

This commit is contained in:
tibbi 2016-12-04 19:31:01 +01:00
parent 9028e7a5f3
commit ea7b545c66
6 changed files with 8 additions and 3 deletions

View File

@ -90,7 +90,7 @@ public class MainActivity extends SimpleActivity implements MyCanvas.PathsChange
mMyCanvas.clearCanvas();
return true;
case R.id.change_background:
int oldColor = ((ColorDrawable)mMyCanvas.getBackground()).getColor();
int oldColor = ((ColorDrawable) mMyCanvas.getBackground()).getColor();
AmbilWarnaDialog dialog = new AmbilWarnaDialog(this, oldColor,
new AmbilWarnaDialog.OnAmbilWarnaListener() {
@Override
@ -100,9 +100,9 @@ public class MainActivity extends SimpleActivity implements MyCanvas.PathsChange
@Override
public void onOk(AmbilWarnaDialog dialog, int pickedColor) {
if (Utils.shouldUseWhite(pickedColor)) {
((ImageView)mUndoBtn).setImageResource(R.mipmap.undo_white);
((ImageView) mUndoBtn).setImageResource(R.mipmap.undo_white);
} else {
((ImageView)mUndoBtn).setImageResource(R.mipmap.undo_black);
((ImageView) mUndoBtn).setImageResource(R.mipmap.undo_black);
}
mMyCanvas.setBackgroundColor(pickedColor);
}

View File

@ -17,6 +17,7 @@
<string name="settings">Einstellungen</string>
<string name="dark_theme">Dunkles Design</string>
<string name="clear">Leeren</string>
<string name="change_background">Change background</string>
<!-- About -->
<string name="about">Über</string>

View File

@ -17,6 +17,7 @@
<string name="settings">Impostazioni</string>
<string name="dark_theme">Tema scuro</string>
<string name="clear">Clear</string>
<string name="change_background">Change background</string>
<!-- About -->
<string name="about">Informazioni</string>

View File

@ -17,6 +17,7 @@
<string name="settings">設定</string>
<string name="dark_theme">ダークテーマ</string>
<string name="clear">クリア</string>
<string name="change_background">Change background</string>
<!-- About -->
<string name="about">アプリについて</string>

View File

@ -17,6 +17,7 @@
<string name="settings">Definições</string>
<string name="dark_theme">Tema escuro</string>
<string name="clear">Limpar</string>
<string name="change_background">Change background</string>
<!-- About -->
<string name="about">Acerca</string>

View File

@ -17,6 +17,7 @@
<string name="settings">Inställningar</string>
<string name="dark_theme">Mörkt tema</string>
<string name="clear">Clear</string>
<string name="change_background">Change background</string>
<!-- About -->
<string name="about">Om</string>