Movie app in Sketchware using TMDB API PART 1
1
ASD CODE
Code 1 ( To get Results from Responce)
list = (new Gson()).toJson(map.get("results"), new TypeToken<ArrayList<HashMap<String, Object>>>(){}.getType());
Code 2 (To set relative width for GridView)
ViewGroup.LayoutParams params = gridview1.getLayoutParams()
params.width =(int) (getDip(95)*count);
gridview1.setLayoutParams(params);
gridview1.requestLayout();
Poster URL Prefix:
http://image.tmdb.org/t/p/w500
params.width =(int) (getDip(95)*count);
gridview1.setLayoutParams(params);
gridview1.requestLayout();
Syntax error