in Education by
Im trying to make a drawable xml resource to use as background for an activity. The background need to have a image at the top and one at the bottom. My problem is that the images doesn't keep aspect ratio and get stretch by height. How do I make them keep aspect ratio? The popup_activity_background.xml <?xml version="1.0" encoding="utf-8"?> I use the background for the root view in my activity layout JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Try android:scaleType="fitXY" in your bitmap Disclaimer: Your image may look a bit blurry so try to 9Patch also.

Related questions

0 votes
    Im trying to make a drawable xml resource to use as background for an activity. The background need to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    I have an image of a puzzle piece that i need to resize in order for both the pieces I need to ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 19, 2022 in Education by JackTerrance
0 votes
    A _______ on the attribute A of relation r consists of one bitmap for each value that A can take. ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    Bitmap indices are a specialized type of index designed for easy querying on ___________ (a) Bit values ( ... Bitmap Indices in division Indexing and Hashing of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    Architecting for scale, modularity, releasability, and serviceability is an aspect of which dimension of Enterprise Solution Delivery?...
asked Nov 27, 2020 in Technology by JackTerrance
0 votes
    It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 30, 2022 in Education by JackTerrance
0 votes
    In my app the user manipulates a image, rotates, pinch, zoom etc. This is make within onDraw() ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I have few questions about handling large bitmaps, I couldn't find answer on the topics I found where ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 17, 2022 in Education by JackTerrance
0 votes
    Does the bitmap header contain information about how to display the image. like for example flipX, flipY ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    Does the bitmap header contain information about how to display the image. like for example flipX, flipY ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    Which conversion is easier, “Bitmap to Vector” or “Vector to Bitmap”? Give reasons. Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
    Which conversion is easier, “Bitmap to Vector” or “Vector to Bitmap”? Give reasons. Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    Which conversion is easier, “Bitmap to Vector” or “Vector to Bitmap”? Give reasons. Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    Which of the following is a bitmap file type? (a) tiff (b) svg (c) pdf (d) none of the ... programming questions and answers pdf, Data Science interview questions for beginners...
asked Oct 29, 2021 in Education by JackTerrance
0 votes
    The is an important aspect of India’s foreign policy ...... (a) free economic policy (b) interdependence (c) non-alignment (d) nuclear development Please answer the above question....
asked Aug 20, 2022 in Education by JackTerrance
...