Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8016687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:36:36+00:00 2026-06-04T20:36:36+00:00

i have an imageview and i have set a bitmap on it: package com.integrated.mpr;

  • 0

i have an imageview

and i have set a bitmap on it:

package com.integrated.mpr;


import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.os.Environment;
import android.widget.ImageView;
import android.widget.TextView;

public class AlternativeShow extends Activity{


    ImageView altiva;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.alternativeshow);
        File fa = new File(folder,"bmp1.png");
        Bitmap bmpa = BitmapFactory.decodeFile(fa.getAbsolutePath());

        altiva.setImageBitmap(bmpa);
        }
    }
}

I want that on touching of the screen on the imageview , the image should be zoomed >>

How can I make it possible??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:36:38+00:00Added an answer on June 4, 2026 at 8:36 pm

    Use a WebView instead. You can load your image like this:

    webview.loadUrl("file:///android_asset/image.jpg");
    

    Of course you must have your image.jpg in your assets folder.

    If you have it in your SD Card…

    String imageName = "image.jpg";
    webview.loadUrl("file://" + Environment.getExternalStorageDirectory() + "/newdir/" + imageName);
    

    WebView already has zoom implemented so you don’t really need to do anything 😉

    Hope it helps you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have imageView in activity. How I can set position this imageView in my
I have a Imageview in main.xml, how to set the bitmap the to the
I have a problem with UIButton image if I set its imageView contentMode to
I have imageView inside a relative layout. And when i create the activity i
I have an ImageView with a source image set in the xml using the
Scope Image bitmap have to be shown as imageView.setImageBitmap(bitmap) and scaled to fit UI.
i have an app widget, which contains only one imageview. i redraw that image
i have created a coverflow using the code given by http://android.jmsliu.com/138/android-infinite-loop-gallery.html . And it
I have an Android widget that has a configure activity. I also have an
I have an ImageView that I set to center inside the LinearLayout of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.