private void initPaintView() { creator = new PaintPadViewCreator((BaseActivity) getActivity(), container_ll); View v = creator.getView(); v.setFocusable(true); v.setFocusableInTouchMode(true); }
/** * @param canPrevious * @param canNext */ private void changeUIWithField(boolean canPrevious, boolean canNext) { number_tv2.setText(number); score_tv4.setText(score); state_tv6.setText(state); content_wv1.loadUrl(content); answer_wv2.loadUrl(answerofSta); answer_tv10.setText(textAnswer); score_et1.setText(point); textofTeacher_et2.setText(textOfTeacher); setButton(canPrevious, canNext); if (answerofStu != null && !answerofStu.equals("")) { container_ll.setVisibility(View.VISIBLE); if (answerofTea != null) { creator.loadExsitedImage(answerofTea); } else { imageLoader.loadImageBitmap(answerofStu); } } else { container_ll.setVisibility(View.GONE); } }
@Override public void onImageBitmapLoaded(Bitmap bitmap) { creator.setbg(bitmap); }