|
@@ -20,6 +20,20 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
+ <Button
|
|
|
+ android:id="@+id/search_button"
|
|
|
+ style="@style/Widget.AppCompat.Button.Colored"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:text="Search"
|
|
|
+ android:textAppearance="@style/Base.TextAppearance.MaterialComponents.Button"
|
|
|
+ android:textColor="@color/textDark"
|
|
|
+ app:backgroundTint="@color/colorAccent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/to_input" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/from_label"
|
|
|
android:layout_width="wrap_content"
|
|
@@ -28,35 +42,51 @@
|
|
|
android:labelFor="@+id/from_input"
|
|
|
android:text="From:"
|
|
|
android:textColor="@color/textLight"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/from_inputLayout"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/from_input"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/from_inputLayout" />
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/from_input" />
|
|
|
|
|
|
- <com.google.android.material.textfield.TextInputLayout
|
|
|
- android:id="@+id/from_inputLayout"
|
|
|
+ <ml.adamsprogs.bimba.views.StopAutoCompleteTextView
|
|
|
+ android:id="@+id/from_input"
|
|
|
android:layout_width="0dp"
|
|
|
- android:layout_height="43dp"
|
|
|
+ android:layout_height="55dp"
|
|
|
android:layout_marginStart="8dp"
|
|
|
android:layout_marginTop="12dp"
|
|
|
android:layout_marginEnd="8dp"
|
|
|
android:minWidth="32dp"
|
|
|
+ android:textColor="@color/textLight"
|
|
|
android:theme="@style/BackDropTheme"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toEndOf="@id/from_label"
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:layout_constraintWidth_min="32dp">
|
|
|
-
|
|
|
- <AutoCompleteTextView
|
|
|
- android:id="@+id/from_input"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:textColor="@color/textLight"
|
|
|
- android:theme="@style/BackDropTheme">
|
|
|
+ app:layout_constraintWidth_min="32dp" />
|
|
|
|
|
|
- </AutoCompleteTextView>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/to_label"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:labelFor="@+id/from_input"
|
|
|
+ android:text="To:"
|
|
|
+ android:textColor="@color/textLight"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/to_input"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/to_input" />
|
|
|
|
|
|
+ <ml.adamsprogs.bimba.views.StopAutoCompleteTextView
|
|
|
+ android:id="@+id/to_input"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="55dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:minWidth="32dp"
|
|
|
+ android:textColor="@color/textLight"
|
|
|
+ android:theme="@style/BackDropTheme"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/from_input"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/from_input"
|
|
|
+ app:layout_constraintWidth_min="32dp" />
|
|
|
|
|
|
- </com.google.android.material.textfield.TextInputLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
@@ -64,7 +94,19 @@
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:visibility="invisible">
|
|
|
+ android:visibility="visible">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/arrow_icon"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
+ android:tint="@color/text"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:srcCompat="@drawable/ic_arrow_up" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/textView"
|
|
@@ -77,14 +119,17 @@
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/recyclerView"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="0dp"
|
|
|
android:layout_marginTop="12dp"
|
|
|
android:layout_marginBottom="8dp"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintHorizontal_bias="1.0"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/textView" />
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/textView"
|
|
|
+ app:layout_constraintVertical_bias="0.0" />
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</com.pedromassango.ibackdrop.Backdrop>
|
|
|
</LinearLayout>
|