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 9024679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:05:05+00:00 2026-06-16T06:05:05+00:00

I am trying to make an android application in which i would like to

  • 0

I am trying to make an android application in which i would like to have bubbles which float on the screen when some action takes place. Could some one please help me here. I am breaking my head for the past four days but i could not make it up. So please help me here. Thanks in advance.

  • 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-16T06:05:06+00:00Added an answer on June 16, 2026 at 6:05 am

    Instead of using ImageViews, for your use case, it would be better to use a Canvas to handle the drawing yourself.

    Draw a canvas fullscreen with a transparent background. Create an array of bitmaps(one for each image you want to draw, remember to use a circle mask to make them bubble shaped, watch out for memory issues) and draw them to screen at different positions.

    Use a custom RNG algorithm to generate appropriate positions for your bitmaps, and then draw them on the canvas. Use a Thread to handle the animations.

    Here‘s the code for generating a circular cropped bitmap:

    int targetWidth = 100;
        int targetHeight = 100;
        Bitmap targetBitmap = Bitmap.createBitmap(
            targetWidth,
            targetHeight,
            Bitmap.Config.ARGB_8888);
        Canvas canvas = new Canvas(targetBitmap);
        Path path = new Path();
        path.addCircle(
            ((float)targetWidth - 1) / 2,
            ((float)targetHeight - 1) / 2,
            (Math.min(((float)targetWidth), ((float)targetHeight)) / 2),
            Path.Direction.CCW);
        canvas.clipPath(path);
        Bitmap sourceBitmap = BitmapFactory.decodeResource(
            getResources(),
            R.drawable.my_image);
        canvas.drawBitmap(
            sourceBitmap,
            new Rect(0, 0, sourceBitmap.getWidth(), sourceBitmap.getHeight()),
            new Rect(0, 0, targetWidth, targetHeight),
            null);
        ImageView imageView = (ImageView)findViewById(R.id.my_image_view);
        imageView.setImageBitmap(targetBitmap);
    

    Of course, you will have to modify this code to draw the bitmap to the canvas instead of setting it in the ImageView. It would be more efficient, to crop the Bitmap once, then place the cropped image into the array of Bitmaps.

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

Sidebar

Related Questions

I am trying to make a new application and I would like to get
I am trying to make my Android application run some code when run from
I'm trying to make an android application which displays the latest news off of
I am trying to make an android application in which if you drag image
I'm trying to make application for tablet with Android 2.3 with this kind of
I am trying to make simple notepad application for learning android development. So, to
im trying to make an android application that whenever a user conncects to a
I'm trying to make an OAuth 2.0 Provider and an Android application that is
I am trying to make an android application, but to do so I am
I am trying to make my application part of android OS, i downloaded the

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.