app/src/main/res/layout/fragment_preset_store_online.xml
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.bedrock.padder.fragment.PresetStoreOnlineFragment">
<android.support.v4.widget.NestedScrollView
android:id="@+id/layout_online_nested_scrollview"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/layout_online_preset_store"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true">
<!-- focusableInTouchMode for disable auto-scroll to recyclerView -->
<android.support.v7.widget.RecyclerView
android:id="@+id/layout_online_preset_store_recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="64dp"
android:scrollbars="none"
android:visibility="gone"/>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="100dp">
<LinearLayout
android:id="@+id/layout_online_preset_store_recycler_view_loading"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
android:text="@string/preset_store_loading_metadata"
android:textColor="@color/dark_secondary"
android:textSize="18sp"/>
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminate="true"
android:indeterminateTint="@color/amber"/>
</LinearLayout>
<LinearLayout
android:id="@+id/layout_online_preset_store_recycler_view_failed"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical"
android:visibility="gone">
<ImageView
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginBottom="8dp"
android:alpha="0.5"
app:srcCompat="@drawable/ic_disconnected_black"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/preset_store_loading_metadata_failure"
android:textColor="@color/dark_secondary"
android:textSize="18sp"/>
<TextView
android:id="@+id/layout_online_preset_store_recycler_view_failed_retry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:background="@color/grey_light"
android:clickable="true"
android:foreground="?selectableItemBackground"
android:gravity="center"
android:paddingBottom="8dp"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:paddingTop="8dp"
android:text="@string/preset_store_loading_metadata_failure_retry"
android:textSize="18sp"/>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
<View
android:id="@+id/layout_online_margin"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@color/transparent"/>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</FrameLayout>