picasso

Picasso image not displaying

丶灬走出姿态 提交于 2019-12-10 19:31:57
问题 one image is displaying on my app and the other is not, however both can be accesses from the browser. this one in my free host is not displaying on my app. Please not that I can see the image from the free host server : http://www.justedhak.comlu.com/images/uploaded_images.jpg this one is from a random site and its showing on the app. http://api.androidhive.info/json/movies/1.jpg My question, is it could the problem in the way I am uploading the image ? or could be the free host (000webhost)

Target must not be null using Picasso Library

狂风中的少年 提交于 2019-12-10 16:37:15
问题 I implemented a listView using the Picasso Library 2.4.0 and I'm facing an issue. What happens: I launch the app using Android Studio, then I go to the specific fragment on which I implemented the listView , everything looks ok ( all images are being loaded, same for the TextView ) BUT if I try to scroll down the app crashes. This is what it tells me: 2-03 19:45:38.290 31501-31501/com.zenyt E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.IllegalArgumentException: Target must not be null. at

Picasso + RxJava2: Method call should happen from the main thread

…衆ロ難τιáo~ 提交于 2019-12-10 15:32:54
问题 This was my initial Question: I am trying to show a few images in the AutoScrollViewPager . I am using Picasso to achieve the same. However, I would like to do the same with using Rxjava2 + Picasso. I am kinda new to this RxJava concept. So if anyone can help me with details if possible, to convert the below into RxJava code, I would really appreciate it. This is what I do in onViewCreated() imageAdapter = new ImageAdapter(getActivity()); autoScrollViewPager.setAdapter(imageAdapter);

Android - Binding adapter not working

匆匆过客 提交于 2019-12-10 13:00:13
问题 I have create a binding adapter to display picture with picasso, but it doesn't work. I have the following error : Found data binding errors. ****/ data binding error ****msg:Cannot find the setter for attribute 'app:loadPicture' with parameter type java.lang.String on android.widget.ImageView. file:/home/groupevsc.com/mathieu_labar/Documents/Projects/android-jetpack/app/src/main/res/layout/activity_detail_movie.xml loc:27:31 - 27:52 ****\ data binding error **** Here is my binding adapter :

image are not getting loaded using firebaseRecyclerAdapter

假装没事ソ 提交于 2019-12-10 11:59:16
问题 everything is working fine but images are not getting loaded this image from emulator this image display the value log of image-getimgUrl this image frome firebase database the problem her is the value of image and getimgUrl = NULL public class MainScreen extends AppCompatActivity { RecyclerView recyclerView; DatabaseReference mRef; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_screen); recyclerView =

Adding 4mb image from URL to imageVIew in android studio

断了今生、忘了曾经 提交于 2019-12-10 11:55:13
问题 I used picasso for loading my images from web into the imageView and it works perfectly for images less than 600 kb but anything above that returns a black imageview meaning that image is not loading. Can I take an image of 1mb or more from URL using picasso? If not, what is the best way to accomplish this. 回答1: Try Glide. Glide.with(context).load(url).placeholder(R.drawable.placeholder).into(imageView); OR Glide.with (context).load (url).asBitmap().into(imageView); 回答2: u want to use picasso

How to Display Image From cache using picasso image loader when wifi is off?

柔情痞子 提交于 2019-12-10 11:37:11
问题 Display Image from url using picasso image loader,it working fine but i wont display image from cache when wifi is off state. ImageView photo=(ImageView)findViewByid(R.id.photo); Picasso.with(context) .load("thumburl") .placeholder(R.mipmap.ic_launcher) .error(R.mipmap.pattern1) .into(photo); 回答1: first add the OkHttp to the gradle build file of the app module : compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.squareup.okhttp:okhttp:2.4.0' then add this code to your class : Picasso

How can I use a Color as placeholder image with Picasso?

醉酒当歌 提交于 2019-12-10 04:37:10
问题 I want to use Picasso to set a Color as placeholder image. I tried this: int placeHolderColor2 = Color.rgb(20,20,20); Picasso.with(context) .load(item.getImageUrls().get(0)) .placeholder(placeHolderColor2) .error(R.drawable.card_image) .centerCrop() .fit() .into(viewHolder.imageView); But it leads to the following error: 10-07 05:36:42.965 5827-5827/? E/AndroidRuntime: android.content.res.Resources$NotFoundException: Resource ID #0xff141414 10-07 05:36:42.965 5827-5827/? E/AndroidRuntime: at

Adding markers from url with Picasso

﹥>﹥吖頭↗ 提交于 2019-12-10 03:54:37
问题 I'm adding markers to my map from a url using the Picasso library As a marker isn't an ImageView I tried to use a Target instead for(int x =0; x < mapIcon_url.length; x++){ Picasso.with(getActivity()).load(mapIcon_url[x]).resize(marker_size, marker_size+15).into(new Target() { @Override public void onSuccess(Bitmap b) { bitmapMarker = BitmapDescriptorFactory.fromBitmap(b); //create marker option if(b != null) markerOptions = new MarkerOptions().position(marker_position).icon(bitmapMarker));

How to correctly implement a custom listview with images using Picasso library?

放肆的年华 提交于 2019-12-09 13:37:18
问题 I created a custom listview layout with images which are loaded from web like this: http://i.stack.imgur.com/l8ZOc.png It works fine when scrolling down. However, when you scroll down, the previous items go out of screen then destroyed. When you try to scroll up again, it gets loaded again (from cache, faster but not instant) which causes a delay and it is not fluent as it should be. 1.Is there an example of how to do this properly? 2.Is there a way to prevent listview items being destroyed