Giter Club home page Giter Club logo

prabhatsdp / youtils Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 398 KB

"youtils" is a comprehensive Android library that encompasses a wide range of Kotlin utility extension functions, catering to various aspects of Android. Designed to simplify app development, this all-in-one toolkit empowers developers to enhance their productivity and create exceptional Android applications seamlessly.

Kotlin 100.00%
android androidutils library package utils

youtils's Introduction

YouTils

Simplify Android App Development with Kotlin Utility Extension Functions

Overview

YouTils is a powerful Android library designed to streamline and simplify app development for Kotlin developers. It provides a collection of utility extension functions for various components commonly used in Android apps. With YouTils, you can perform complex operations effortlessly, saving time and effort during the development process.

Features

  • Extension functions for View, ImageView, TextView, EditText, Bundle, Fragment, Context, numbers, date time, and calendar operations.
  • Simplify complex tasks and reduce boilerplate code.
  • Improve code readability and maintainability.
  • Comprehensive documentation for easy integration.

Getting Started

Installation

To use YouTils in your Android project, follow these steps:

  1. Add the following repository to your settings.gradle file:

    settings.gradle

    dependencyResolutionManagement {
        repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
        repositories {
            google()
            mavenCentral()
            maven { url 'https://jitpack.io' } // Add this line
        }
    }
  2. Add the dependency to your app-level build.gradle file:

    dependencies {
        implementation 'com.prabhatpandey:youtils:1.1.0'
    }

Usage

YouTils offers an array of utility functions that can be easily accessed via Kotlin extension functions. Here's a quick example:

// Import the YouTils extensions
import dev.prabhatpandey.youtils.views.view.hide
import dev.prabhatpandey.youtils.views.view.showIf

class MyActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        // Use YouTils extension functions
        val textView = findViewById<TextView>(R.id.textView)
        
        // change the visibility of the textview to gone
        textView.hide()

        // change the visibility based on condition
        val isLoading = false
        textView.showIf(isLoading)
    }
}

Documentation

You can find the documentation here

Contributions

Contributions to YouTils are more than welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on GitHub.

License

YouTils is released under the MIT License.


Thank you for using YouTils! We hope this library makes your Android app development journey smoother and more enjoyable. If you encounter any problems or have any questions, please don't hesitate to reach out to us.

Happy coding!

Prabhat Pandey

youtils's People

Contributors

prabhatsdp avatar prabhat-oodles 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.