Changeset View
Changeset View
Standalone View
Standalone View
res/layout/fragment_main_screen.xml
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | <EditText | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_marginEnd="5dp" | android:layout_marginEnd="5dp" | ||||
android:layout_marginLeft="5dip" | android:layout_marginLeft="5dip" | ||||
android:layout_marginRight="5dip" | android:layout_marginRight="5dip" | ||||
android:layout_toEndOf="@+id/QRButton" | android:layout_toEndOf="@+id/QRButton" | ||||
android:layout_toLeftOf="@+id/searchButton" | android:layout_toLeftOf="@+id/searchButton" | ||||
android:layout_toRightOf="@+id/QRButton" | android:layout_toRightOf="@+id/QRButton" | ||||
android:layout_toStartOf="@+id/searchButton" | android:layout_toStartOf="@+id/searchButton" | ||||
android:inputType="text" | |||||
android:ems="10" | android:ems="10" | ||||
android:hint="@string/insert_bus_stop_name" | android:hint="@string/insert_bus_stop_name" | ||||
android:imeOptions="actionSearch" | android:imeOptions="actionSearch" | ||||
android:singleLine="true" | android:singleLine="true" | ||||
android:visibility="gone"> | android:visibility="gone"> | ||||
<requestFocus /> | <requestFocus /> | ||||
</EditText> | </EditText> | ||||
Show All 28 Lines | <ProgressBar | ||||
android:layout_marginStart="16dip" | android:layout_marginStart="16dip" | ||||
android:indeterminateOnly="true" | android:indeterminateOnly="true" | ||||
android:visibility="gone" /> | android:visibility="gone" /> | ||||
<TextView | <TextView | ||||
android:id="@+id/howDoesItWorkTextView" | android:id="@+id/howDoesItWorkTextView" | ||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_marginBottom="10dp" | android:layout_marginBottom="5dp" | ||||
android:layout_marginEnd="16dp" | android:layout_marginEnd="16dp" | ||||
android:layout_marginLeft="16dip" | android:layout_marginLeft="16dip" | ||||
android:layout_marginRight="16dp" | android:layout_marginRight="16dp" | ||||
android:layout_marginStart="16dip" | android:layout_marginStart="16dip" | ||||
android:layout_marginTop="10dp" | |||||
android:layout_toLeftOf="@+id/hideHintButton" | android:layout_toLeftOf="@+id/hideHintButton" | ||||
android:layout_toStartOf="@+id/hideHintButton" | android:layout_toStartOf="@+id/hideHintButton" | ||||
android:text="@string/howDoesItWork" | android:text="@string/howDoesItWork" | ||||
android:textAppearance="?android:attr/textAppearanceSmall" | android:textAppearance="?android:attr/textAppearanceSmall" | ||||
android:textColor="@color/blue_500" | android:textColor="@color/blue_500" | ||||
android:visibility="gone" android:layout_below="@+id/searchButton"/> | android:visibility="gone" android:layout_below="@+id/searchButton"/> | ||||
<Button | <Button | ||||
android:id="@+id/hideHintButton" | android:id="@+id/hideHintButton" | ||||
style="?android:attr/buttonStyleSmall" | style="?android:attr/buttonStyleSmall" | ||||
android:layout_width="85dip" | android:layout_width="85dip" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_alignBottom="@+id/howDoesItWorkTextView" | android:layout_alignBottom="@+id/howDoesItWorkTextView" | ||||
android:layout_alignParentEnd="true" | android:layout_alignParentEnd="true" | ||||
android:layout_alignParentRight="true" | android:layout_alignParentRight="true" | ||||
android:layout_marginEnd="16dp" | android:layout_marginEnd="16dp" | ||||
android:layout_marginRight="16dp" | android:layout_marginRight="16dp" | ||||
android:background="@drawable/route_background_bus" | android:background="@drawable/route_background_bus" | ||||
android:text="@string/hint_button" | android:text="@string/hint_button" | ||||
android:textColor="@color/grey_100" | android:textColor="@color/grey_100" | ||||
android:textSize="19sp" | android:textSize="19sp" | ||||
android:visibility="gone" /> | android:visibility="gone" /> | ||||
<androidx.coordinatorlayout.widget.CoordinatorLayout | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" | |||||
android:id="@+id/coord_layout" | |||||
android:layout_alignParentBottom="true" | |||||
android:layout_alignParentEnd="true" | |||||
android:layout_alignParentRight="true" | |||||
android:layout_gravity="bottom|end" | |||||
android:layout_below="@+id/howDoesItWorkTextView" | |||||
> | |||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout | <androidx.swiperefreshlayout.widget.SwipeRefreshLayout | ||||
android:id="@+id/listRefreshLayout" | android:id="@+id/listRefreshLayout" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:layout_alignParentEnd="true" | android:layout_alignParentEnd="true" | ||||
android:layout_alignParentRight="true" | android:layout_alignParentRight="true" | ||||
android:layout_below="@+id/howDoesItWorkTextView" | |||||
android:animateLayoutChanges="true" | android:animateLayoutChanges="true" | ||||
android:visibility="gone"> | android:visibility="gone"> | ||||
<FrameLayout | <FrameLayout | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:id="@+id/resultFrame" | android:id="@+id/resultFrame" | ||||
android:layout_height="fill_parent" | android:layout_height="fill_parent" | ||||
android:layout_alignParentLeft="true" android:layout_alignParentStart="true"/> | android:layout_alignParentLeft="true" android:layout_alignParentStart="true"/> | ||||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout> | </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> | ||||
<com.google.android.material.floatingactionbutton.FloatingActionButton | <com.google.android.material.floatingactionbutton.FloatingActionButton | ||||
android:id="@+id/floatingActionButton" | android:id="@+id/floatingActionButton" | ||||
android:layout_width="wrap_content" | android:layout_width="wrap_content" | ||||
android:layout_height="wrap_content" | android:layout_height="wrap_content" | ||||
android:layout_alignParentBottom="true" | android:layout_alignParentBottom="true" | ||||
android:layout_alignParentEnd="true" | android:layout_alignParentEnd="true" | ||||
android:layout_alignParentRight="true" | android:layout_alignParentRight="true" | ||||
android:layout_gravity="bottom|end" | android:layout_gravity="bottom|end" | ||||
android:layout_margin="16dp" | android:layout_margin="13dp" | ||||
android:src="@drawable/alphabetical" | android:src="@drawable/alphabetical" | ||||
fabSize="normal" | fabSize="normal" | ||||
backgroundTint="@color/teal_500" | backgroundTint="@color/teal_500" | ||||
rippleColor="@color/teal_300" | rippleColor="@color/teal_300" | ||||
elevation="15dp" | elevation="13dp" | ||||
/> | /> | ||||
</androidx.coordinatorlayout.widget.CoordinatorLayout> | |||||
</RelativeLayout> | </RelativeLayout> | ||||
No newline at end of file | No newline at end of file |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register