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" />
+ app:layout_constraintTop_toBottomOf="@+id/edit_battery_id"
+ tools:ignore="SpeakableTextPresentCheck" />
+ tools:ignore="TextContrastCheck" />
@@ -75,7 +77,7 @@
android:id="@+id/text_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Date"
+ android:text="@string/date"
app:layout_constraintBaseline_toBaselineOf="@+id/edit_date"
app:layout_constraintEnd_toEndOf="@+id/text_battery_id" />
@@ -83,7 +85,7 @@
android:id="@+id/text_charge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Charge"
+ android:text="@string/charge"
app:layout_constraintBaseline_toBaselineOf="@+id/edit_charge"
app:layout_constraintEnd_toEndOf="@+id/text_date" />
@@ -92,12 +94,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
- android:layout_marginEnd="32dp"
- android:layout_marginBottom="32dp"
+ android:layout_marginTop="32dp"
+ android:layout_marginEnd="24dp"
android:contentDescription="@string/button_save_charge"
android:text="@string/button_save_charge"
app:icon="@drawable/ic_baseline_check_24"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent" />
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/edit_charge" />
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 29722cc..540ff0c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -18,4 +18,12 @@
Add Battery
Battery ID
Save Charge
+ Date
+ Charge
+ Enter Charge, decimal
+ Select Battery ID
+ Enter Battery ID
+ Enter declared capacity
+ Declared Capacity
+ Save Battery
\ No newline at end of file