Change button with swipe in Android - 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.

Related

launching app by swiping on screen(like Switchr app)

I have a news app.It is supposed to launch by swiping on the screen(homescreen or while in any other activity like switchr app).I learned to code swiping patterns but in my case I have to do exactly in the following way(swiping bottom right to top left)..Kindly have a look over following pictorial representation
1.Firstly app should launch by swiping bottom right to top left on the screen
2.next,show the user with list of scrollable arc menu buttons embedded in it like second image
3.when a user clicks on particular button it has to show a brief description about the content like third image
my problems:
creating arc like scrollable menu on bottom right side of the screen(I googled sia ahmed's solution over here ,it helped me a bit)
creating that parachute like structure(image 3) when user clicks particular bubble like button in arc menu..
please guide me
For the menu check out arcmenu by daCapricorn on github. Also see this question.
The balloon bit is trickier. I know of a balloon hint code for android but i haven't seen it in action.
Hope this helps!

implementing custom view style in actionbar

I want to implement this kind of functionality in android,
for example, when i click on Pinterest the arrow sign will be automatically moved to piterest (Like you can see in image) now if i press twitter then arrow will be moved to there like that..., arrow will move with animation, if anybody knows how to implement then please let me know
Like in above image there is three button (Facebook, Pinterest, Twitter), you can see piterest is selected so arrow is below the pinterest now if i press facebook the arrow will move below facebook image with animation
I think the easiest way is to make three different images.
1st:
2nd:
3rd:
So you do,
if(images[1] was clicked){
imageView.setdrawable(image1);
} else if(images[2] was clicked){
imageView.setdrawable(image2);
} else if(images[3] was clicked){
imageView.setdrawable(image3);
}

How to move picture in 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.

adding button on top of the outgoing call screen in android

![Adding buttons on top of the default call screen of android][1]
http://i.stack.imgur.com/SJ8Pc.jpg
As shown in the below image, there are two buttons one is Live video button and the other is Picture share button, how to add those button on top of the default android call screen while making call.
Thanks,
Android F
I believe the way to do this is to draw views on top of the dialer activity. This is similar, in implementation, to the Facebook home chatHead feature. Have a look at this article, which shows how to draw any view: http://www.piwai.info/chatheads-basics/
In your case, your view would be a LinearLayout containing two buttons.

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