Use medtrum icon

This commit is contained in:
jbr7rr 2023-08-05 15:58:10 +02:00
parent 3230d4bfba
commit 826b0f3d8c
2 changed files with 20 additions and 10 deletions

View file

@ -75,7 +75,7 @@ import kotlin.math.abs
PluginDescription()
.mainType(PluginType.PUMP)
.fragmentClass(MedtrumOverviewFragment::class.java.name)
.pluginIcon(info.nightscout.core.ui.R.drawable.ic_generic_icon) // TODO
.pluginIcon(info.nightscout.core.ui.R.drawable.ic_medtrum_128)
.pluginName(R.string.medtrum)
.shortName(R.string.medtrum_pump_shortname)
.preferencesId(R.xml.pref_medtrum_pump)

View file

@ -600,17 +600,27 @@
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:layout_marginStart="20dp"
android:layout_marginTop="5dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="5dp"
android:background="?android:attr/dividerHorizontal" />
<ImageView
android:id="@+id/medtrum_icon"
android:layout_width="128dp"
android:layout_height="128dp"
android:layout_gravity="center"
android:contentDescription="@string/pump_icon"
android:paddingTop="10dp"
android:scaleType="centerInside"
android:src="@drawable/ic_medtrum_128" />
</LinearLayout>
</ScrollView>