Handling all screen sizes android

后端 未结 3 1508
梦如初夏
梦如初夏 2021-01-18 16:48

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

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 17:31

    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"

提交回复
热议问题