本文整理了Java中android.view.View.getPaddingEnd()
方法的一些代码示例,展示了View.getPaddingEnd()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。View.getPaddingEnd()
方法的具体详情如下:
包路径:android.view.View
类名称:View
方法名:getPaddingEnd
暂无
代码示例来源:origin: square/assertj-android
@TargetApi(JELLY_BEAN_MR1)
public S hasPaddingEnd(int padding) {
isNotNull();
int actualPadding = actual.getPaddingEnd();
assertThat(actualPadding) //
.overridingErrorMessage("Expected padding end <%s> but was <%s>", padding, actualPadding) //
.isEqualTo(padding);
return myself;
}
代码示例来源:origin: nickbutcher/plaid
public static void setPaddingTop(View view, int paddingTop) {
view.setPaddingRelative(view.getPaddingStart(),
paddingTop,
view.getPaddingEnd(),
view.getPaddingBottom());
}
代码示例来源:origin: nickbutcher/plaid
public static void setPaddingBottom(View view, int paddingBottom) {
view.setPaddingRelative(view.getPaddingStart(),
view.getPaddingTop(),
view.getPaddingEnd(),
paddingBottom);
}
代码示例来源:origin: nickbutcher/plaid
public static void setPaddingStart(View view, int paddingStart) {
view.setPaddingRelative(paddingStart,
view.getPaddingTop(),
view.getPaddingEnd(),
view.getPaddingBottom());
}
代码示例来源:origin: xinghongfei/LookLook
public static void setPaddingStart(View view, int paddingStart) {
view.setPaddingRelative(paddingStart,
view.getPaddingTop(),
view.getPaddingEnd(),
view.getPaddingBottom());
}
代码示例来源:origin: xinghongfei/LookLook
public static void setPaddingTop(View view, int paddingTop) {
view.setPaddingRelative(view.getPaddingStart(),
paddingTop,
view.getPaddingEnd(),
view.getPaddingBottom());
}
代码示例来源:origin: xinghongfei/LookLook
public static void setPaddingBottom(View view, int paddingBottom) {
view.setPaddingRelative(view.getPaddingStart(),
view.getPaddingTop(),
view.getPaddingEnd(),
paddingBottom);
}
代码示例来源:origin: rey5137/material
v.setPaddingRelative(startPaddingDefined ? startPadding : v.getPaddingStart(),
topPadding >= 0 ? topPadding : v.getPaddingTop(),
endPaddingDefined ? endPadding : v.getPaddingEnd(),
bottomPadding >= 0 ? bottomPadding : v.getPaddingBottom());
代码示例来源:origin: robinhood/spark
@Override
public int getPaddingEnd() {
return Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR1
? super.getPaddingEnd()
: getPaddingRight();
}
代码示例来源:origin: AlexMofer/ProjectX
@Override
public int getPaddingEnd(View view) {
return view.getPaddingEnd();
}
}
代码示例来源:origin: AlexMofer/ProjectX
@Override
public int getPaddingEnd(View view) {
return view.getPaddingEnd();
}
}
代码示例来源:origin: AlexMofer/ProjectX
@Override
public int getPaddingEnd(View view) {
return view.getPaddingEnd();
}
}
代码示例来源:origin: AlexMofer/SelectionView
@Override
public int getPaddingEnd(View view) {
return view.getPaddingEnd();
}
}
代码示例来源:origin: com.squareup.assertj/assertj-android
@TargetApi(JELLY_BEAN_MR1)
public S hasPaddingEnd(int padding) {
isNotNull();
int actualPadding = actual.getPaddingEnd();
assertThat(actualPadding) //
.overridingErrorMessage("Expected padding end <%s> but was <%s>", padding, actualPadding) //
.isEqualTo(padding);
return myself;
}
代码示例来源:origin: yugai/DouYu-Android
public static void setPaddingStart(View view, int paddingStart) {
view.setPaddingRelative(paddingStart,
view.getPaddingTop(),
view.getPaddingEnd(),
view.getPaddingBottom());
}
代码示例来源:origin: yugai/DouYu-Android
public static void setPaddingTop(View view, int paddingTop) {
view.setPaddingRelative(view.getPaddingStart(),
paddingTop,
view.getPaddingEnd(),
view.getPaddingBottom());
}
代码示例来源:origin: yugai/DouYu-Android
public static void setPaddingBottom(View view, int paddingBottom) {
view.setPaddingRelative(view.getPaddingStart(),
view.getPaddingTop(),
view.getPaddingEnd(),
paddingBottom);
}
代码示例来源:origin: PandaQAQ/MvpDemo
public static void setPaddingStart(View view, int paddingStart) {
view.setPaddingRelative(paddingStart,
view.getPaddingTop(),
view.getPaddingEnd(),
view.getPaddingBottom());
}
代码示例来源:origin: googlesamples/android-WatchFace
@Override
public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
if (!insets.isRound()) {
v.setPaddingRelative(
(int) getResources().getDimensionPixelSize(R.dimen.content_padding_start),
v.getPaddingTop(),
v.getPaddingEnd(),
v.getPaddingBottom());
}
return v.onApplyWindowInsets(insets);
}
});
代码示例来源:origin: marcouberti/american_sunsets_watch_face
@Override
public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
if (!insets.isRound()) {
v.setPaddingRelative(
(int) getResources().getDimensionPixelSize(R.dimen.content_padding_start),
v.getPaddingTop(),
v.getPaddingEnd(),
v.getPaddingBottom());
}
return v.onApplyWindowInsets(insets);
}
});
内容来源于网络,如有侵权,请联系作者删除!