January 16, 2016 · Public
Hey everybody , can anybody help me in here...?? i was watching the android app development for beginners - 16 - Converting DIP to Pixels ... i wasn't able to understand the code line
int px =(int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,200,r.getDisplayMetrics());
can anyone explain this to me ..? i know it is converting the dip into pixels for function setWidth function as it can take only integer as the parameter but how is this conversion taking place .??
and what exactly getResources() do ...? i read that it get the information about the app , how,.?
and can anyone elaborate on the topic dip and pixels or maybe provide any link .. i am not getting the exact grip ..