berserk
  • India
  • Member for 7 years, 9 months
Stats
839
reputation
192k
reached
4
answers
11
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

5
gold badges
11
silver badges
24
bronze badges
Top tags
2
Score
7
Posts
47
Posts %
1
Score
1
Posts
7
Posts %
0
Score
3
Posts
20
Posts %
0
Score
3
Posts
20
Posts %
0
Score
1
Posts
7
Posts %
Top posts
View all questions and answers