Giter Club home page Giter Club logo

Comments (9)

rafaelnicolett avatar rafaelnicolett commented on June 15, 2024 1

@agat366 Great, it's work now perfect. Thank you 😊

from mvxforms.

jaredballen avatar jaredballen commented on June 15, 2024

@situssoft, did you ever resolve your issue with this? I am running into the same thing.

from mvxforms.

 avatar commented on June 15, 2024

Same thing here.

from mvxforms.

situssoft avatar situssoft commented on June 15, 2024

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.

rafaelnicolett avatar rafaelnicolett commented on June 15, 2024

Same problem here. Any suggestions?

from mvxforms.

rafaelnicolett avatar rafaelnicolett commented on June 15, 2024

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.

agat366 avatar agat366 commented on June 15, 2024

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.

rafaelnicolett avatar rafaelnicolett commented on June 15, 2024

@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.

martijn00 avatar martijn00 commented on June 15, 2024

Fixed in c464e92

from mvxforms.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.