[android-developers] Re: Fragment animations using objectAnimator to slide over the previous fragment

2014-06-06 Thread Doug
I have not thought through this myself thoroughly, but have you considered 
using a FragmentPagerAdapter with a ViewPager?

Doug

On Thursday, June 5, 2014 11:41:02 AM UTC-7, Simon Giddings wrote:


 I have seen the kind of effect I want being demonstrated with the 
 ViewPager 
 http://developer.android.com/training/animation/screen-slide.html#depth-page
  
 - but I am using Fragments.
 Can this kind of transition (just the moving in from the left bit shown at 
 the end) be achieved with fragment animation ?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Fragment animations using objectAnimator to slide over the previous fragment

2014-06-06 Thread Simon Giddings
Thanks for your suggestion.
No, you are right, I have not considered this as yet (didn't know I could 
to be honest).
I'll look into this option, unless anyone else has already done this and 
could share here ?

On Friday, 6 June 2014 10:10:44 UTC+2, Doug wrote:

 I have not thought through this myself thoroughly, but have you considered 
 using a FragmentPagerAdapter with a ViewPager?

 Doug

 On Thursday, June 5, 2014 11:41:02 AM UTC-7, Simon Giddings wrote:


 I have seen the kind of effect I want being demonstrated with the 
 ViewPager 
 http://developer.android.com/training/animation/screen-slide.html#depth-page
  
 - but I am using Fragments.
 Can this kind of transition (just the moving in from the left bit shown 
 at the end) be achieved with fragment animation ?



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Fragment animations using objectAnimator to slide over the previous fragment

2014-06-06 Thread Harri Smatt
Hmm.. Maybe I misunderstood the problem but does it help if you simply use
non-transparent Fragment background colour?
On Jun 6, 2014 2:14 PM, Simon Giddings mr.s.giddi...@gmail.com wrote:

 Thanks for your suggestion.
 No, you are right, I have not considered this as yet (didn't know I could
 to be honest).
 I'll look into this option, unless anyone else has already done this and
 could share here ?

 On Friday, 6 June 2014 10:10:44 UTC+2, Doug wrote:

 I have not thought through this myself thoroughly, but have you
 considered using a FragmentPagerAdapter with a ViewPager?

 Doug

 On Thursday, June 5, 2014 11:41:02 AM UTC-7, Simon Giddings wrote:


 I have seen the kind of effect I want being demonstrated with the
 ViewPager
 http://developer.android.com/training/animation/screen-slide.html#depth-page
 - but I am using Fragments.
 Can this kind of transition (just the moving in from the left bit shown
 at the end) be achieved with fragment animation ?

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Fragment animations using objectAnimator to slide over the previous fragment

2014-06-06 Thread Simon Giddings
Thanks for this Harri,

Tried it, to no avail.
In fact, what I have found is that the new fragment, when it is animated 
in, comes in *under* the existing fragment.
What I need is for it to be inserted *over* or *before* the existing 
fragment.
Cannot see how to do  this.

Not too happy about ViewPager as it is in the support library - which for 
me means that it is not stable code, at least not as stable as system code.

Any other thoughts ?

On Friday, 6 June 2014 15:16:22 UTC+2, Harri Smatt wrote:

 Hmm.. Maybe I misunderstood the problem but does it help if you simply use 
 non-transparent Fragment background colour?
 On Jun 6, 2014 2:14 PM, Simon Giddings mr.s.g...@gmail.com 
 javascript: wrote:

 Thanks for your suggestion.
 No, you are right, I have not considered this as yet (didn't know I could 
 to be honest).
 I'll look into this option, unless anyone else has already done this and 
 could share here ?

 On Friday, 6 June 2014 10:10:44 UTC+2, Doug wrote:

 I have not thought through this myself thoroughly, but have you 
 considered using a FragmentPagerAdapter with a ViewPager?

 Doug

 On Thursday, June 5, 2014 11:41:02 AM UTC-7, Simon Giddings wrote:


 I have seen the kind of effect I want being demonstrated with the 
 ViewPager 
 http://developer.android.com/training/animation/screen-slide.html#depth-page
  
 - but I am using Fragments.
 Can this kind of transition (just the moving in from the left bit shown 
 at the end) be achieved with fragment animation ?

  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-d...@googlegroups.com 
 javascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to android-developers+unsubscr...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Fragment animations using objectAnimator to slide over the previous fragment

2014-06-06 Thread Kostya Vasilyev
2014-06-06 19:12 GMT+04:00 Simon Giddings mr.s.giddi...@gmail.com:

 Thanks for this Harri,

 Tried it, to no avail.
 In fact, what I have found is that the new fragment, when it is animated
 in, comes in *under* the existing fragment.
 What I need is for it to be inserted *over* or *before* the existing
 fragment.
 Cannot see how to do  this.


Views (child views), by default, are drawn in same order as in their
parent's child view list.

Or you can use this:

http://developer.android.com/reference/android/view/ViewGroup.html#getChildDrawingOrder(int,
int)

Maybe there are other ways...




 Not too happy about ViewPager as it is in the support library - which for
 me means that it is not stable code, at least not as stable as system code.


The support library gets more frequent updates than system code on most
actual devices out there -- not to mention it doesn't get mangled by the
OEMs.

-- K




 Any other thoughts ?


 On Friday, 6 June 2014 15:16:22 UTC+2, Harri Smatt wrote:

 Hmm.. Maybe I misunderstood the problem but does it help if you simply
 use non-transparent Fragment background colour?
 On Jun 6, 2014 2:14 PM, Simon Giddings mr.s.g...@gmail.com wrote:

 Thanks for your suggestion.
 No, you are right, I have not considered this as yet (didn't know I
 could to be honest).
 I'll look into this option, unless anyone else has already done this and
 could share here ?

 On Friday, 6 June 2014 10:10:44 UTC+2, Doug wrote:

 I have not thought through this myself thoroughly, but have you
 considered using a FragmentPagerAdapter with a ViewPager?

 Doug

 On Thursday, June 5, 2014 11:41:02 AM UTC-7, Simon Giddings wrote:


 I have seen the kind of effect I want being demonstrated with the
 ViewPager
 http://developer.android.com/training/animation/screen-slide.html#depth-page
 - but I am using Fragments.
 Can this kind of transition (just the moving in from the left bit
 shown at the end) be achieved with fragment animation ?



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.