show dia in insulin plugin
This commit is contained in:
parent
90a55966b1
commit
7f122f7497
|
@ -31,6 +31,8 @@ public class InsulinFastactingFragment extends Fragment implements FragmentBase
|
|||
TextView insulinName;
|
||||
@BindView(R.id.insulin_comment)
|
||||
TextView insulinComment;
|
||||
@BindView(R.id.insulin_dia)
|
||||
TextView insulinDia;
|
||||
@BindView(R.id.insulin_activity)
|
||||
ImageView insulinActivity;
|
||||
|
||||
|
@ -42,6 +44,7 @@ public class InsulinFastactingFragment extends Fragment implements FragmentBase
|
|||
|
||||
insulinName.setText(insulinFastactingPlugin.getFriendlyName());
|
||||
insulinComment.setText(insulinFastactingPlugin.getComment());
|
||||
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + new Double(insulinFastactingPlugin.getDia()).toString() + "h");
|
||||
insulinActivity.setImageDrawable(MainApp.sResources.getDrawable(insulinFastactingPlugin.getResourcePicture()));
|
||||
|
||||
return view;
|
||||
|
|
|
@ -31,6 +31,8 @@ public class InsulinFastactingProlongedFragment extends Fragment implements Frag
|
|||
TextView insulinName;
|
||||
@BindView(R.id.insulin_comment)
|
||||
TextView insulinComment;
|
||||
@BindView(R.id.insulin_dia)
|
||||
TextView insulinDia;
|
||||
@BindView(R.id.insulin_activity)
|
||||
ImageView insulinActivity;
|
||||
|
||||
|
@ -42,6 +44,7 @@ public class InsulinFastactingProlongedFragment extends Fragment implements Frag
|
|||
|
||||
insulinName.setText(insulinFastactingProlongedPlugin.getFriendlyName());
|
||||
insulinComment.setText(insulinFastactingProlongedPlugin.getComment());
|
||||
insulinDia.setText(MainApp.sResources.getText(R.string.dia) + " " + new Double(insulinFastactingProlongedPlugin.getDia()).toString() + "h");
|
||||
insulinActivity.setImageDrawable(MainApp.sResources.getDrawable(insulinFastactingProlongedPlugin.getResourcePicture()));
|
||||
|
||||
return view;
|
||||
|
|
|
@ -28,6 +28,13 @@
|
|||
android:layout_margin="10dp"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/insulin_dia"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/insulin_activity"
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in a new issue