I'm working on ongoing project which uses Android NavigationComponent and having trouble on figuring out how to get result back from fragment I displayed.
If I would display fragment with FragmentTransaction I use this aproach Android - getTargetFragment and setTargetFragment - What are they used for
Related
I need splash screen animation before entering the main page in android and iOS. but I unable to find this type of animation. tell me anyone knows this means, kindly give me an idea. I attach the below reference. its in developed in native android. how to develop this process in xamarin forms cross-platform(android & iOS).
Reference : https://demonuts.com/splash-screen-animation/
You can set the animation on a ContentPage and set it as MainPage firstly to let it looks like an illusory splash screen. Then you can change the MainPage use Timer Task.Delay(1000);
And you can use the library Lottie from Nuget. Lottie is a library, designed for iOS, Android that allows you run animations. These animations are defined in a JSON file, containing all the details of colors, shapes, transforms and more.
Usage
First install the following Nuget package to your native and share projects.
Com.Airbnb.Xamarin.Forms.Lottie
In your native projects, after the Xamarin.Forms.Forms.Init line, add the following, into each project.(AppDelegate.cs in iOS and MainActivity.cs in Android)
AnimationViewRenderer.Init();
In order to show an animation, you first need the after effects JSON file. Put this in your Assets (Android) or Resources (iOS) folder.
<forms:AnimationView x:Name="AnimationView"
Animation="LottieLogo1.json"
Loop="True"
AutoPlay="True"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" />
There is a sample maybe can help you.
I am making a simple iOS application with two Views using gluon. In one of the views I need to be able to keep screen alive indefinitely, prevent it from rotating and have it full screen without the status bar showing. The other View should have the default behaviour(rotating normally, let screen go off when there is no touch input by the user and status bar should be showing).
I have seen some tutorials on how to do this on Android binding an interface to native code. Is this possible to do in iOS? I have looked around everywhere online and no one seems to have done this. Any pointers ? Thank you.
I am developing xamarin.forms PCL app.
I want to select multiple images from gallery so for ios I use ELCImagePicker.
Everything works fine when I open gallery for first time. But when I open it for second time(for e.g. changing selected image), app crashes. I use messaging center to pass my list of image paths to PCL project.
At second time, I receive messages multiple times and then I get FATAL SIGSEV error.
I have referred this link. And it has been very useful to people when I searched related multiple image picker on google.
Why is this happening ? Please help
I'm building an mobile app with Meteor. Now if the phone changes orientation, the page no longer renders correctly. So I need to refresh the page after orientation change.
Is there a way to detect the orientation change in Meteor cordova app?
Thanks.
A good point to start is this post that actually covers both Android and iOS platforms:
Detect rotation of Android phone in the browser with JavaScript
We currently have two handlers added with window.addEventListener in
Template.template_name.created. resize event is used on Android and orientationchange event is used on iOS.
My App consists of a main ViewPager Fragment and an Adview which is inserted on main FragmentActivity layout. (I use Google Play Services for the ad.)
The weird problem is that just after adding Adview, upon each switch between different FragmentActivities, the App size (Settings> Apps >App info> STORAGE> Data) increases by about 100kB.
To be sure about all other interferring reasons I already disabled SQLite database and SharedPrefrences, but I still have the same problem.
Could you please help me about this?