android CoordinatorLayout and SwipeRefreshLayout and RecyclerView -


here code:

<android.support.design.widget.coordinatorlayout             android:layout_width="match_parent"             android:layout_height="match_parent">              <android.support.design.widget.appbarlayout                 android:id="@+id/app_bar_layout"                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:theme="@style/themeoverlay.appcompat.dark.actionbar">                  <android.support.v7.widget.toolbar                     android:id="@+id/tool_bar"                     android:layout_width="match_parent"                     android:layout_height="100dp"                     android:background="@android:color/white"                     android:orientation="vertical"                     app:layout_scrollflags="scroll|enteralways"/>                  <android.support.design.widget.tablayout                     android:id="@+id/tablayout"                     android:layout_width="match_parent"                     android:layout_height="100dp"                     android:background="#03bcd4"/>             </android.support.design.widget.appbarlayout>              <android.support.v4.widget.swiperefreshlayout                 android:layout_width="match_parent"                 android:layout_height="match_parent"                 app:layout_behavior="@string/appbar_scrolling_view_behavior">                  <android.support.v7.widget.recyclerview                     android:id="@+id/recyclerview"                     android:layout_width="match_parent"                     android:layout_height="match_parent"/>             </android.support.v4.widget.swiperefreshlayout>  </android.support.design.widget.coordinatorlayout> 

when recyclerview's adapter getitemcount little, recyclerview can't scroll, , toolbar hidden.

it hard show toolbar, show swiperefreshlayout refresh status.

is there can replace solve problem?


Comments