안드로이드 개발 질문/답변
(글 수 45,052)
public class LayoutAdapter extends BaseAdapter { LayoutInflater Inflater; int layout; Context c;
private Integer[] Pool = { R.id.tableRow2,R.id.tableRow2,R.id.tableRow2,R.id.tableRow2};
private ArrayList<Integer> mPhotos = new ArrayList<Integer>(); public LayoutAdapter(Context c) { Log.e(TAG, "getView : tion_4"); mContext = c; Inflater = (LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}
public int getCount() { Log.e(TAG, "getView : position_1"); return mPhotos.size(); }
public Object getItem(int position) { Log.e(TAG, "getView : tion_1"); return position; }
public long getItemId(int position) { Log.e(TAG, "getView : tion_2"); return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { Log.e(TAG, "getView : position_2"); View row = convertView; Log.e(TAG, "getView : position_3"); if (convertView == null) Log.e(TAG, "getView : position_232"); { LayoutInflater inflater = ((Activity)mContext).getLayoutInflater(); Log.e(TAG, "getView : position_231"); // row = inflater.inflate(R.id.tableRow2, null); convertView = inflater.inflate(R.id.tableRow2, parent, false); Log.e(TAG, "getView : position_230"); / TextView label = (TextView)row.findViewById(R.id.ui_no); EditText code_edit = (EditText)row.findViewById(R.id.code_edit); ImageButton Button1 = (ImageButton)row.findViewById(R.id.Button01); TextView label2 = (TextView)row.findViewById(R.id.Brandmyung); TextView label3 = (TextView)row.findViewById(R.id.Sangpumyung); TextView label4 = (TextView)row.findViewById(R.id.panmae); EditText su_edit = (EditText)row.findViewById(R.id.su_edit); TextView label5 = (TextView)row.findViewById(R.id.panmaegum); TextView label6 = (TextView)row.findViewById(R.id.point_in); CheckBox sunmul = (CheckBox)row.findViewById(R.id.sunmul_check); Spinner refund = (Spinner)row.findViewById(R.id.Refund_spinner); CheckBox point_check = (CheckBox)row.findViewById(R.id.point_check); convertView.setTag(row); } Log.e(TAG, "getView : position_23"); return row;
안녕하세요
다시 질문드려요
여기서부터 에러가 나는데 getview에서 이값을 못받아내내요
이유가 뭔지 정말 궁금합니다