private class ABArrayAdapter extends ArrayAdapter<wentry> {
private ArrayList<wentry> items;
private int rsrc;
public ABArrayAdapter(Context ctx, int rsrcId, int txtId, ArrayList<wentry> data) {
super(ctx, rsrcId, txtId, data);
this.items = data;
this.rsrc = rsrcId;
}
public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
if (v == null) {
LayoutInflater li = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = li.inflate(rsrc, null);
}
wentry e = items.get(position);
if (e != null) {
WebView wv1=(WebView)v.findViewById(R.id.stl0);
wv1.setFocusable(false);
wv1.setClickable(false);
wv1.setLongClickable(false);
wv1.setFocusableInTouchMode(false);
wv1.setHorizontalScrollBarEnabled(false);
wv1.setVerticalScrollBarEnabled(false);
wv1.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
wv1.getSettings().setJavaScriptEnabled(false);
wv1.getSettings().setSupportZoom(false);
wv1.getSettings().setBuiltInZoomControls(false);
if (wv1 != null) {
if (!TextUtils.isEmpty(e.getStl8())){
wv1.loadDataWithBaseURL(null, creHtmlBody(weburl + "upload/"+e.getStl1()+"/" + e.getStl8()),"text/html", "utf-8", null);
}else {
wv1.loadDataWithBaseURL(null, creHtmlBody(weburl + "noimage.jpg"),"text/html", "utf-8", null);
}
}
NumberFormat nf = NumberFormat.getInstance();
((TextView)findViewById(R.id.TextView04)).setText(e.getStl11()); //제목
return v;
}
}
인터넷 찾아보고 몇날 몇일을 해메고 있는데 안되네요. 위코드처럼 이미지나 글씨를 클릭하면
onListItemClick를 호출하게 되었는데 인터넷에 setFocusable 를 false로 하고 xml도 false로 하면
webview로 포지션가는걸 막을수있다고 해서 별에별 방법을 다하는데 안되네요.
abAdapter = new ABArrayAdapter(this, R.layout.zlist, R.id.stl1, abList);
setListAdapter(abAdapter); 요렇게 호출하였구요
혹시 제가 뭘 놓친부분이 있을가요? 답변부탁드려요.