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);
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);
if (loadingBar != null) {
loadingBar.setVisibility(View.GONE);
loadingBar.setVisibility(View.INVISIBLE);
}
}

View File

@ -8,7 +8,7 @@
android:id="@+id/feeds_swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ListView
android:id="@+id/feeds"
android:dividerHeight="0dp"
@ -28,12 +28,12 @@
android:visibility="invisible" >
</TextView>
<ProgressBar
<!-- <ProgressBar
style="?android:attr/progressBarStyleLarge"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/feeds_loading_bar"
android:layout_gravity="center" />
android:layout_gravity="center" /> -->
</FrameLayout>

View File

@ -72,5 +72,13 @@
/>
</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>

View File

@ -1,5 +1,5 @@
<?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:layout_width="fill_parent"
android:layout_height="fill_parent" >
@ -7,15 +7,18 @@
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/feeds_swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:layout_below="@+id/feeds_loading_bar">
<ListView
android:id="@+id/feeds"
<ListView
android:id="@+id/feeds"
android:dividerHeight="0dp"
android:divider="@null"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ListView>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
</ListView>
</android.support.v4.widget.SwipeRefreshLayout>
<TextView
@ -28,11 +31,14 @@
android:visibility="gone" >
</TextView>
<ProgressBar
style="?android:attr/progressBarStyleLarge"
android:visibility="gone"
android:layout_width="wrap_content"
<!-- <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_gravity="center" />
</FrameLayout>
android:layout_gravity="center" /> -->
</RelativeLayout>