Code Monkey home page Code Monkey logo

languageselector's Introduction

Language Selector

Author: Nicola De Nicolais

πŸ“„ Description

Android application built with Kotlin and Jetpack Compose that allows you to select the language of the displayed text.

πŸ”¨ How to install and run the project

Clone this repository :
git clone https://github.com/ndenicolais/LanguageSelector.git

Import the project into Android Studio :

  1. File -> New -> Import Project
  2. Browse to <path_to_project>
  3. Click "OK"

Create a new virtual device or connect an Android device to your computer.
Click Run to start the project on the selected device.

πŸ› οΈ Built with

Kotlin
Jetpack Compose
ViewModel
LiveData
Preferences Datastore
Dagger Hilt

πŸ“š Package Structure

com.denicks21.languageselector  # ROOT PACKAGE
β”‚
β”œβ”€β”€ repository                  # REPOSITORY FOLDER
|   β”‚   β”œβ”€β”€ DataStoreRepository # DataStore repository.
β”‚
β”œβ”€β”€ ui.theme                    # THEME FOLDER
|   β”‚   β”œβ”€β”€ Color               # Color palette used by the app.
|   β”‚   β”œβ”€β”€ Shape               # Components shapes of Compose used by the app.
|   β”‚   β”œβ”€β”€ Theme               # Theme used by the app.
|   β”‚   β”œβ”€β”€ Type                # Typography styles for the fonts used by the app.
β”‚
β”œβ”€β”€ viewmodels                  # VIEWMODELS FOLDER
|   β”‚   β”œβ”€β”€LanguageViewModel    # Model that interact with repository class.
|
β”œβ”€β”€ MainActivity                # Main activity

πŸ“Œ Customization

In the app, you can add or modify languages, you simply need to modify the strings files present in the "strings" folder. These resources are defined within XML files in the "res/values/" folder with the .xml extension.
To support other languages, you can create copies of the strings.xml file within new "res/values-xx/" folders where "xx" represents the language code.

πŸ“Ž Screenshots

languageselector's People

Contributors

ndenicolais avatar

Watchers

 avatar

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.