ローディング状態を表示した時点でリスト先頭に移動
This commit is contained in:
parent
c8624ca1cb
commit
568d10e289
|
@ -182,8 +182,14 @@ public class ColumnViewHolder implements View.OnClickListener, Column.VisualCall
|
||||||
|
|
||||||
private void showError( String message ){
|
private void showError( String message ){
|
||||||
tvLoading.setVisibility( View.VISIBLE );
|
tvLoading.setVisibility( View.VISIBLE );
|
||||||
swipyRefreshLayout.setVisibility( View.GONE );
|
|
||||||
tvLoading.setText( message );
|
tvLoading.setText( message );
|
||||||
|
|
||||||
|
swipyRefreshLayout.setVisibility( View.GONE );
|
||||||
|
|
||||||
|
// ロード完了後に先頭から表示させる
|
||||||
|
if( status_adapter.getCount() > 0 ){
|
||||||
|
listView.setSelectionFromTop( 0,0 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue