rework feeds/cats loading progressbar

This commit is contained in:
Andrew Dolgov 2015-06-04 20:17:17 +03:00
parent 596b3d99d5
commit c9398d0fe1
5 changed files with 33 additions and 19 deletions

View File

@ -327,7 +327,7 @@ public class FeedCategoriesFragment extends BaseFeedlistFragment implements OnIt
View loadingBar = getView().findViewById(R.id.feeds_loading_bar); View loadingBar = getView().findViewById(R.id.feeds_loading_bar);
if (loadingBar != null) { if (loadingBar != null) {
loadingBar.setVisibility(View.GONE); loadingBar.setVisibility(View.INVISIBLE);
} }
} }

View File

@ -512,7 +512,7 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
View loadingBar = getView().findViewById(R.id.feeds_loading_bar); View loadingBar = getView().findViewById(R.id.feeds_loading_bar);
if (loadingBar != null) { if (loadingBar != null) {
loadingBar.setVisibility(View.GONE); loadingBar.setVisibility(View.INVISIBLE);
} }
} }

View File

@ -28,12 +28,12 @@
android:visibility="invisible" > android:visibility="invisible" >
</TextView> </TextView>
<ProgressBar <!-- <ProgressBar
style="?android:attr/progressBarStyleLarge" style="?android:attr/progressBarStyleLarge"
android:visibility="gone" android:visibility="gone"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/feeds_loading_bar" android:id="@+id/feeds_loading_bar"
android:layout_gravity="center" /> android:layout_gravity="center" /> -->
</FrameLayout> </FrameLayout>

View File

@ -72,5 +72,13 @@
/> />
</LinearLayout> </LinearLayout>
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:visibility="invisible"
android:indeterminate="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/feeds_loading_bar"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true" />
</RelativeLayout> </RelativeLayout>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/feeds_fragment" android:id="@+id/feeds_fragment"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" > android:layout_height="fill_parent" >
@ -7,15 +7,18 @@
<android.support.v4.widget.SwipeRefreshLayout <android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/feeds_swipe_container" android:id="@+id/feeds_swipe_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:layout_below="@+id/feeds_loading_bar">
<ListView <ListView
android:id="@+id/feeds" android:id="@+id/feeds"
android:dividerHeight="0dp" android:dividerHeight="0dp"
android:divider="@null" android:divider="@null"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" > android:layout_height="match_parent"
</ListView> android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
</ListView>
</android.support.v4.widget.SwipeRefreshLayout> </android.support.v4.widget.SwipeRefreshLayout>
<TextView <TextView
@ -28,11 +31,14 @@
android:visibility="gone" > android:visibility="gone" >
</TextView> </TextView>
<ProgressBar <!-- <ProgressBar
style="?android:attr/progressBarStyleLarge" style="?android:attr/progressBarStyleHorizontal"
android:visibility="gone" android:visibility="invisible"
android:layout_width="wrap_content" android:indeterminate="true"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/feeds_loading_bar" android:id="@+id/feeds_loading_bar"
android:layout_gravity="center" /> android:layout_gravity="center" /> -->
</FrameLayout>
</RelativeLayout>