Comments (9)
@agat366 Great, it's work now perfect. Thank you 😊
from mvxforms.
@situssoft, did you ever resolve your issue with this? I am running into the same thing.
from mvxforms.
Same thing here.
from mvxforms.
No, I didn't find a fix and I was unable to build the code from source control (which is a pet hate) so I've moved my project to Prism.
from mvxforms.
Same problem here. Any suggestions?
from mvxforms.
I discovered the solution for this problem, remove the class Setup and SplashScreen and change the MainActivity for like this:
[Activity(Label` = "Sample", Icon = "@mipmap/icon", Theme = "@style/AppTheme",
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation,
MainLauncher = true, LaunchMode = LaunchMode.SingleTask)]
public class MainActivity : MvxFormsAppCompatActivity<MvxFormsAndroidSetup<CoreApp, App>, CoreApp, App>
{
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.OnCreate(bundle);
}
}
More details in TipCalc Sample
from mvxforms.
Unfortunately, this is quite often thing with MvvmCross these days, when it just doesn't work out-of-box. So, lots of devs just choose other frameworks.
@rafaelnicolett, this is still not ideal solution as it considers no splash screen, which is barely acceptable for most of apps.
After some investigation I've found correct way to make it work (quite weird why there is no docs about that anywhere) (hello wasted 4 hours of my time):
public class SplashScreen : MvxFormsSplashScreenAppCompatActivity<Setup, CoreApp, App>
The only trick here is setting Theme = "@style/MainTheme"
to support AppCompat
one, but all that is just up to the dev how to define it then...
from mvxforms.
@agat366 Great observation, I know that my solution it's bad, but it's work for hour.
Thank you for shared you solution with us. 👌
from mvxforms.
Fixed in c464e92
from mvxforms.
Related Issues (8)
- System.NullReferenceException at start Xamarin Droid App HOT 3
- Currently now out of date HOT 1
- MasterDetail sample? HOT 1
- SetFlags must be called before init. HOT 3
- How can one bind to properties from inside a Forms XAML? HOT 1
- Strange back button behaviour HOT 1
- Droid Splashscreen and Setup classes are not correct - producing a crash when the Droid app starts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mvxforms.