[android-developers] Re: Fragment animations using objectAnimator to slide over the previous fragment
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
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
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
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 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.
[android-developers] Activity starting for no apparent reason
I have an app that runs perfectly on some phones (All samsung Galaxys, some LGs) and fails on an HTC ONE X, and an LG G2. The app has a MainActivity, a Flashlight activity, a broadcast receiver, and an intent service. The app can run in two different modes. Mode 1: The user clicks on the icon and the mainactivity runs - when this happens, the MainActivity immediately runs the Flashlight activity and calls finish. The app functions as a flashlight program. Mode 2: The broadcast receiver receives a Google Cloud Message and runs the intent service which loads up an extra bundle and runs MainActivity. MainActivity detects the extra and does NOT run FlashLight but instead does some other work. The problem is with Mode 2 on an HTC ONE X or LG G2, when the intent service runs MainActivity, the onStart event is triggered in the FlashLight activity showing the flashlight screen. As expected, MainActivity functions perfectly - the problem is just that the FlashLight screen shows. This is the code the intent service uses to start MainActivity... Intent intentHome = new Intent(GlobalStuff.GCT,MainActivity.class); intentHome.putExtra(whattodo, presence); intentHome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); GlobalStuff.GCT.startActivity(intentHome); //GlobalStuff.GCT is app context This is the app manifest file... ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.deanblakely.Target android:versionCode=4 android:versionName=1.4 uses-sdk android:minSdkVersion=10 android:targetSdkVersion=19 / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / uses-permission android:name=com.android.vending.CHECK_LICENSE / uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / uses-permission android:name=android.permission.CAMERA / uses-permission android:name=android.permission.READ_PHONE_STATE / !-- following permissions for GCM -- uses-permission android:name=android.permission.GET_ACCOUNTS / uses-permission android:name=android.permission.WAKE_LOCK / uses-permission android:name=com.google.android.c2dm.permission.RECEIVE / permission android:name=com.deanblakely.Target.permission.C2D_MESSAGE android:protectionLevel=signature / uses-permission android:name=com.deanblakely.Target.permission.C2D_MESSAGE / uses-feature android:name=android.hardware.camera / application android:allowBackup=true android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@android:style/Theme.NoTitleBar activity android:name=com.deanblakely.Target.MainActivity android:label=@string/app_name android:theme=@android:style/Theme.NoDisplay android:excludeFromRecents=true intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity meta-data android:name=com.google.android.gms.version android:value=@integer/google_play_services_version / receiver android:name=.GcmBroadcastReceiver android:permission=com.google.android.c2dm.permission.SEND intent-filter action android:name=com.google.android.c2dm.intent.RECEIVE / category android:name=com.deanblakely.Target / /intent-filter /receiver service android:name=.GcmIntentService / activity android:name=com.deanblakely.Target.FlashLight android:screenOrientation=portrait android:label=@string/title_activity_flash_light /activity activity android:name=com.deanblakely.Target.Tell android:label=@string/title_activity_tell android:theme=@android:style/Theme.NoDisplay /activity uses-library android:name=com.google.android.maps / service android:name=com.deanblakely.Target.StalkService android:exported=false/ /application /manifest -- 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