示例#1
0
 public void onInsertImage(Uri uri) {
   if (DBG) {
     Log.d(LOG_TAG, "--- onInsertImage by URI: " + uri.getPath() + "," + uri.toString());
   }
   insertImageSpan(new ImageSpan(mEST.getContext(), uri));
   mEST.notifyStateChanged(mMode, mState);
 }
示例#2
0
 public void onInsertImage(int resID) {
   if (DBG) {
     Log.d(LOG_TAG, "--- onInsertImage by resID");
   }
   insertImageSpan(new ImageSpan(mEST.getContext(), resID));
   mEST.notifyStateChanged(mMode, mState);
 }
示例#3
0
 private void blockSoftKey() {
   if (DBG) {
     Log.d(LOG_TAG, "--- blockSoftKey:");
   }
   InputMethodManager imm =
       (InputMethodManager) mEST.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
   imm.hideSoftInputFromWindow(mEST.getWindowToken(), 0);
   mEST.setOnClickListener(
       new OnClickListener() {
         public void onClick(View v) {
           Log.d(LOG_TAG, "--- ontrackballclick:");
           onFixSelectedItem();
         }
       });
   mSoftKeyBlockFlag = true;
 }