Tag: android

  • MVVM Architecture with Kotlin and Flows

    MVVM Architecture with Kotlin and Flows

    The Model-View-ViewModel (MVVM) architecture is a powerful pattern used in Android development to separate responsibilities and enhance code maintainability. With the integration of Kotlin Flow, managing data streams becomes seamless and efficient. Model In MVVM, the Model represents the data layer and can include data models and services. View The View, which includes Activities and…

  • SOLID Principles in Android Development with Kotlin

    SOLID Principles in Android Development with Kotlin

    Table of contents Introduction If you’re an Android developer, it’s likely that you’ve come across the SOLID principles. These principles play a critical role in designing software that is robust, maintainable, and flexible. But what exactly are these principles, and why are they so important in Android development? The SOLID principles are a set of…

  • Bottom Sheets in Android

    Bottom Sheets in Android

    Bottom Sheets A bottom sheet is a sheet that slides up from the bottom edge of the screen. Bottom sheets are displayed as a result of user triggered action, and also it can reveal additional content by swiping up. A bottom sheet can be a structural part of your page and also it can be…

  • String Resource Converter

    String Resource Converter

    Hello fellow developers, I want to share with you my new tool which lets you to convert iOS String resources Localizable.strings to Android String resources strings.xml and vice-versa. What it does; It is a smart tool and it will make your job easier. If you are a cross platform developer then you can benefit from…

  • How to Change APK File Name in Android

    How to Change APK File Name in Android

    Today, I want to share with you some valuable file naming scripts for gradle to change your artifact output file names. Gradle is a build system which lets you to produce both android archives(.aar) and android packages(.apk) easily. In android studio the gradle build settings will produce a very boring standart artifact name for you like output files…

  • Best Practice to Instantiate Fragments with Arguments in Android

    Best Practice to Instantiate Fragments with Arguments in Android

    There are some ways to instantiate and pass data to fragments in android development. However, you must be careful when you do that and you should avoid the wrong approaches while you are instantiating and passing data to fragments. The most recommended way of instantiate fragments with arguments is to have factory methods for this…

  • How to Solve Dex 65K Method Exception

    While you gradually develop your application, you most probably would be encountered by the famous unable to execute dex exception.  Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 or  Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 You get this…

  • Anim Button – Inspired by Whatsapp

    In some of the popular chat applications like whatsapp or hangouts, there is a button which can be transformed into a record button and also when you enter some text it will transform into a send button. AnimButton is a custom ImageButton which is imitating the whatsapp’s send button behavior. Basically, it will change the…

  • SparseArray vs HashMap

    Main purpose of SparseArray in Android development is to have a memory efficient integer to object mapping. It is not solely about to gain a performance tweak, however, you will save much more memory by using SparseArray. Benefits of SparseArray Saves you memory (Less memory usage thanks to the primitive keys and no Entry objects)…