Android Dev

dp 크기 programatically 변환

YoonHyeonJoon 2020. 2. 21. 23:08

1. val ZoomControl_topLoca = context?.resources?.getDimension(R.dimen.bt_expandlocation)?.toInt()?:0

 

 

2. dimen에서 생성 <dimen name="bt_expandlocation">110dp</dimen>