Help please!
In my application I use Android-UiTableView
( thiagolocatelli / android-uitableview ) and AQuery
( androidquery / androidquery )
My task is to make the loading of data from json array and load image from URL. Load a list without pictures I was able to:
jgall = json.getJSONArray("gall");
int z = 0;
for(int i = 0; i < jgall.length(); i++){
JSONObject c = jgall.getJSONObject(i);
tableView.addBasicItem(c.getString("name"), c.getString("place"));
}
I try to show a customized view and nothing happens
LayoutInflater mInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
RelativeLayout view = (RelativeLayout) mInflater.inflate(R.layout.custom_view,null);
String iurl = c.getString("img");
aq.id(R.id.img).image(iurl, false, true);
ViewItem viewItem = new ViewItem(view);
tableView.addViewItem(viewItem);
Tell me it's real to make using Android-UiTableView
? if so! how?
I have done this by modifying the library code myself.
I have added the following constructor at UITableView.java:
And the following at BasicItem.java:
And once again modified the setupBasicItem method at UITableView.java file:
Finally, at your code add the following:
Hope it helps, cause it works for me.