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;
|
TextView insulinName;
|
||||||
@BindView(R.id.insulin_comment)
|
@BindView(R.id.insulin_comment)
|
||||||
TextView insulinComment;
|
TextView insulinComment;
|
||||||
|
@BindView(R.id.insulin_dia)
|
||||||
|
TextView insulinDia;
|
||||||
@BindView(R.id.insulin_activity)
|
@BindView(R.id.insulin_activity)
|
||||||
ImageView insulinActivity;
|
ImageView insulinActivity;
|
||||||
|
|
||||||
|
@ -42,6 +44,7 @@ public class InsulinFastactingFragment extends Fragment implements FragmentBase
|
||||||
|
|
||||||
insulinName.setText(insulinFastactingPlugin.getFriendlyName());
|
insulinName.setText(insulinFastactingPlugin.getFriendlyName());
|
||||||
insulinComment.setText(insulinFastactingPlugin.getComment());
|
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()));
|
insulinActivity.setImageDrawable(MainApp.sResources.getDrawable(insulinFastactingPlugin.getResourcePicture()));
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
|
|
|
@ -31,6 +31,8 @@ public class InsulinFastactingProlongedFragment extends Fragment implements Frag
|
||||||
TextView insulinName;
|
TextView insulinName;
|
||||||
@BindView(R.id.insulin_comment)
|
@BindView(R.id.insulin_comment)
|
||||||
TextView insulinComment;
|
TextView insulinComment;
|
||||||
|
@BindView(R.id.insulin_dia)
|
||||||
|
TextView insulinDia;
|
||||||
@BindView(R.id.insulin_activity)
|
@BindView(R.id.insulin_activity)
|
||||||
ImageView insulinActivity;
|
ImageView insulinActivity;
|
||||||
|
|
||||||
|
@ -42,6 +44,7 @@ public class InsulinFastactingProlongedFragment extends Fragment implements Frag
|
||||||
|
|
||||||
insulinName.setText(insulinFastactingProlongedPlugin.getFriendlyName());
|
insulinName.setText(insulinFastactingProlongedPlugin.getFriendlyName());
|
||||||
insulinComment.setText(insulinFastactingProlongedPlugin.getComment());
|
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()));
|
insulinActivity.setImageDrawable(MainApp.sResources.getDrawable(insulinFastactingProlongedPlugin.getResourcePicture()));
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
|
|
|
@ -28,6 +28,13 @@
|
||||||
android:layout_margin="10dp"
|
android:layout_margin="10dp"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
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
|
<ImageView
|
||||||
android:id="@+id/insulin_activity"
|
android:id="@+id/insulin_activity"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
Loading…
Reference in a new issue