请教大家有没有对应padding-left属性的方法,就是设置文字离左边框距离的。

解决方案 »

  1.   

    android:padding  setPadding(int,int,int,int)  Sets the padding, in pixels, of all four edges. 
    android:paddingBottom  setPadding(int,int,int,int)  Sets the padding, in pixels, of the bottom edge; see padding. 
    android:paddingLeft  setPadding(int,int,int,int)  Sets the padding, in pixels, of the left edge; see padding. 
    android:paddingRight  setPadding(int,int,int,int)  Sets the padding, in pixels, of the right edge; see padding. 
    android:paddingTop  setPadding(int,int,int,int)  Sets the padding, in pixels, of the top edge; see padding. 在文档里搜一下,就直接出来了