2017-02-25 98 views
1

是否可以將paddingStart添加到視圖中?現在我知道要添加填充view.addPadding(left,Top,Right,Bottom);將填充開始添加到LinearLayout

+0

'paddingStart','paddlingLeft'相同。如果您添加左填充意味着您添加開始填充 –

+0

請參閱:http://stackoverflow.com/questions/13917118/is-there-way-how-to-use-paddingend-and-paddingstart-with- minsdkversion-17 – rafsanahmad007

+0

可能的重複[有沒有辦法如何使用paddingEnd和paddingStart minSdkVersion <17?](http://stackoverflow.com/questions/13917118/is-there-way-how-to-use-paddingend- and-paddingstart -with-minsdkversion -17) – Zze

回答

0

您可以嘗試

view.setPaddingRelative(start,top,end,bottom);