last day (14 days later) » 

11:48 AM
0
Q: Swap View with Animation

JayeshI have two Views (Buttons) Button1 and Button2 at some position on screen and one ImageView now when I click on ImageView Button1 is move on Button2 Position and Button2 is move on Button1 position like below image Now when I Click again on ImageView the same process repeat, swap two buttons o...

 
it always do this : button1 is moving down and button2 is moving up side and also when button1 is move down it just move little bit right side
 
Use TransitionManager API
 
@SweetWisherツ: just copy and paste my code in eclipse you will find what is the issue
@pskink: any link or demo please
 
@SweetWisherツ: I upload the xml please check
@pskink: please don't waste my time...
 
11:48 AM
man did you actually read it? this is the working demo: doubleencore.com/2013/11/new-transitions-framework and next time put some more effort in googling...
more here: eclipsesource.com/blogs/2013/12/12/… and here blog.stylingandroid.com/transition-animation-part-1 the second one shows exactly what you wanna do, again before rude answering do some googling...
 
@pskink: dude, you give me developer.android.com link, the whole world know that link and by the way I have googling so much but I can't find proper demo or code for my question thats why I post question here... Lol...
 
"you have googling so much..." really? i googled for demos in 5 minutes and gave you three working demos... the last one is exactly what you want to do, man
 
@pskink: ya thanks, you have googling a very good and I will use that link in future , but recently that are not helpful for me for my issue
@pskink: If you can give solution then post your code as answer of my question
 
aha ok, good luck then, and again the solution is reading the last link i gave you: blog.stylingandroid.com/transition-animation-part-1, see the first demo video...
 
@pskink: ok , Let me try using that code
 
11:48 AM
here you have the working code snippet: pastebin.com/n1viXjd2
 
@pskink: TransitionManager is only supported in kitkat version API Level 19 only....
 
so use the backport library
 
@pskink: any link
 
backport library means ?
 
11:48 AM
it means that you can use it the same way you are using google's support libraries: it backports some features from some API version to earlier API, the same way using support-v4 you can use Fragments in pre v4 SDK
 
There is no any backport library or alternative available for TransitionManager support on lower version of android
 
did you google for "TransitionManager backport" ??? this is the result: google.com/…, the FIRST link is: github.com/guerwan/TransitionsBackport (guerwan/TransitionsBackport · GitHub), you really should change your attitude, otherwise you will not be able in the future to find the people who will do your homework...
 
@pskink: ya I will try, thanks for reply bro
@pskink Hi
 
hi
 
thanks for your answer brothere
brother*
where are you from ?
 
11:51 AM
sure, no problem
EU
 
EU ??
full name please
 
European Union
 
OK, nice to talking with you
 
yeah indeed, anyway, so whats the point?
 
nothing, I just want to know where are you from, you have good experience with android
 
11:59 AM
good experience can be learned, by learning, googling and analising the source code you can do really much
i mean it
so if you don't have any problems, so i gotta go..
 
ok, sure
 

last day (14 days later) »