Add label below icons
This commit is contained in:
parent
1d1359dfd4
commit
4338605571
|
@ -76,40 +76,70 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||
android:id="@+id/overview_temptarget_custom"
|
||||
style="?android:attr/buttonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_marginEnd="-4dp"
|
||||
android:layout_weight="0.5"
|
||||
android:src="@drawable/ic_target_manual" />
|
||||
android:drawableTop="@drawable/ic_target_manual"
|
||||
android:text="@string/manual"
|
||||
android:textColor="@color/tempTargetConfirmation"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<ImageButton
|
||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||
android:id="@+id/overview_temptarget_cancel"
|
||||
style="?android:attr/buttonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_marginEnd="-4dp"
|
||||
android:layout_weight="0.5"
|
||||
android:src="@drawable/ic_target_cancel"/>
|
||||
android:drawableTop="@drawable/ic_target_cancel"
|
||||
android:text="@string/cancel"
|
||||
android:textColor="@color/tempTargetConfirmation"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<ImageButton
|
||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||
android:id="@+id/overview_temptarget_eating_soon"
|
||||
style="?android:attr/buttonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_marginEnd="-4dp"
|
||||
android:layout_weight="0.5"
|
||||
android:src="@drawable/ic_target_eatingsoon" />
|
||||
android:drawableTop="@drawable/ic_target_eatingsoon"
|
||||
android:text="@string/eatingsoon"
|
||||
android:textColor="@color/carbs"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<ImageButton
|
||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||
android:id="@+id/overview_temptarget_activity"
|
||||
style="?android:attr/buttonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_marginEnd="-4dp"
|
||||
android:layout_weight="0.5"
|
||||
android:src="@drawable/ic_target_activity"/>
|
||||
android:drawableTop="@drawable/ic_target_activity"
|
||||
android:text="@string/activity"
|
||||
android:textColor="@color/exercise"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<ImageButton
|
||||
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
||||
android:id="@+id/overview_temptarget_hypo"
|
||||
style="?android:attr/buttonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_marginEnd="-4dp"
|
||||
android:layout_weight="0.5"
|
||||
android:src="@drawable/ic_target_hypo" />
|
||||
android:drawableTop="@drawable/ic_target_hypo"
|
||||
android:text="@string/hypo"
|
||||
android:textColor="@color/low"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
||||
android:textSize="12sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
Loading…
Reference in a new issue