Changeset View
Changeset View
Standalone View
Standalone View
res/layout-v11/activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
xmlns:fab="http://schemas.android.com/apk/res-auto" | |||||
xmlns:tools="http://schemas.android.com/tools" | xmlns:tools="http://schemas.android.com/tools" | ||||
android:layout_width="match_parent" | android:layout_width="match_parent" | ||||
android:layout_height="match_parent" | android:layout_height="match_parent" | ||||
android:animateLayoutChanges="true" | android:animateLayoutChanges="true" | ||||
android:paddingTop="@dimen/activity_vertical_margin" | android:paddingTop="@dimen/activity_vertical_margin" | ||||
tools:context="it.reyboz.bustorino.ActivityMain"> | tools:context="it.reyboz.bustorino.ActivityMain"> | ||||
<ImageButton | <ImageButton | ||||
▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | <Button | ||||
android:layout_marginRight="16dp" | android:layout_marginRight="16dp" | ||||
android:background="@drawable/route_background_bus" | android:background="@drawable/route_background_bus" | ||||
android:onClick="onHideHint" | android:onClick="onHideHint" | ||||
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" /> | ||||
<android.support.v4.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: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"/> | ||||
</android.support.v4.widget.SwipeRefreshLayout> | </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> | ||||
<android.support.design.widget.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="16dp" | ||||
android:onClick="onToggleKeyboardLayout" | android:onClick="onToggleKeyboardLayout" | ||||
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="15dp" | ||||
/> | /> | ||||
</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