cipheroidharshal / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

.progress() fails hiding progressbar #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Follow this example: 
http://code.google.com/p/android-query/wiki/ImageLoading#Progress
2. ProgressBar is not hidden, it's just the imageview that's on top
3. No profit

What is the expected output? What do you see instead?
Image gets shown on top, progressbar still visible behind.

What version of the product are you using? On what operating system?
0.24.3

Please provide any additional information below.

This doesnt work:

<RelativeLayout
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="20dp"
                    android:padding="0dp" >
                    <ImageView
                        android:id="@+id/store_location"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:scaleType="centerInside" />
                    <ProgressBar
                        android:id="@+id/store_location_loader"
                        android:layout_width="15dp"
                        android:layout_height="15dp"
                        android:indeterminate="true"
                        android:layout_centerInParent="true" /> 
                </RelativeLayout>

This "works" as above, the progressbar is still shown though. We observed this 
with some layout issues where there was some margin/padding on the image, there 
by showing that the progressbar was still visible:

<RelativeLayout
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="20dp"
                    android:padding="0dp" >
                    <ProgressBar
                        android:id="@+id/store_location_loader"
                        android:layout_width="15dp"
                        android:layout_height="15dp"
                        android:indeterminate="true"
                        android:layout_centerInParent="true" /> 
<ImageView
                        android:id="@+id/store_location"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:scaleType="centerInside" />

                </RelativeLayout>

aq.id( R.id.store_location )
    .progress( R.id.store_location_loader )
    .image( item.getStorelocation(), true, true );

Original issue reported on code.google.com by vilderek...@gmail.com on 6 Dec 2012 at 3:48

GoogleCodeExporter commented 8 years ago
Fixed in latest release.

Original comment by tinyeeliu@gmail.com on 9 May 2013 at 7:38

GoogleCodeExporter commented 8 years ago
i use ndroid-query-full.0.26.7.jar but progress bar is still not hidden :(

Original comment by huuhu...@gmail.com on 12 May 2014 at 4:40

GoogleCodeExporter commented 8 years ago
You must use the following sequence of call methods:
aq.id(R.id.image).progress(R.id.progress).image(imageUrl, false, false);
As an example, the official: 
https://code.google.com/p/android-query/wiki/ImageLoading#Progress

Otherwise, the progress bar is not hidden.
This is a non-working sample code:
aq.id(R.id.image).image(imageUrl, false, false).progress(R.id.progress);
In this case, a progress bar is not attached to the load.

Original comment by beryoz...@gmail.com on 23 Jun 2015 at 1:11