update the text at widget config screen

This commit is contained in:
tibbi 2016-02-28 16:00:47 +01:00
parent 57a2127491
commit 60fb78b1c8
1 changed files with 6 additions and 1 deletions

View File

@ -25,6 +25,8 @@ public class MyWidgetConfigure extends AppCompatActivity {
@Bind(R.id.config_text_color) View textColorPicker;
@Bind(R.id.config_calc) View background;
@Bind(R.id.config_save) Button saveBtn;
@Bind(R.id.result) TextView result;
@Bind(R.id.formula) TextView formula;
private int widgetId;
private int bgColor;
@ -67,6 +69,9 @@ public class MyWidgetConfigure extends AppCompatActivity {
textColor = prefs.getInt(Constants.WIDGET_TEXT_COLOR, Color.WHITE);
updateTextColor();
formula.setText("15,937*5");
result.setText("79,685");
}
@OnClick(R.id.config_save)
@ -112,8 +117,8 @@ public class MyWidgetConfigure extends AppCompatActivity {
new int[]{R.id.btn_0, R.id.btn_1, R.id.btn_2, R.id.btn_3, R.id.btn_4, R.id.btn_5, R.id.btn_6, R.id.btn_7, R.id.btn_8,
R.id.btn_9, R.id.btn_modulo, R.id.btn_power, R.id.btn_root, R.id.btn_clear, R.id.btn_reset, R.id.btn_divide,
R.id.btn_multiply, R.id.btn_minus, R.id.btn_plus, R.id.btn_decimal, R.id.btn_equals};
final TextView result = (TextView) findViewById(R.id.result);
result.setTextColor(textColor);
formula.setTextColor(textColor);
Button btn;
for (int i : viewIds) {