Пример #1
0
 /**
  * Set the horizontal padding between this SnackBar and it's text and button.
  *
  * @param padding
  * @return This SnackBar for chaining methods.
  */
 public SnackBar horizontalPadding(int padding) {
   mText.setPadding(padding, mText.getPaddingTop(), padding, mText.getPaddingBottom());
   mAction.setPadding(padding, mAction.getPaddingTop(), padding, mAction.getPaddingBottom());
   return this;
 }
Пример #2
0
 private void setMarginParams(int margin, TextView textView) {
   textView.setPadding(
       textView.getPaddingLeft(), textView.getPaddingTop(), margin, textView.getPaddingBottom());
 }