How to fill the pixels of an image in android studio? [closed] - android

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I would like to fill in the "pixels" of an example image: a 480x800 image I would like to match up to 800x800 but without changing the width or height, I would like to do so by adding more pixels but a black color without the image being distorted

I believe you are looking for some thing like 9 patch feature
This will give you the ability to specify how image will grow,so you can start from there.

Related

I want to set my layout background as my profile image .. how to do this like this app called vero does [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
you can see this image I want profile image to set as my layout background
check this library https://github.com/wasabeef/Blurry
you have to do this,
Blurry.with(context)
.radius(10)
.sampling(8)
.color(Color.argb(66, 255, 255, 0))
.async()
.onto(parentView);

How to create a layout for an Android card game? (Android Studio) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm pretty new to Android, and I am trying to create a certain card game.
My goal is to show the player cards (between 1-5 cards) face up,
and the rest of the players cards (same amount) face down.
My question is - how can I display the cards, and also add/remove cards?
Thanks.
I can gave you an idea:
Create a LinearLayout (orientation vertical) and inside two realtive layout with weight = 0.5 for both.
Now that you have your screen splitted in two you can add your card directly via code. Create a card object that extend a ImageView and place it using the layout params with leftMargin (your x coord.) and topMargin (your y coord.)
Add your logic in the CardObject.

Android animate view (size of the view increase and then return to normal size) in a layout [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have attached the image in which one imageview is in large size, and i have to animate this, means one by one size of each view will increase and then return to normal size but at a time only one view is in large size.
You have to take one parameter where you store object position which is already larger (i hope you are using gridview or recycler view). then check if position exist then first reduce it and then enlarge recent selected position. for animation check here
https://stackoverflow.com/a/8162779/2128166

Android: creating a layout that goes beyond screen width [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need to create a layout like the image below. The blue rectangle in the image represents the screen.
Creating a layout with 4 images is easy, the simpelest way is probably with vertical and horizontal LinearLayouts.
But i don't have a clue how i can go beyond the screenwidth for panning reasons
It's probably not the best solution but since you would like to design outside the screen borders one option would be to use a RelativeLayout for instance and then assign negative margins for the left-side pictures.

(android) I want to my layout available for large screens too [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want to my layout available for large screens too.On large screens background image grow up but my buttons remains on the left. I try to set margin but it does not work .
My button xml
<Button
android:id="#+id/ex"
android:layout_width="149dp"
android:layout_height="183dp"
android:layout_x="165dp"
android:layout_y="262dp"
android:layout_marginLeft="5dp"/>
what can ı do
Use a parent View other than AbsoluteLayout, remove Layout_x & Layout_y and set the Gravity of the parent View to Center
dude check Supporting different screen sizes. do some google on writing layouts for different screen sizes you will get plenty of help.

Categories

Resources