Category : listview

I am trying to put a button in a custom listview that should reset all the values of the widgets in that row (eg: unchecking all the radiobuttons). I have used something like this inside getView() btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick() { editor.putBoolean("rb1"+position,false).apply(); editor.putBoolean("rb2"+position,false).apply(); rb1.setChecked(false); rb2.setChecked(false); et.setText(""); notifyDataSetChanged(); } } But the changes ..

Read more

I want to Intent two different activity(FreeLine, MoveCircle) if i click that start button it will always start FreeLine How to separate these intents..? @Override public View getView(final int position, View convertView, ViewGroup parent) { final Context context = parent.getContext(); if (convertView == null) { LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = mInflater.inflate(mLayout, parent, false); } ..

Read more

Unconditional layout inflation from view adapter: Should use View Holder pattern (use recycled view passed into this method as the second parameter) for smoother scrolling. on: convertView= inflater.inflate(mResources,parent,false); Here is the code: public View getView(int position, View convertView, ViewGroup parent) { String name = getItem(position).getName(); String birthday = getItem(position).getBirthday(); LayoutInflater inflater = LayoutInflater.from(mContext); convertView= inflater.inflate(mResources,parent,false); ..

Read more