android.widget.EditText.append()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(413)

本文整理了Java中android.widget.EditText.append()方法的一些代码示例,展示了EditText.append()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EditText.append()方法的具体详情如下:
包路径:android.widget.EditText
类名称:EditText
方法名:append

EditText.append介绍

暂无

代码示例

代码示例来源:origin: rey5137/material

/**
 * Convenience method: Append the specified text slice to the TextView's
 * display buffer, upgrading it to BufferType.EDITABLE if it was
 * not already editable.
 */
public void append (CharSequence text, int start, int end){
  mInputView.append(text, start, end);
}

代码示例来源:origin: rey5137/material

/**
 * Convenience method: Append the specified text to the TextView's
 * display buffer, upgrading it to BufferType.EDITABLE if it was
 * not already editable.
 */
public final void append (CharSequence text){
  mInputView.append(text);
}

代码示例来源:origin: GitLqr/LQRWeChat

public void onResult(HashMap<String, Object> data) {
  String atText = getJoinSelectedUser(data);
  if(!TextUtils.isEmpty(atText)) {
    etContent.append(atText);
  }
}

代码示例来源:origin: jaydenxiao2016/AndroidFire

public void onResult(HashMap<String, Object> data) {
  String atText = getJoinSelectedUser(data);
  if(!TextUtils.isEmpty(atText)) {
    etContent.append(atText);
  }
}

代码示例来源:origin: stackoverflow.com

switch (key) {
case R.id.anti_theft_t9_key_0:
  mEtPassword.append("0");
  break;
case R.id.anti_theft_t9_key_1:
  mEtPassword.append("1");
  break;
case R.id.anti_theft_t9_key_2:
  mEtPassword.append("2");
  break;
case R.id.anti_theft_t9_key_3:
  mEtPassword.append("3");
  break;
case R.id.anti_theft_t9_key_4:
  mEtPassword.append("4");
  break;
case R.id.anti_theft_t9_key_5:
  mEtPassword.append("5");
  break;
case R.id.anti_theft_t9_key_6:
  mEtPassword.append("6");
  break;
case R.id.anti_theft_t9_key_7:
  mEtPassword.append("7");
  break;
case R.id.anti_theft_t9_key_8:
  mEtPassword.append("8");
  break;
case R.id.anti_theft_t9_key_9:

代码示例来源:origin: rockerhieu/emojicon

public static void input(EditText editText, Emojicon emojicon) {
  if (editText == null || emojicon == null) {
    return;
  }
  int start = editText.getSelectionStart();
  int end = editText.getSelectionEnd();
  if (start < 0) {
    editText.append(emojicon.getEmoji());
  } else {
    editText.getText().replace(Math.min(start, end), Math.max(start, end), emojicon.getEmoji(), 0, emojicon.getEmoji().length());
  }
}

代码示例来源:origin: stackoverflow.com

mPasswordField.append(((TextView) v).getText());
return;

代码示例来源:origin: stackoverflow.com

int count = 1;
for (ScanResult result : results) {
  etWifiList.append(count++ + ". " + result.SSID + " : "
      + result.level + "\n" + result.BSSID + "\n"
      + result.capabilities + "\n"

代码示例来源:origin: huangfangyi/FanXin

/**
 * append emoji icon to editText
 * @param emojiContent
 */
public void onEmojiconInputEvent(CharSequence emojiContent){
  editText.append(emojiContent);
}

代码示例来源:origin: Leaking/WeGit

/***
 * Set the searchbox's current text manually
 * @param text Text
 */
public void setSearchString(String text) {
  search.setText("");
  search.append(text);
}

代码示例来源:origin: licheedev/Android-SerialPort-API

public void run() {
    if (mReception != null) {
      mReception.append(new String(buffer, 0, size));
    }
  }
});

代码示例来源:origin: 296777513/pedometer

public void onResult(ArrayList<String> selected) {
  StringBuilder sb = new StringBuilder();
  for (String sel : selected) {
    sb.append('@').append(sel).append(' ');
  }
  etContent.append(sb.toString());
}

代码示例来源:origin: myxh/CoolShopping

public void onResult(HashMap<String, Object> data) {
  String atText = getJoinSelectedUser(data);
  if(!TextUtils.isEmpty(atText)) {
    etContent.append(atText);
  }
}

代码示例来源:origin: mingjunli/GithubApp

public void onResult(HashMap<String, Object> data) {
  String atText = getJoinSelectedUser(data);
  if(!TextUtils.isEmpty(atText)) {
    etContent.append(atText);
  }
}

代码示例来源:origin: gaolhjy/enjoyshop

public void onResult(HashMap<String, Object> data) {
  String atText = getJoinSelectedUser(data);
  if(!TextUtils.isEmpty(atText)) {
    etContent.append(atText);
  }
}

代码示例来源:origin: 736008081/frameAndroid

public void onResult(HashMap<String, Object> data) {
  String atText = getJoinSelectedUser(data);
  if(!TextUtils.isEmpty(atText)) {
    etContent.append(atText);
  }
}

代码示例来源:origin: yoyiyi/bilisoleil

public void onResult(HashMap<String, Object> data) {
  String atText = getJoinSelectedUser(data);
  if(!TextUtils.isEmpty(atText)) {
    etContent.append(atText);
  }
}

代码示例来源:origin: concretesolutions/canarinho

@Test
public void typing_canValidateEmptyState() {
  editText.append("");
  assertThat(editText.getText().toString(), is(""));
  assertThat(watcher.getResultadoParcial().isParcialmenteValido(), is(true));
}

代码示例来源:origin: concretesolutions/canarinho

@Test
public void typing_canValidateProperCharacters() {
  editText.append("1bas2nas3lamsd4");
  assertThat(editText.getText().toString(), is("1234"));
  assertThat(watcher.getResultadoParcial().isParcialmenteValido(), is(true));
}

代码示例来源:origin: huangfangyi/YiChat

private void editTextAddEmoji(Emojicon emojicon) {
  if (emojicon.getType() != Emojicon.Type.BIG_EXPRESSION) {
    if (emojicon.getEmojiText() != null) {
      et_sendmessage.append(SmileUtils.getSmiledText(getContext(), emojicon.getEmojiText()));
    }
  } else {
    if (inputViewLisenter != null) {
      inputViewLisenter.onBigExpressionClicked(emojicon);
    }
  }
}

相关文章

微信公众号

最新文章

更多

EditText类方法