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

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

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

EditText.getPaddingBottom介绍

暂无

代码示例

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

private EditText value = (EditText) findViewById(R.id.value);

int pL = value.getPaddingLeft();
int pT = value.getPaddingTop();
int pR = value.getPaddingRight();
int pB = value.getPaddingBottom();

value.setBackgroundResource(R.drawable.bkg);
value.setPadding(pL, pT, pR, pB);

代码示例来源:origin: bufferapp/BufferTextInputLayout

private void adjustIndicatorPadding() {
  // Add padding to the error and character counter so that they match the EditText
  ViewCompat.setPaddingRelative(indicatorArea, ViewCompat.getPaddingStart(editText),
      0, ViewCompat.getPaddingEnd(editText), editText.getPaddingBottom());
}

代码示例来源:origin: bufferapp/BufferTextInputLayout

editText.getPaddingBottom());
} else {
  if (passwordToggleView != null && passwordToggleView.getVisibility() == VISIBLE) {

代码示例来源:origin: derry/delion

@Override
  public void onLayoutChange(View v, int left, int top, int right, int bottom,
      int oldLeft, int oldTop, int oldRight, int oldBottom) {
    if (progressBarView.getMeasuredHeight() == input.getMeasuredHeight()
        && input.getBackground() != null) {
      // Force the text field to align better with the icon by accounting for the
      // padding introduced by the background drawable.
      input.getLayoutParams().height =
          progressBarView.getMeasuredHeight() + input.getPaddingBottom();
      v.requestLayout();
      v.removeOnLayoutChangeListener(this);
    }
  }
});

代码示例来源:origin: hylinux1024/Componentization

private void setEditTextPadding() {
  if (mHeight > 0) {
    int l = mEditText.getPaddingLeft();
    int t = mEditText.getPaddingTop();
    int r = mEditText.getPaddingRight() + mHeight + (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, QUICK_CLEAR_MARGIN, getResources().getDisplayMetrics());
    int b = mEditText.getPaddingBottom();
    mEditText.setPadding(l, t, r, b);
  }
}

代码示例来源:origin: Coinomi/coinomi-android

final int txMessageCounterPaddingOriginal = txMessageView.getPaddingBottom();
final int txMessageCounterPadding =
    getResources().getDimensionPixelSize(R.dimen.tx_message_counter_padding);

代码示例来源:origin: openwalletGH/openwallet-android

final int txMessageCounterPaddingOriginal = txMessageView.getPaddingBottom();
final int txMessageCounterPadding =
    getResources().getDimensionPixelSize(R.dimen.tx_message_counter_padding);

代码示例来源:origin: conghuahuadan/CustomKeyboard

editText.getLocationOnScreen(etLocation);
int keyboardTop = etLocation[1] + editText.getHeight() + editText.getPaddingTop()
    + editText.getPaddingBottom();
int moveHeight = keyboardTop + baseKeyboardView.getHeight() - rect.bottom;
if (moveHeight > 0) {

代码示例来源:origin: TrustWallet/trust-wallet-android-source

public void setHelperTextEnabled(boolean _enabled) {
  if (mHelperTextEnabled == _enabled) return;
  if (_enabled && mErrorEnabled) {
    setErrorEnabled(false);
  }
  if (this.mHelperTextEnabled != _enabled) {
    if (_enabled) {
      this.mHelperView = new TextView(this.getContext());
      this.mHelperView.setTextAppearance(this.getContext(), this.mHelperTextAppearance);
      if (mHelperTextColor != null){
        this.mHelperView.setTextColor(mHelperTextColor);
      }
      this.mHelperView.setVisibility(INVISIBLE);
      this.addView(this.mHelperView);
      if (this.mHelperView != null) {
        ViewCompat.setPaddingRelative(
            this.mHelperView,
            ViewCompat.getPaddingStart(getEditText()),
            0, ViewCompat.getPaddingEnd(getEditText()),
            getEditText().getPaddingBottom());
      }
    } else {
      this.removeView(this.mHelperView);
      this.mHelperView = null;
    }
    this.mHelperTextEnabled = _enabled;
  }
}

代码示例来源:origin: xudjx/djkeyboard

int keyboardTop = etLocation[1] + editText.getHeight() + editText.getPaddingTop() + editText.getPaddingBottom() + 1 ;   //1px is a divider
Object anchor = editText.getTag(R.id.anchor_view);
View mShowAnchorView = null;

代码示例来源:origin: xudjx/djkeyboard

int keyboardTop = etLocation[1] + editText.getHeight() + editText.getPaddingTop() + editText.getPaddingBottom() + 1 ;   //1px is a divider
Object anchor = editText.getTag(R.id.anchor_view);
View mShowAnchorView = null;

相关文章

微信公众号

最新文章

更多

EditText类方法