diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index 7fbcad2..d706a1f 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -1,17 +1,17 @@ - + - + - - + + - - + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 68f8e2e..dbc69fc 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -10,6 +10,7 @@ + diff --git a/app/build.gradle b/app/build.gradle index cb88a8a..08af63b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -35,6 +35,13 @@ android { } dependencies { + def room_version = "2.4.2" + + implementation "androidx.room:room-runtime:$room_version" + annotationProcessor "androidx.room:room-compiler:$room_version" + + implementation "androidx.room:room-rxjava3:$room_version" + implementation "androidx.room:room-paging:2.5.0-alpha02" implementation 'androidx.core:core-ktx:1.8.0' implementation 'androidx.appcompat:appcompat:1.4.2' diff --git a/app/src/main/res/layout/fragment_add_battery.xml b/app/src/main/res/layout/fragment_add_battery.xml index f7e98c4..cde282c 100644 --- a/app/src/main/res/layout/fragment_add_battery.xml +++ b/app/src/main/res/layout/fragment_add_battery.xml @@ -1,14 +1,80 @@ - - + android:id="@+id/text_battery_id" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:text="@string/battery_id" + app:layout_constraintBaseline_toBaselineOf="@+id/battery_id" + app:layout_constraintStart_toStartOf="parent" /> - \ No newline at end of file + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_add_charge.xml b/app/src/main/res/layout/fragment_add_charge.xml index b14a46e..d3c2556 100644 --- a/app/src/main/res/layout/fragment_add_charge.xml +++ b/app/src/main/res/layout/fragment_add_charge.xml @@ -13,7 +13,7 @@ android:layout_marginStart="24dp" android:layout_marginTop="24dp" android:layout_marginEnd="24dp" - android:hint="Battery ID" + android:hint="@string/select_battery_id" android:minHeight="48dp" app:layout_constraintEnd_toEndOf="parent" @@ -26,19 +26,21 @@ + android:inputType="text" + tools:ignore="TextContrastCheck" />