Android自定View组件方法

◇android:longClickable:设置是否响应长按事件.

◇android:padding 设置上下左右的边距,以像素为单位填充空白。

◇android:paddingBottom 设置底部的边距,以像素为单位填充空白。

◇android:paddingLeft 设置左边的边距,以像素为单位填充空白。

◇android:paddingRight 设置右边的边距,以像素为单位填充空白。.

◇android:paddingTop 设置上方的边距,以像素为单位填充空白。

◇android:scrollX 以像素为单位设置水平方向滚动的的偏移值,,在GridView中可看的这个效果。

◇android:scrollY 以像素为单位设置垂直方向滚动的的偏移值

◇android:scrollbars 设置滚动条显示。none(隐藏),horizontal(水平),vertical(垂直)。

◇android:visibility 设置是否显示View。设置值:visible(默认值,显示),invisible(不显示,但是仍然占用空间),gone(不显示,不占用空间)

◇android:onClick 点击时从上下文中调用指定的方法。

◇android:drawableRight :在text的右边输出一个drawable,如图片

◇android:autoLink 设置是否当文本为URL链接/email/电话号码/map时,文本显示为可点击的链接

◇android:textScaleX :控制字与字之间的间距

◇android:textAlign :设置文字显示位置,EditText没有这个属性,但TextView有

◇android:textColorHint :设置提示信息文字的颜色,默认为灰色

◇android:textAppearance

textAppearanceButton、textAppearanceInverse、textAppearanceLarge、textAppearanceLargeInverse、textAppearanceMedium、textAppearanceMediumInverse、textAppearanceSmall、textAppearanceSmallInverse

设置文字外观。如“?android:attr/textAppearanceLargeInverse”这里引用的是系统自带的一个外观,?表示系统是否有这种外观,否则使用默认的外观。

参考:

一直有记日记的习惯,可是,旅行回来,都懒得写日记来记录,

Android自定View组件方法

相关文章:

你感兴趣的文章:

标签云: