Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Companies
    • Conferences
    • Courses
    1. Home
    2. Tags
    3. picasso
    Log in to post

    • S

      Preservation of images in android Annex
      Software Programming • java android picasso • • simrah  

      2
      0
      Votes
      2
      Posts
      0
      Views

      morde

      According to the extradition of the Google, https://www.google.ru/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=android%20write%20bitmap%20to%20file write Bitmap I've got a file. https://stackoverflow.com/a/673014/3212712 :FileOutputStream out = null; try { out = new FileOutputStream(filename); bmp.compress(Bitmap.CompressFormat.PNG, 100, out); // bmp is your Bitmap instance // PNG is a lossless format, the compression factor (100) is ignored } catch (Exception e) { e.printStackTrace(); } finally { try { if (out != null) { out.close(); } } catch (IOException e) { e.printStackTrace(); } } This file can then be displayed in a row. Picasso so:Picasso.with(getApplicationContext()) .load("file:///" + filePath) .placeholder(R.mipmap.ic_launcher) .into(imageView);
    • Mystic

      Picasso doesn't want to take pictures first, what's wrong?
      Software Programming • android picasso • • Mystic  

      2
      0
      Votes
      2
      Posts
      0
      Views

      O

      Try to download the picture in a normal way without using the Target, that is, somehow:Picasso.with(this) .load(imgURL) .error(R.mipmap.ic_launcher) .into(imageView);
    • Alberto

      Intent, we need to get a picture address and send it to Picasso.
      Software Programming • java android android intent imageview picasso • • Alberto  

      2
      0
      Votes
      2
      Posts
      0
      Views

      C

      Try it.Picasso.with(context).load(new File(recipe.getUrl())).into(imageView); OrPicasso.with(context).load(new File("сontent://media/external/images/media/8967")).into(imageView);
    • morde

      Expand imageView at height relative width
      Software Programming • java android listview imageview picasso • • morde  

      2
      0
      Votes
      2
      Posts
      0
      Views

      P

      Try it. android:scaleType="fitXY" ; orandroid:scaleX=""; android:scaleX="; ♪
    • M

      Recyclerview and Picasso - pictures are displayed only once
      Software Programming • android recyclerview picasso • • magpie  

      2
      0
      Votes
      2
      Posts
      0
      Views

      J

      Try when you get the kind of event not only to hide it, but also to show you the necessary veins. Somehow:@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { mLocViewHolder mHolder = (mLocViewHolder) holder; final MessageModel model = messages.get(position); mHolder.userName.setText(model.getClientNickname()); if (model.getMessageType().equals("text")) { mHolder.imageView.setVisibility(View.GONE); mHolder.message.setVisibility(View.VISIBLE); mHolder.message.setText(model.getMsg()); } else { mHolder.imageView.setVisibility(View.VISIBLE); } if (model.getMessageType().equals("photo")) { mHolder.message.setVisibility(View.GONE); mHolder.imageView.setVisibility(View.VISIBLE); Picasso.with(context).load(model.getMsg()).into(mHolder.imageView); } else { mHolder.message.setVisibility(View.VISIBLE); } }
    • M

      Android. Picasso and Adapter. No pictures.
      Software Programming • java android listview adapter picasso • • meriah  

      2
      0
      Votes
      2
      Posts
      0
      Views

      Laycee

      You need to add a chart to your Uri pictures. In the case of Internet references, the scheme - httpAnd you have a local file, so you need to add. "file://", i.e.mPicasso.load("file://" + "/storage/72AD-2013/Download/46298-red-batman-logo-2880x1800-comic-wallpaper.jpg")
    • Mystic

      Picasso problem
      Software Programming • java android picasso • • Mystic  

      2
      0
      Votes
      2
      Posts
      0
      Views

      B

      It's clear here, your image,View, not in the layout, you're looking for it in activity_main.xml, and it's in captcha_layout.xml. Make the following: View alertDialogView = LayoutInflater.from(context).inflate(R.layout.captcha_layout); AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this); builder.setTitle("Важное сообщение!") .setView(alertDialogView ); AlertDialog alert = builder.create(); alert.show(); Picasso.with(MainActivity.this).load(captchaImg).into((ImageView)alertDialogView.findViewById(id));
    • T

      How can ImageView be measured without knowing the exact size of the image?
      Software Programming • android picasso • • tahishae  

      2
      0
      Votes
      2
      Posts
      0
      Views

      E

      There are a few options. Each has its own characteristics. One is not using method placeholder(int res), but to set aplug with standard tools in the src mark.So all the parameters of ScaleType will be used.
    • B

      How to release memory using Picasso (OutOfMemoryError)
      Software Programming • android picasso outofmemoryerror • • Burma  

      2
      0
      Votes
      2
      Posts
      0
      Views

      Analeea

      Found a few things that significantly improved the situation:Use the skipMemoryCache, even though it's outdated.Use Builder to create a copy.Minimize the creation of new Picasso copies.There may be some other decisions and recommendations. But it improved the situation.
    • D

      Why doesn't Glide reduce the image?
      Software Programming • android picasso • • derk  

      2
      0
      Votes
      2
      Posts
      0
      Views

      K

      Yeah, really. On work ImageButton♪ Glide Can't recognize the size of the target view♪ For the decision, it is sufficient to use ImageView♪ <ImageView android:id="@+id/RG_SS_Button1" android:layout_width="100dp" android:layout_height="100dp" android:layout_marginTop="5dp"/> And then there is no need to even indicate how the image should be inserted. There's an increase in the velocity of the drawing as compared to that. Picasso♪ Glide.with(this).load(RG_SS_V1[0]).into(RG_SSButton1);
    • G

      Android receipt of Api pictures (Json)
      Software Programming • android retrofit picasso • • guilherme  

      2
      0
      Votes
      2
      Posts
      0
      Views

      Laycee

      Starting with Picasso in gradle:compile 'com.squareup.picasso:picasso:2.5.2' In response to the request, there's a direct reference to the image, so it's simple:Picasso.with(convertView.getContext()).load(places.getImage()).into(holder.imageView); If you wish, you can set a placeholder at the time of downloading pictures and error of error:.placeholder(R.drawable.placeholder) .error(R.drawable.error)
    • Mystic

      Android keep the pictures in the kash.
      Software Programming • java android picasso • • Mystic  

      2
      0
      Votes
      2
      Posts
      0
      Views

      briley

      We hit the google. https://www.google.ru/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=picasso%20android%20cache Let's go first. https://stackoverflow.com/a/30686992/3212712 Picasso.with(context) .load(imageUrl) .networkPolicy(NetworkPolicy.OFFLINE) .into(imageView, new Callback() { @Override public void onSuccess() { } @Override public void onError() { //Try again online if cache failed Picasso.with(context) .load(posts.get(position).getImageUrl()) .error(R.drawable.header) .into(imageView, new Callback() { @Override public void onSuccess() { } @Override public void onError() { Log.v("Picasso","Could not fetch image"); } }); } });
    • J

      How to download a 3,000x5000 px picture in ScrollView with the potential to increase the image
      Software Programming • android images picasso android scrollview • • juvenalb  

      2
      0
      Votes
      2
      Posts
      0
      Views

      C

      I' this one. https://github.com/chrisbanes/PhotoView And that makes me happy. Thanks @DimXenon
    • inna

      Picasso. No drawable from Resources
      Software Programming • java android picasso • • inna  

      2
      0
      Votes
      2
      Posts
      0
      Views

      Y

      It's likely that the size exceeds the limit. The maximum permissible dimensions depend on the device and can be found with the OpenGL:int[] maxSize = new int[1]; gl.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, maxSize, 0);
    • M

      DrawerLayout + Picasso the marking does not correspond to reality
      Software Programming • java android picasso • • meriah  

      2
      0
      Votes
      2
      Posts
      0
      Views

      emmalee

      You've got a picture going under status. The adroide above the 5th navigationView can close it. And be transparent. It's likely that you have some sort of fitSystemWindows.
    • D

      Android Picasso. Proportionally change the drawing
      Software Programming • android resize picasso • • derk  

      2
      0
      Votes
      2
      Posts
      0
      Views

      M

      Enough after. resize Use centerCrop♪ Try this:resize( , ).centerCrop()
    • A

      Removal of Activity from UC Android
      Software Programming • android bitmap picasso • • amarantha  

      2
      0
      Votes
      2
      Posts
      0
      Views

      R

      GC It'll work when you need it. Put the image down in memory. RGB_565 in a buoy with a load of pictures on the size of the wow, not the original picture.I didn't work with you. Picasso and Frescobut in the example Universal-Image-Loader I can say that. DisplayImageOptions options = new DisplayImageOptions.Builder() .showImageOnLoading(android.R.color.transparent) .bitmapConfig(Bitmap.Config.RGB_565) // уменьшаем количество битов на пиксель. .imageScaleType(ImageScaleType.IN_SAMPLE_INT) // кратное уменьшение изображения под размеры view для экономии памяти. .cacheInMemory(true) .cacheOnDisk(true) .build(); It's all wild to save memory. And yes, you have a foot between activity. GC It won't save.
    • C

      Picasso, Russian symbols in the name of pictures
      Software Programming • android picasso • • Cleofas  

      2
      0
      Votes
      2
      Posts
      0
      Views

      A

      It's like, https://stackoverflow.com/a/27628043/2667883 convertible = URIUri.encode(url);
    • T

      Recipe imageview picasso
      Software Programming • java android android sdk activity picasso • • terrea  

      2
      0
      Votes
      2
      Posts
      0
      Views

      O

      I did it.public class ResizableImageView extends ImageView { public ResizableImageView(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec){ Drawable d = getDrawable(); if(d!=null){ int width = MeasureSpec.getSize(widthMeasureSpec); int height = (int) Math.ceil((float) width * (float) d.getIntrinsicHeight() / (float) d.getIntrinsicWidth()); setMeasuredDimension(width, height); }else{ super.onMeasure(widthMeasureSpec, heightMeasureSpec); } }}
    • G

      Problem with picassoLoader android
      Software Programming • android android imageview picasso • • gionna  

      2
      0
      Votes
      2
      Posts
      0
      Views

      J

      Yeah, that's an example from the source's field.Picasso .with(context) .load(UsageExampleListViewAdapter.eatFoodyImages[0]) .resize(600, 200) // resizes the image to these dimensions (in pixel). does not respect aspect ratio .into(imageViewResize); https://futurestud.io/blog/picasso-image-resizing-scaling-and-fit
    • 1
    • 2
    • 3
    • 4
    • 1 / 4