How to move picture in android - android

I want to make an Application that show a picture, and we can move that picture with some button an the side of picture. let's say this the layout of my Application.
when we click the "TOP" button, it will show top side of the picture.
so, when we click "CENTER" button, it will show middle side of the picture.
when we cliok "BUTTOM" button, it will show button side of the picture.
and when we click "UP button, it will move picture pixel by pixel to top side, and also "DOWN" button will move down the picture. but i got the problem. when i add the picture on the layout, it show all part of picture. i want my Application can show the part that we choise. can someone help me?

You could have an imageview embedded into a scrollview. Then, in code, you can set up button click handlers that sets the scrollview to particular positions.

Related

Image button misplaces when clicking Infer Constrains

I am having a problem with Android Studio. I have everything settled but when I click Infer Constraints, the image buttons misplaces. I could not find any solutions on Internet.
Here is the picture.
`
Try this... For the right image button, Don't set the edit text and centre button as constraints... Set the top and bottom of your layout as you did for the bill amount and place it near the centre image button...

Change button with swipe in Android

I'm making custom camera app and I need to create a camera buttons like picture, video and time laps button as similar to instagram camera. I can create a design similar to these buttons but problem is that I can't move them like that.
If you see in Instagram as shown in picture By default its show picture button but I want to change it when someone swipe finger on it.
Here is image of instagram camera
As you can see in image when user swipe on white ball it moved to next BOOMERANG and so on and back and forth.
Or if user click on any text which is at the bottom of screen it scroll set in the middle right above the arrow.
I want similar functionality But I don't know how to achieve this because I'm new in android. Can you please let me know what I need to read for this.
Thanks.

Android Home screen design with tiles type navigation instead of navigation drawer

I have an app with home page showing a Google map with current location.
So according to the sketch in my home page i have a image icon or button type in my first screen and when i click on that icon or button a tile type opens up where there will multiple activities you can go.
Example if you click on 1 then it goes to one activity to do some task and if you click on 2 then it goes to another activity and similarly for 3 ,4 ,5 ,6 and whenever i click on any of the tiles it should go to particular activity.
I tried searching lot how to achieve this task over Google and thought some experts would me help me out with this in here.
And another point is home screen should not change if you click on icon or button in first image. As i mention in image both screen will be home page with map showing current location.
You can make it yourself. Set a RelativeLayout (in which there are six buttons) in the lower-right corner, and set it's visibility to View.GONE, then set another view in the lower-right corner as the button to open the expanded menu. When click on it, set the button to View.GONE and the RelativeLayout View.VISIBLE.
Hope it helps.

How can I do when button focus on image another image appear

I already have designed menu bar circle layout and wheel menu for android application. it is scroll circle . But I want this
1) When button comes on image ( focus red circle ) it should be clickable
2) when button hover on image ( focus red circle ) it should be show another image
how can I understand which button focus on image.
I put picture.First picture; when button two hovering red circle second picture appear, and another image showing. Which library should I use. Do you know any project open source code?
sorry my bad english.
You can use the arcMenu or the android Clickwheel layouts.
Check thse links for additional details:
ArcMenu
ClickWheel

How to create this type of slider to open next screen?

I want to create a slider to move through next and previous screen like below image
I have already implemented swipe feature to the application like if user swipes left or right he/she can move through next and previous screen but how to implement that swiping on particular area of screen and how to have this type of image.
You can use ViewPager for this.
http://developer.android.com/training/animation/screen-slide.html
this is the work of the following things
A background image repeated for the slider background,an image for the lock and unlock,an image for the button selection.
Events you need will be as follows
Touch event on the lock image
Action performed will be a translation of that button to x position of your thumb you can ger the coordinates in the touchevent
ActionDown will be the place you started the press and up will be the place you realeased it.
So that can help building this slider.

Categories

Resources