You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.
but onDragPositsionCHanged library not getting called and the positions are not changing the.
I can drag and onDragStarted is also working.
But when i drop item moves to first location and then back to its original position. no changes literally.
MyAdapter Class.
public class DynamicDrawerAdapter extends BaseDynamicGridAdapter {
Context mContext;
Pac[] pacsForAdapter;
String mSource;
public DynamicDrawerAdapter(Context context,Pac[] pacs, int columnCount) {
super(context,columnCount);
pacsForAdapter = pacs;
mContext = context;
mSource = "mini";
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return pacsForAdapter.length;
}
@Override
public Object getItem(int arg0) {
// TODO Auto-generated method stub
return null;
}
static class ViewHolder{
TextView text;
ImageView icon;
}
@Override
public View getView(int pos, View convertView, ViewGroup arg2) {
// TODO Auto-generated method stub
ViewHolder viewHolder;
LayoutInflater layoutInflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
if (convertView == null){
convertView = layoutInflater.inflate(R.layout.drawer_item, null);
viewHolder = new ViewHolder();
viewHolder.text = (TextView)convertView.findViewById(R.id.icon_text);
viewHolder.icon = (ImageView)convertView.findViewById(R.id.icon_image);
convertView.setTag(viewHolder);
}else{
viewHolder = (ViewHolder) convertView.getTag();
}
viewHolder.icon.setImageDrawable(pacsForAdapter[pos].icon);
if (mSource.equals("mini")){
viewHolder.text.setVisibility(View.GONE);
}else {
viewHolder.text.setText(pacsForAdapter[pos].label);
}
return convertView;
}
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I used Dynamic grid library
but onDragPositsionCHanged library not getting called and the positions are not changing the.
I can drag and onDragStarted is also working.
But when i drop item moves to first location and then back to its original position. no changes literally.
MyAdapter Class.
public class DynamicDrawerAdapter extends BaseDynamicGridAdapter {
}
The text was updated successfully, but these errors were encountered: