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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:10:22+00:00 2026-05-26T08:10:22+00:00

I am getting thumbnails from a video that i just recorded and I need

  • 0

I am getting thumbnails from a video that i just recorded and I need to get the thumbnail to fit into an imageview. I am using this to call the thumbnail :

Bitmap curThumb = ThumbnailUtils.createVideoThumbnail(file.getAbsolutePath(), MediaStore.Video.Thumbnails.MINI_KIND);

And I am using this to call the imageview:

image.setImageBitmap(curThumb);

My xml for my imageview looks as such:

<ImageView android:id="@+id/iView" android:paddingRight="10px" android:layout_height="280dp" android:layout_width="320dp" android:layout_gravity="center_horizontal" android:paddingTop="5dp" android:paddingBottom="5dp" android:background="@drawable/border"></ImageView>

The Border that I am using for my background of the image view is an xml which gives the view a nice white border frame, this is follwing xml for it:

<shape xmlns:android="http://schemas.android.com/apk/res/android" shape="oval">

    <stroke android:width="3dp" android:color="#ffffff" />
    <padding android:left="0px" android:top="1dp" android:right="0px"
        android:bottom="1dp" />
    </shape>

I don’t know if its because I am using a MINI_KIND thumbnail but i need to cut it down by a little so it can fit into the imageview perfectly. Any help will suffice. 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-05-26T08:10:22+00:00Added an answer on May 26, 2026 at 8:10 am

    Try adding android:scaleType="fitCenter" to the ImageView’s attributes.

    This will center the image and ensure that (assuming it’s larger than the ImageView’s area) the image covers the entire area and that the image is completely visible along at least one axis.

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

Sidebar

Related Questions

I want to get a thumbnail image for videos from Vimeo. When getting images
I'm trying to get a Video Thumbnail from Streaming Video when touched to a
I need to generate thumbnails from a set of jpg's that need to have
I'm trying to use this php thumbnail generator http://phpthumb.gxdlabs.com/ and i keep getting the
I'm using join to query data from two tables. For each a_id I need
I'm using ffmpeg-php to extract thumbnails from user uploaded videos for a site I'm
I wanted a script that automatically generates thumbnails when from a folder full of
I want to get images from a flickr rss but this code won't get
im new one for android. im developing one application that application getting videos from
I am getting bitmaps from MediStore like MediaStore.Images.Thumbnails.getThumbnail(getApplicationContext().getContentResolver(),id,MediaStore.Images.Thumbnails.MICRO_KIND, null); My question is how to

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.