Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of berserk

berserk

berserk has asked 15 questions and find answers to 5 problems.

Stats

146
EtPoint
13
Vote count
15
questions
5
answers

About

Android developer and freelancer.

Connect with me at Facebook.

private int dpToPx(int dp) { float density = getActivity().getApplicationContext().getResources() .getDisplayMetrics().density; return Math.round((float) dp * density); }

new TypeToken< ArrayList< YourClass>>() { }.getType();

enter image description here

http://www.nerdtests.com/images/ft/nq/e16a60928b.gif