Hyperrail/src/main/res/layout/fragment_vehicle_search.xml
<!--
~ This Source Code Form is subject to the terms of the Mozilla Public
~ License, v. 2.0. If a copy of the MPL was not distributed with this
~ file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:orientation="vertical"
tools:context="be.hyperrail.android.fragments.VehicleSearchFragment">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusableInTouchMode="true"
android:theme="@style/HyperrailAccentSearchContainer"
android:padding="@dimen/activity_horizontal_margin"
android:orientation="horizontal"
android:gravity="left">
<EditText
android:id="@+id/input_train"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="@dimen/listitem_content_height_double"
android:hint="@string/search_train_name"
android:inputType="textFilter"
android:maxLines="1"
android:paddingTop="@dimen/activity_vertical_margin"
android:textColor="@color/colorOnPrimary"
android:theme="@style/HyperrailAccentSearchText"
/>
<Button
android:id="@+id/button_search"
android:layout_width="@dimen/listitem_content_height_double"
android:layout_height="@dimen/listitem_content_height_double"
android:background="@drawable/inset_ic_action_search_normal"/>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview_primary"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingBottom="@dimen/cardlist_vertical_spacing"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp"
android:gravity="center"
android:text="@string/placeholder_vehicle_suggestions"/>
</LinearLayout>