Profile cover photo
Profile photo
asutosh nayak
9 followers -
A technology junkie...
A technology junkie...

9 followers
About
asutosh's posts

Post has attachment

Post has attachment
Now write on your android device screen with your finger. Here is how...

https://ashuzandroidblog.wordpress.com/2017/04/01/how-to-write-using-finger/

Post has attachment
Published a new article to my Tech blog.. Check it out!

Post has attachment
Published new article on my blog...

Android slide relative layout on spinner item change

I have an activity with 3 relative layouts one below the other. Initially all are hidden. I have a spinner on top. I want that when user selects a spinner item the previously visible (1 of the 3 relative layous) relative layout will slide to left and a new relative layout relevant to user selection should slide from right. Now this thing is working fine except for the first time the relative layout is shown. When the relative layout is shown the first time it doesn't seem like it slides in from right..It seems its already there. I use below code for animation :
ObjectAnimator.ofFloat(rl_meeting,"translationX",rl_meeting.getWidth(),0).setDuration(500).start();

When user selects an item in spinner I hide(visibility : gone) the other 2 relative layouts and show the other layout.

Post has attachment

Post has attachment

Post has attachment

Post has attachment

Post has attachment
My new post on Regular Expressions...
Wait while more posts are being loaded