I'm working on an android App,and it's designed with numbers (margins etc) no relative things so I think I'll find many problems with different screen sizes so I thought of making a function which will keep the data in DIMENSIONS
file proportional to user screen size like ( User's screen size X dimen)/(the screen size which the app were designed on)
, so I want to know if this won't cause any problem on App working etc ..
Thank you =)
May be you can try below library which manages all the screen size resolution automatically.
compile 'com.intuit.sdp:sdp-android:1.0.4'
You need to just add the dependency in your build.gradle
file and you are done.
You need to specify like:
android:layout_height="@dimen/_10sdp"
Instead of:
android:layout_height="@dimen/10sdp"