عکس MrNouri
New units of measure for support all of screen devices (MDP)Kotlin
موضوع‌ها
۰
فورک‌ها
۱۵
ستاره‌ها
۷۶
تاریخ ایجاد
۳۱ تیر ۱۳۹۸
آخرین بروزرسانی
حدود ۳ سال قبل

DynamicSizes

New units of measure for support all of screen devices (MDP)
With this library, you can support almost 97% of screens

Install library

  • Gradle

    Add jitpack.io to your root gradle file (project level) :
    allprojects {
       repositories {
           ...
           maven { url 'https://jitpack.io' }
       }
     }
    
    Add the dependency in your app build.gradle
    dependencies {
    implementation 'com.github.MrNouri:DynamicSizes:1.0'
    }
    

    Library result

    MDP example

Requirements

For use this library, you should use AndroidX instead of Support

Usage

Types Values
Normal sizes mdp
Font size font_mdp
Negative sizes mines_mdp
  • Example

    Types Values
    Normal sizes _20mdp
    Font size _12font_mdp
    Negative sizes mines20mdp
  • For see more examples and above images source codes, please see this link : activity_main_mdp.xml

Thanks

Special thanks from Mickael Guillaume for this great movie UI