in my application , i use the method setMargins(....) for some views .
in my layout , i fixed the width , heigth and size of my views with 'dp' , not pixels ,
and in my code , when i set Margins , it gives a bad result , but when i change dp with px in my layout , that's work fine .
so my question is : can i set Margins with dp values , ?? example :
myView.setMargins(left in dp , top in dp , right in dp , bottom in dp ) ;
thanks in advance