GithubHelp home page GithubHelp logo

majdaelai / kotlin-android-starter-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from delasign/kotlin-android-starter-project

0.0 0.0 0.0 1.29 MB

Android Kotlin Starter Project

Shell 2.57% Kotlin 97.43%

kotlin-android-starter-project's Introduction

๐Ÿš€ Quick start

  1. Install Android Studio

    Download and install Android Studio (link).

  2. Make sure Java is Installed

    In terminal run:

    java --version

    If Java is not installed, run the following lines:

    brew install java
    brew install oracle-jdk --cask

    If you need to install brew, go to this link to learn how.

    Once you're done, confirm that Java is installed by running the following line in terminal:

    java --version
  3. Install KLint This project uses ktlint and Spotless to maintain code consistency.

    For this to work you must have installed ktlint on your machine.

    brew install ktlint

    If you need to install brew, go to this link to learn how.

  4. That's it

    Open this project in Android Studio and get started.

๐Ÿ’ป Keyboard Shortcuts

Select Many lines

Option + Shift + Click

Format

Format this file
Command + Option + L

Format this file, with options
Command + Option + Shift + L

Find

Find in File
Command + F

Find and Replace in Project
Command + Shift + F ->

Find and Replace

Find and Replace in File
Command + R

Find and Replace in Project
Command + Shift + R

๐Ÿ–‡๏ธ Resources

  1. All Keyboard Shortcuts ๐Ÿ”—
  2. Convert Colors to Android.Graphic.Color ๐Ÿ”—
  3. Convert Colors to ARGB ๐Ÿ”—

๐Ÿ“š Tutorials

Basics

  1. How to clean and rebuild an Android project in Android Studio ๐Ÿ”—
  2. How to sync an Android project with its Gradle files in Android Studio ๐Ÿ”—
  3. How to rename an Android Studio Project ๐Ÿ”—
  4. How to enable developer mode on an Android phone or tablet ๐Ÿ”—
  5. How to create a file, folder or resource in Android Studio ๐Ÿ”—
  6. How to add a custom font to an Android Studio project ๐Ÿ”—
  7. How to add and use custom colors in an Android project ๐Ÿ”—
  8. How to get the current Android System Language in Kotlin ๐Ÿ”—
  9. How to maintain state values when Android changes configuration ๐Ÿ”—
  10. How to implement a custom back button action in an Android Activity in Kotlin ๐Ÿ”—
  11. How to implement a custom back button action in a Composable in Kotlin ๐Ÿ”—
  12. How to change the Android app icon in Android Studio ๐Ÿ”—
  13. How to change an Android App's Splash Screen ๐Ÿ”—

For App Releases

  1. How to build a test APK in Android Studio ๐Ÿ”—
  2. How to build and find a release APK or Bundle in Android Studio ๐Ÿ”—
  3. How to build and test a release APK on a local device ๐Ÿ”—
  4. How to obfuscated the code of an Android app in Android Studio ๐Ÿ”—
  5. How to not obfuscate specific Android files or folder ๐Ÿ”—

Coordinators / Managers

  1. How to create and use a Singleton in Kotlin ๐Ÿ”—
  2. How to create a Styleguide in Android Studio and Kotlin ๐Ÿ”—
  3. How to create and use a Language Coordinator in Kotlin ๐Ÿ”—
  4. How to store and retrieve data using the Android DataStore ๐Ÿ”—

Jetpack Compose

  1. How to implement custom Text Styles using Kotlin and Jetpack Compose ๐Ÿ”—
  2. How to use light mode and dark mode in Android Studio and Kotlin ๐Ÿ”—
  3. How to use light mode and dark mode in Android Studio and Kotlin ๐Ÿ”—
  4. How to determine if an Android app is using light mode or dark mode ๐Ÿ”—
  5. How to create a composable that uses a ConstraintLayout in Kotlin ๐Ÿ”—
  6. How to implement an image in Android using Jetpack Compose and Kotlin ๐Ÿ”—
  7. How to use Material Symbols in Android, Jetpack Compose and Kotlin ๐Ÿ”—
  8. How to tint an icon or an image using Jetpack Compose and Kotlin ๐Ÿ”—
  9. How to create a custom button using Jetpack Compose and Kotlin ๐Ÿ”—
  10. How to load and display an image from a URL using Jetpack Compose and Kotlin ๐Ÿ”—
  11. How to create a composable that sizes to fit using Kotlin ๐Ÿ”—

Intents / Notifications

  1. How to broadcast an Intent in Kotlin ๐Ÿ”—
  2. How to listen for an intent using a Broadcast Receiver in an Activity ๐Ÿ”—
  3. How to listen for an intent using a Broadcast Receiver in a Composable ๐Ÿ”—

** Rotation / Orientation**

  1. How to make the Android Studio emulator update the screen on rotate ๐Ÿ”—
  2. How to determine the orientation of an Android device ๐Ÿ”—
  3. How to determine if an Android device is Landscape or Portrait ๐Ÿ”—
  4. How to lock an Android apps orientation in Android Studio ๐Ÿ”—

Data

  1. How to add a JSON file to an Android Studio project ๐Ÿ”—
  2. How to read a JSON file from the assets folder using Kotlin ๐Ÿ”—
  3. How to convert a JSON into usable data in Kotlin ๐Ÿ”—
  4. How to make an API request in an Android app using Kotlin ๐Ÿ”—

Camera

  1. How to setup a camera in an Android app using Jetpack Compose ๐Ÿ”—

Security

  1. How to manage what broadcasts Broadcast Receivers receive in Kotlin ๐Ÿ”—
  2. How to implement implicit and explicit Android Intents in Kotlin ๐Ÿ”—

Settings

  1. How to Soft Wrap Files in Android Studio ๐Ÿ”—
  2. How to change git version control automation settings ๐Ÿ”—

Gradle

  1. How to create a Gradle file in Android Studio ๐Ÿ”—
  2. How to run a Gradle Kotlin DSL build task in Android Studio ๐Ÿ”—
  3. How to run a task at any stage of an app Gradle build ๐Ÿ”—

Linting

  1. How to add ktlint and spotless to an Android project ๐Ÿ”—
  2. Spotless Gradle Guide ๐Ÿ”—
  3. How to run Spotless and ktlint in a pre-commit git hook ๐Ÿ”—
  4. How to add a pre-commit git hook script using a Gradle task ๐Ÿ”—

Errors

  1. How to fix the JAVA_HOME invalid directory error on a Mac ๐Ÿ”—
  2. How to fix the SDK location not found error in Android Studio ๐Ÿ”—
  3. How to fix installation did not succeed due to calling service package ๐Ÿ”—

๐Ÿงน Spotless and ktlint

Apply Spotless Check In Android Studio, open the terminal window and run the following line

./gradlew spotlessCheck

Apply Spotless Apply In Android Studio, open the terminal window and run the following line

./gradlew spotlessApply

Apply ktlint check In Android Studio, open the terminal window and run the following line

./gradlew ktlintCheck

Apply ktlint format In Android Studio, open the terminal window and run the following line

./gradlew ktlintFormat

Modify Spotless and ktlint Open the spotless.gradle to change the configuration using the Spotless Gradle Guide ๐Ÿ”—.

kotlin-android-starter-project's People

Contributors

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