Android: creating a layout that goes beyond screen width [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 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.

Related

How to fill the pixels of an image in android studio? [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 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.

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

How to stretch layout to edges [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
How can I stretch the black to the edges? Id like to do that then put an overflow to make it a bit transparent :)
Change the dimensions in dimens.xml. By default, there is a border of 16dp around everything, so change that to 0dp. If you continue to want a border around the ListView, you can manually add the padding for that specific object by defining it in the XML layout.
Have you tried match_parent? You could also change the margins.

(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