forked from penguin86/luna-tracker
weight: add local unit to dialog
This commit is contained in:
@@ -313,6 +313,9 @@ class MainActivity : AppCompatActivity() {
|
||||
val weightET = dialogView.findViewById<EditText>(R.id.dialog_number_edittext)
|
||||
weightET.setText(event.quantity.toString())
|
||||
|
||||
val unitTV = dialogView.findViewById<TextView>(R.id.dialog_number_unit)
|
||||
unitTV.text = NumericUtils(this).measurement_unit_weight_base
|
||||
|
||||
val dateTV = dialogView.findViewById<TextView>(R.id.dialog_date_picker)
|
||||
val pickedTime = dateTimePicker(event.time, dateTV)
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
android:background="@drawable/textview_background"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/dialog_number_unit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
|
||||
Reference in New Issue
Block a user