MultiLanguages | Android 多语种适配框架,兼容高版本,适配第三方库语种 | Internationalization library
kandi X-RAY | MultiLanguages Summary
kandi X-RAY | MultiLanguages Summary
Android 多语种适配框架,兼容高版本,适配第三方库语种
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create the web view
- Load language resources
- Gets the system language
- Determines if the system language is defined
- Called when configuration changed
- Get on language listener
- Gets the application
- Update configuration changed
- On create
- Injects the activity languages
- Initialize library
- Set default locale
- React changed
- Clear language
- Change the language of the application
- Clear the current language
- Called when Activity is created
- Gets the current locale
- Compare two locale
- Called when activity is resumed
- Set shared preferences name
- Launch the activity
- Resume the web view
- Called when the view is paused
- Destroy the web view
- Attach the base context
MultiLanguages Key Features
MultiLanguages Examples and Code Snippets
Community Discussions
Trending Discussions on MultiLanguages
QUESTION
I am trying to figure out what would be a good way of setting up application architecture and how to setup Xcode project itself, in the case where I have one base application, and I need to make multiple applications of it where the all apps will have those same base functionalities but will differ in a way that:
- Assets may be different
- Some features can be added ( new screens that uses new endpoints that are not defined in base app)
- Localization can be differ (eg. one app can only be translated to english, and other can support multilanguages)
and probably some more, but you get an idea of what kind of an app (kinda template app) I am referring to.
What would be a preferred way to implement something like this? I guess targets and making a framework for a shared code is one way to go? Or there is something else that would be suitable too?
...ANSWER
Answered 2020-Apr-07 at 14:55Target is a good start. Thanks to target memberships, you can "share" storyboards, source files and whatever you want between several targets. Then within each specific target, you add your assets and specific functionalities.
Frameworks can be also a good way to share functionalities between apps. But you can start and try simply with targets, and then later factorize code within frameworks.
The way I would do it could be this way :
- Create your project with a single target, let's call it "Blank App"
- Develop functionalities and prepare generic assets for this app
- When you want to add a new App, duplicate the "Blank App" target, remove membership of default assets, add new ones, add also specific source and resource files, and that's it.
After a few targets, you can spot what can be factorized within frameworks. Add a new framework target, migrate your sources in it, make all apps use this framework, and you'll have a nice system.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MultiLanguages
You can use MultiLanguages like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the MultiLanguages component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page