Using Scalable DP and SP in your design
Save your time to build responsive deigned app in android
I know most and beginners/intermediate android developers are not so used to build responsive designs and it’s so complex task to define different values for different dimensional devices as android has vast variety of devices which differs in size and it’s screen resolution rather than having known size like iPhone devices.
I’m also an android developer who knew about to build responsive designed app by defining different values in different dimens.xml
in required dimensional folders.
When I started it, I had an interest to do that thing but After working on more than one project, I felt that it is so time wasting to define it every time when I start new project. Might you also have felt the same if you have worked on that.
But I was lucky that one of my team member Shivamssoni who was beginner at that time but he found and explored a library which provides a way to build responsive designed app using Scalable DP and SP.
I saved most of 60% of designing time using this library.
SDP (Scalable DP)
SDP library is helpful to define scalable size unit instead of just defining dp
as unit. Example is
<ImageView
android:src = "@drawable/ic_image"
android:layout_width = "@dimen/_50sdp"
android:layout_height = "@dimen/_50sdp" />
SSP (Scalable SP)
SSP library is helpful to define scalable size unit for defining text related dimens instead of just defining sp
as unit. Example is
<TextView
android:text = "Hello SSP"
android:textSize = "@dimen/_16ssp" />
If you are providing normal
sp
as16sp
to your text size then in ssp unit you can give14ssp
which will make your design scalable in any device.
Me and My team members used this library in our projects and saved lot of time and increased our productivity.
Now its your turn to use this. Let’s enjoy and save your time and energy both.