SWString fix

This commit is contained in:
Milos Kozak 2018-05-20 15:01:03 +02:00
parent 7714aa9138
commit d0ed4bd717
2 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,7 @@
package info.nightscout.androidaps.startupwizard;
import android.content.Context;
import android.graphics.Typeface;
import android.text.Editable;
import android.text.InputType;
import android.text.TextWatcher;
@ -27,11 +28,13 @@ public class SWString extends SWItem {
TextView l = new TextView(context);
l.setId(view.generateViewId());
l.setText(label);
l.setTypeface(l.getTypeface(), Typeface.BOLD);
layout.addView(l);
TextView c = new TextView(context);
c.setId(view.generateViewId());
c.setText(label);
c.setText(comment);
c.setTypeface(c.getTypeface(), Typeface.ITALIC);
layout.addView(c);
EditText editText = new EditText(context);

View file

@ -1,6 +1,7 @@
package info.nightscout.androidaps.startupwizard;
import android.content.Context;
import android.graphics.Typeface;
import android.text.Editable;
import android.text.InputType;
import android.text.TextWatcher;
@ -26,11 +27,13 @@ public class SWUrl extends SWItem {
TextView l = new TextView(context);
l.setId(View.generateViewId());
l.setText(label);
l.setTypeface(l.getTypeface(), Typeface.BOLD);
layout.addView(l);
TextView c = new TextView(context);
c.setId(View.generateViewId());
c.setText(comment);
c.setTypeface(c.getTypeface(), Typeface.ITALIC);
layout.addView(c);
EditText editText = new EditText(context);