rabarron / 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 9 years ago

GoogleCodeExporter commented 9 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 9 years ago
Fixed in latest release.

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

GoogleCodeExporter commented 9 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