Is it possible to have a lottie animation when the splash screen is launched?
any examples out there on xamarin?
thanks
No, it's impossible on iOS. The launch screen on iOS only accepts the static image and we can't add any code behind to adjust its display.
If you want to implement it on Xamarin. I recommend you to use a splash page as the App's MainPage first. Place your animation there. Then change the App's MainPage to your first page after the animation has finished.
I don't think it is possible, because there is no code-behind available.
Workaround would be to place a screen after the splash screen and add your Lottie animation there. This way you can also control how long you want to show the (fake) splashscreen.
Related
Is it possible to start the VideoPlayer in fullscreen?
When opening a page, like the PlayWebVideoPage in the demo, would it be possible to start the VideoPlayer in fullscreeen instead of windowed?
In order to achieve that, your video page must be set without NavigationBar:
NavigationPage.SetHasNavigationBar(this, false);
And then, you will also have to hide the Status Bar, both in Android and iOS.
I could not find any example, neither any resource on how to create a splash screen in tornadofx. I have a working splash screen in plain javafx along the same line of this example : https://gist.github.com/jewelsea/2305098
But, I have no clue on how to achieve it in tornadofx as it uses different paradigm with views and fragments instead of stage and screen.
You are not using the JavaFX preloader here as far as I can see, so this is really no different from opening one View while you do your loading, and then replacing that View with another View when you're done. Just point your app class to a SplashScreenView, handle your loading there, then do replaceWith(MainView::class) when you are done. In MainView, you might want to override the onDock callback and do currentStage?.sizeToScene() to make sure the window resizes to your desired size.
How can I make a button for mobile devices? I have a pause screen and a script that accepts touch but it activates when I click on any part of the screen, not just the button.
How can I fix it to activate only on the button? My script is attached to cube with invisible material so basically I want to activate script only when player presses the area around cube.
I wasn't sure how to paste code here so I used pastebin:
http://pastebin.com/ERC39TuU
See GUI.Button reference.
function OnGUI() {
if (GUI.Button(Rect(10,10,100,50), "Click"))
Debug.Log("Clicked button!");
}
With newer versions of unity they implemented a much better GUI designer. I would look into using Canvas. Adding images to your buttons and functions is much easier the nusing OnGUI in my opinion.
https://unity3d.com/learn/tutorials/modules/beginner/ui/ui-canvas
I'm running into an issue where for navigation, we have to use a custom back button, which we are matching to iOS7. So we're creating a UIButton with a background image and then setting it as a custom view of a UIBarButtonItem.
The issue is that when an Action sheet is presented by iOS7, the background is faded. However, the custom button does not and it looks mismatched. Question is - is there a property that can be set to provide the image for the faded state? (though this can be done with delegation, I wanted to see if there was a simpler solution before going that route).
I have tried to set a faded image for UIControlStateDisabled, UIControlStateSystem, UIControlStateReserved with no avail.
Screen shot below:
I ended up using delegation. When the action sheet is presented, my controller received a message and switched the button to faded. When action sheet was dismissed, my controller again received a messaged and switched button to normal.
Actionsheet was subclassed here, which is why I had to do this dance.
I have actually resolved this issue without delegation. The solution is to have a png with clear background. So just the blue of the back arrow. In that case, iOS handles the fading and desaturating. If you add background, it will not.
I have a website that is written in ASP.NET and VB. When trying to view certain pages on an iOS device, the screen will load just blank, but when you rotate the screen all of the data appears. Why is it doing this and how do I make it so that it will load without having to rotate the screen?
Force a screen update when the page is done loading. Something like follows:
// Page loading code
[yourWebView setNeedsDisplay]
// Other code