DEV Community

Cover image for Lesser-known android lib which is very helpful.
HiteshDhamshaniya
HiteshDhamshaniya

Posted on

Lesser-known android lib which is very helpful.

In this post, I am going to introduce a very useful lib which is not much popular but at the same time, it’s most important for support multi-screen resolution app development in android.

I come across with that lib when I was looking for a smart and easy solution to provide multi-screen support in android application development.

It is none another than SDP — a scalable size unit.
I found it is very essential to manage different screen resolutions. The cool feature about this lib is easy to use, just add dependency into your project and replace the used of dp to _sdp, as simple as that. Isn’t cool?

How hard it to used in my Application?
Its very easy to used in application, I have ever used that much easy third party libs to application development.

Show me the proof of simplicity.
Why not, we android developer know the use of DP right? SDP use is as simple as used dp, you just need to add prefix _{xx}sdp, i.e _10sdp, isn’t easy? Let me add whole layout code to better understanding.

All right, but where is the gradle details?
Here is the sdp grandle.

dependencies {
implementation 'com.intuit.sdp:sdp-android:1.0.6'
}

For more detail please check repo. here is the URL
https://github.com/hitesh-dhamshaniya/sdp

Top comments (0)