android - ParseQueryAdapter loads into mainActivity. I now want the list to be clickable -


i have parsequeryadapter loads information posted tip class main activity. want post able saved favorites class once clicked.

my mainactivity class, think need add code here. assuming onselecteditem needs implemented

 @override     protected void oncreate(bundle savedinstancestate) {           super.oncreate(savedinstancestate);         getlistview().setclickable(true);          mainadapter = new parsequeryadapter<tip>(this, tip.class);         mainadapter.settextkey("title");         mainadapter.setimagekey("photo");          //subclass parsequeryadapter         favoritesadapter = new favoritetipadapter(this);          //default view wingman tips         setlistadapter(mainadapter);         /* string url = "http://twitter.com/";         webview view = (webview) this.findviewbyid(r.id.webview);         view.getsettings().setjavascriptenabled(true);         view.loadurl(url); */     } 

more information may necessary not know how start code. have favorite list populates if user gives tip rating of 4 or higher. however, want favorite list populated clicking on "tip" mainactivity page.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -