« first day (760 days earlier)      last day (3357 days later) » 

09:38
Here's the activity code: adapter=new GlossaryAdapter(getApplicationContext(),R.layout.row_glossary,list);
lvGlossary=(ListView)findViewById(R.id.lv_glossary);
lvGlossary.setAdapter(adapter);
adapter.notifyDataSetChanged();
and the adapter:
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
//View vi=convertView;
if (convertView == null) {
/*LayoutInflater inflater = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);*/
convertView = inflater.inflate(layout, parent, false);
holder = new ViewHolder();
TextView tv_titale=(TextView)convertView.findViewById(R.id.tv_title);
ImageView iv_glossary=(ImageView)convertView.findViewById(R.id.iv_glossary);
title=glossaryDetails.get(position).result.glossarydetails[position].title;
static class ViewHolder {
TextView title;
TextView image;}
ArrayList<GlossaryGsonResponse>list=new ArrayList<GlossaryGsonResponse>();
for(int i=0;i<glossaryResponse.result.glossarydetails.length;i++)
{
String id=glossaryResponse.result.glossarydetails[i].id;
String title=glossaryResponse.result.glossarydetails[i].title;
String text=glossaryResponse.result.glossarydetails[i].text;
String image=glossaryResponse.result.glossarydetails[i].image;
list.add(glossaryResponse);
}
public class GlossaryGsonResponse {
public String error="-1";
public int status=-1;
public Result result;
public class Result{
public GlossaryDetails[]glossarydetails;
}
public class GlossaryDetails{
public String id;
public String title;
public String text;
public String image;
}
}
6 messages moved from [Java and Android era ](chat.stackoverflow.com/rooms/19132/java-and-android-era)
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
//View vi=convertView;
if (convertView == null) {
/*LayoutInflater inflater = (LayoutInflater) mContext
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);*/
convertView = inflater.inflate(layout, parent, false);
holder = new ViewHolder();
holder.title = (TextView)convertView.findViewById(R.id.tv_title);
holder.image = (ImageView)convertView.findViewById(R.id.iv_glossary);

convertView.setTag(holder);
}
else {
09:54
1 message moved from [Java and Android era ](chat.stackoverflow.com/rooms/19132/java-and-android-era)
 
2 hours later…
11:39
hi there !
can a textbox hold value and text like dropdown menu
for example , when i write in the textbox "hello" , so it has value 30 for example.
 
2 hours later…
13:16
@ShaU you are mad shau.. not jeff
Fact: The Library of Congress has 600 miles of shelves.
@Sword Who are you talking to?
shau
U cant see him??
@ShaU you cant kill me
I have him ignored globally, and I'm sure most people do the same. In fact, I didn't even realize you were referring to the troll until you showed the picture. :P
13:40
If uni hates me... i dont want to be here....BYE guys...
--shaU :D
@ShaU feel free to leave.. :D
I appreciate the amusement, but there's no point quoting from an unwelcomed character. That's the whole point the suspension is there for, so I'm just going to trash all the related messages since it's of no value at all. :p
13 messages moved from Java
 
7 hours later…
user4330208
20:53
So I just got put on a question ban for some weird reason. Anyway can someone in power, you know, "help" a brother out? wink wink
user4330208
I would answer some questions but honestly i dont know s*** so my only option is change IP address and make new account or give up :(
2 messages moved from JavaScript
21:48
What's 6to5? I know what Babel is
/smartass
2 messages moved from JavaScript
 
2 hours later…
23:46
1 message moved from Android

« first day (760 days earlier)      last day (3357 days later) »