Support Library
Support Library
Is it possible to use a support library through script? im after the navigation drawer in the support design library.
Re: Support Library
I don't think lightning packages support libraries. Loading libraries into lightning at runtime is not impossible, but not easy either. Multitool does some classloader magic to load its own classes. I'm not sure if it is possible without another package on the device.
Re: Support Library
ah I see sounds like more trouble than a moose on the interstate and probably not something I could do anyways. The script editor uses a nav drawer I remember pierre said we cant use the actionbar because it was a custom component and not a real actionbar but that he could make the real actionbar available. So if the nav drawer actually is a nav drawer and not a custom component maybe making that available would be possible.
Re: Support Library
It is a custom component.
Re: Support Library
Indeed the one used in the app drawer is a custom component. This is possible to display and configure the standard actionbar through script but not in the app drawer. In a normal desktop it should work.
Lightning don't use with the support library because it's big. It might be shipped as a independent package and dynamically load classes as F4Endir said though. To ease the process there could be some "import(SomeStuff)" javascript call.
Lightning don't use with the support library because it's big. It might be shipped as a independent package and dynamically load classes as F4Endir said though. To ease the process there could be some "import(SomeStuff)" javascript call.
Re: Support Library
I was the 1 who asked for the Actionbar remember it works great.
"It might be shipped as a independent package and dynamically load classes as F4Endir said though. To ease the process there could be some "import(SomeStuff)" javascript call"
I don't think its available as an independent package but I think the import(SomeStuff) idea would be useful.
"It might be shipped as a independent package and dynamically load classes as F4Endir said though. To ease the process there could be some "import(SomeStuff)" javascript call"
I don't think its available as an independent package but I think the import(SomeStuff) idea would be useful.
Re: Support Library
I perfectly remember @JayM
In practice, a huge number of apps make use of parts of the support library. I wonder whether it could be possible to "link" with a well known app (say, Google Play...) to import those support classes. That would be dirty but the concept is interesting: code sharing. Wouldn't that be great?
In practice, a huge number of apps make use of parts of the support library. I wonder whether it could be possible to "link" with a well known app (say, Google Play...) to import those support classes. That would be dirty but the concept is interesting: code sharing. Wouldn't that be great?
Re: Support Library
that sounds really great but I have a feeling it's not possible maybe for security reasons but if you get chance to look into it that would be cool.
Re: Support Library
Surprisingly you can access other app's package. For instance it is possible to read resources (graphics and other stuff), so maybe code too.
Re: Support Library
It is pretty easy to access code from other packages, if the package wants to be accessed. Multitool does it for basically everyting. This script loads this class, which can be used to load e.g. the main multitool script class, which is compiled against proxies of lightnings classes (not technically necessary, and requires some magic to work, but makes great readable code).
The only limit this has is that it is impossible to add things which require entries in LLs AndroidManifest, like Activities, Services, NotificationListeners, or ContentProviders.
Re: Support Library
Lightning did that with widgets a long time ago, but this is easier as all packages share the same "user id" (and signature).