Skip to content
Snippets Groups Projects
Commit 6efda5e7 authored by Livia Arumsari's avatar Livia Arumsari
Browse files

Merge branch 'task/accessibility-tuning' into 'dev'

feat: accessibility tuning, added item labels, and change colors

See merge request !18
parents 8d0c111c ab66ed6d
1 merge request!18feat: accessibility tuning, added item labels, and change colors
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="20dp" android:tint="#FFFFFF" android:viewportHeight="24" android:viewportWidth="24" android:width="20dp">
<path android:fillColor="@android:color/black" android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
<path android:fillColor="@android:color/white" android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</vector>
......@@ -32,6 +32,7 @@
app:layout_constraintTop_toBottomOf="@+id/appName"
app:layout_constraintVertical_bias="0.5"
app:layout_constraintVertical_chainStyle="packed"
app:boxStrokeColor="@color/black"
>
<com.google.android.material.textfield.TextInputEditText
......@@ -40,7 +41,9 @@
android:layout_height="wrap_content"
android:ems="10"
android:maxLength="255"
android:hint="Email"
android:hint="@string/email"
app:boxStrokeColor="@color/black"
android:textColorHint="@color/black"
android:inputType="textEmailAddress"
android:outlineAmbientShadowColor="#000000"
android:outlineProvider="background" />
......@@ -61,6 +64,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/formEmailContainer"
app:layout_constraintVertical_bias="0.5"
app:boxStrokeColor="@color/black"
>
<com.google.android.material.textfield.TextInputEditText
......@@ -69,7 +73,9 @@
android:layout_height="wrap_content"
android:maxLength="255"
android:ems="10"
android:hint="Password"
android:hint="@string/password"
app:boxStrokeColor="@color/black"
android:textColorHint="@color/black"
android:inputType="textPassword"
/>
......@@ -82,7 +88,7 @@
android:layout_marginHorizontal="20dp"
android:layout_height="match_parent"
android:layout_marginTop="36dp"
android:text="Sign in"
android:text="@string/sign_in"
android:textSize="20sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
......@@ -97,7 +103,7 @@
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:fontFamily="@font/roboto_medium"
android:text="Welcome back to"
android:text="@string/greeting"
android:textColor="#000000"
android:textSize="20sp"
app:layout_constraintBottom_toTopOf="@+id/appName"
......@@ -115,7 +121,7 @@
android:layout_marginTop="8dp"
android:layout_marginBottom="64dp"
android:fontFamily="@font/carter_one"
android:text="Bondoman"
android:text="@string/bondoman"
android:textColor="#9759C4"
android:textSize="24sp"
android:textStyle="bold"
......
......@@ -17,6 +17,7 @@
android:id="@+id/formTitleContainer"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
android:layout_width="match_parent"
app:boxStrokeColor="@color/black"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="15dp"
......@@ -30,6 +31,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:maxLength="255"
app:boxStrokeColor="@color/black"
android:textColorHint="@color/black"
android:hint="@string/title"
android:text="@={viewModel.title}"
android:inputType="text"
......@@ -43,6 +46,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
app:boxStrokeColor="@color/black"
android:layout_marginTop="5dp"
app:helperTextTextColor="@color/destructive"
app:layout_constraintEnd_toEndOf="parent"
......@@ -54,6 +58,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:maxLength="10"
app:boxStrokeColor="@color/black"
android:textColorHint="@color/black"
android:hint="@string/amount"
android:text="@={viewModel.amount}"
android:inputType="number"
......@@ -64,18 +70,29 @@
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/formCategoryContainer"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:hint="@string/category"
android:textColorHint="@color/black"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="5dp"
android:hint="@string/category"
app:helperTextTextColor="@color/destructive"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/formAmountContainer">
app:layout_constraintTop_toBottomOf="@id/formAmountContainer"
app:boxStrokeColor="@color/black"
>
<TextView
android:layout_width="0dp"
android:layout_height="0dp"
android:labelFor="@+id/categoryAutocomplete"
android:text="@string/category"
/>
<AutoCompleteTextView
android:id="@+id/categoryAutocomplete"
app:boxStrokeColor="@color/black"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="none"
......@@ -90,7 +107,7 @@
android:minWidth="0dp"
android:minHeight="0dp"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_height="48dp"
android:paddingTop="1dp"
android:paddingBottom="1dp"
android:layout_marginTop="8dp"
......@@ -107,6 +124,7 @@
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:boxStrokeColor="@color/black"
android:layout_marginHorizontal="20dp"
app:helperTextTextColor="@color/destructive"
app:layout_constraintEnd_toEndOf="parent"
......@@ -117,6 +135,8 @@
android:id="@+id/formLocationEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:boxStrokeColor="@color/black"
android:textColorHint="@color/black"
android:hint="@string/location"
android:inputType="none"
android:text="@={viewModel.location}"
......
......@@ -40,6 +40,7 @@
<Button
android:id="@+id/captureButton"
android:contentDescription="@string/capture_photo"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginTop="16dp"
......@@ -57,7 +58,7 @@
android:layout_height="52dp"
android:adjustViewBounds="true"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="Get Photo from Gallery"
android:contentDescription="@string/get_photo_from_gallery"
android:padding="10dp"
android:scaleType="fitCenter"
android:src="@drawable/ic_gallery"
......
......@@ -25,9 +25,10 @@
android:layout_margin="16dp"
android:contentDescription="@string/add_transaction"
android:src="@drawable/baseline_add_24"
android:backgroundTint="@color/primary"
android:tint="@color/white"
app:backgroundTint="@color/primaryActive"
app:tint="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
......@@ -4,22 +4,22 @@
<item
android:id="@+id/navigation_transactions"
android:icon="@drawable/ic_transactions"
android:title="Transaction" />
android:title="@string/transaction" />
<item
android:id="@+id/navigation_scan"
android:icon="@drawable/ic_scan"
android:title="Scan" />
android:title="@string/scan" />
<item
android:id="@+id/navigation_graph"
android:icon="@drawable/ic_graph"
android:title="Graph" />
android:title="@string/graph" />
<item
android:id="@+id/navigation_settings"
android:icon="@drawable/ic_settings"
android:title="Settings"
android:title="@string/settings"
/>
</menu>
\ No newline at end of file
......@@ -29,7 +29,7 @@
<fragment
android:id="@+id/navigation_scan"
android:name="com.example.abe.ui.scanner.ScannerFragment"
android:label="Scan"
android:label="Transaction Scan"
tools:layout="@layout/fragment_scan">
<action
......@@ -42,7 +42,7 @@
<fragment
android:id="@+id/navigation_graph"
android:label="Graph"
android:label="Transaction Graph"
android:name="com.example.abe.ui.graph.GraphFragment"
tools:layout="@layout/fragment_graph"
/>
......@@ -50,7 +50,7 @@
<fragment
android:id="@+id/navigation_settings"
android:name="com.example.abe.ui.settings.SettingsFragment"
android:label="Settings"
android:label="Other Settings"
tools:layout="@layout/fragment_settings" >
<action
android:id="@+id/action_navigation_settings_to_navigation_transactions"
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="capture_photo">Capture Button</string>
<string name="email">Email</string>
<string name="sign_in">Sign in</string>
<string name="greeting">Welcome back to</string>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary">#9759C4</color>
<color name="primaryActive">#8346AA</color>
<color name="secondary">#F7D047</color>
<color name="secondaryActive">#EEA035</color>
<color name="success">#59921B</color>
<color name="primary">#461767</color>
<color name="primaryActive">#5c3078</color>
<color name="secondary">#C17A30</color>
<color name="secondaryActive">#F6BE00</color>
<color name="success">#4B7D17</color>
<color name="destructive">#C81823</color>
<color name="grayDark">#A9A9A9</color>
<color name="grayDark">#212121</color>
<color name="grayLight">#F5F5F8</color>
<color name="black">#090909</color>
<color name="white">#FFFFFFFF</color>
<color name="purple_700">#8346AA</color>
<color name="purple_200">#9759C4</color>
<color name="purple_700">#461767</color>
<color name="purple_200">#5c3078</color>
<color name="teal_200">#80CBC4</color>
</resources>
\ No newline at end of file
......@@ -14,6 +14,17 @@
<string name="location">Location</string>
<string name="open_in_map">Open in Map</string>
<string name="category">Category</string>
<string name="capture_photo">Capture Photo</string>
<string name="password">Password</string>
<string name="email">Email</string>
<string name="sign_in">Sign in</string>
<string name="greeting">Welcome back to</string>
<string name="bondoman">Bondoman</string>
<string name="get_photo_from_gallery">Get Photo from Gallery</string>
<string name="scan">Scan</string>
<string name="graph">Graph</string>
<string name="settings">Settings</string>
<string name="transaction">Transaction</string>
<string-array name="Categories">
<item>Income</item>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment