Skip to main content
berserk's user avatar
berserk's user avatar
berserk's user avatar
berserk
  • Member for 9 years, 6 months
  • Last seen more than a month ago
  • India
Stats
443
reputation
407
reached
1
answer
3
questions
Loading…
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

This user doesn’t have any gold badges yet.
3
silver badges
9
bronze badges
Top tags
2
Score
4
Posts
100
Posts %
2
Score
3
Posts
75
Posts %
2
Score
2
Posts
50
Posts %
2
Score
2
Posts
50
Posts %
0
Score
1
Posts
25
Posts %
0
Score
1
Posts
25
Posts %
Top posts