美文网首页
SuperText使用

SuperText使用

作者: Y小圆脸 | 来源:发表于2017-04-17 15:45 被阅读44次

SuperTextView相关属性

  • icon相关

      //左边的图片
       <attr name="sLeftIconRes" format="reference" /> 
      //右边的图片(一般箭头)
      <attr name="sRightIconRes" format="reference" />
      //左边的图片宽度
      <attr name="sLeftIconWidth" format="dimension" />
      //左边的图片高度
      <attr name="sLeftIconHeight" format="dimension" />
      //右边的图片宽度
      <attr name="sRightIconWidth" format="dimension" />
      //右边的图片高度
      <attr name="sRightIconHeight" format="dimension" />
      ****************
      //右边是checkbox           
      <attr name="sRightCheckBoxRes" format="reference" />
    
  • 文字相关

      //左边文字
      <attr name="sLeftTextString" format="string" />
      //中边文字
      <attr name="sCenterTextString" format="string" />
      //右边文字
      <attr name="sRightTextString" format="string" />
      //左上文字
      <attr name="sLeftTopTextString" format="string" />
      //左下文字
      <attr name="sLeftBottomTextString" format="string" />
      //左下文字
      <attr name="sLeftBottomTextString2" format="string" />
    
  • margin padding相关

      <attr name="sTopLineMargin" format="dimension" />
      <attr name="sBottomLineMargin" format="dimension" />
      <attr name="sBothLineMargin" format="dimension" />
    
      <attr name="sCenterSpaceHeight" format="dimension" />
    
      <attr name="sLeftIconMarginLeft" format="dimension" />
      <attr name="sLeftTextMarginLeft" format="dimension" />
    
      <attr name="sLeftTopTextMarginLeft" format="dimension" />
      <attr name="sLeftBottomTextMarginLeft" format="dimension" />
      <attr name="sLeftBottomTextMarginLeft2" format="dimension" />
    
      <attr name="sRightIconMarginRight" format="dimension" />
      <attr name="sRightTextMarginRight" format="dimension" />
      <attr name="sRightCheckBoxMarginRight" format="dimension" />
      <attr name="sRightCheckBoxShow" format="boolean" />
      <attr name="sIsChecked" format="boolean" />
      <attr name="sUseRipple" format="boolean" />
    
  • 图片文字

       <attr name="sRightTextStringRightIconRes" format="reference" />
      <attr name="sRightTextStringRightIconResPadding" format="dimension" />
    
  • 字体大小

       <attr name="sLeftTextSize" format="dimension" />
      <attr name="sLeftTopTextSize" format="dimension" />
      <attr name="sLeftBottomTextSize" format="dimension" />
      <attr name="sLeftBottomTextSize2" format="dimension" />
      <attr name="sRightTextSize" format="dimension" />
      <attr name="sCenterTextSize" format="dimension" />
    
  • 颜色相关

    <attr name="sBackgroundColor" format="color" />
    <attr name="sLeftTextColor" format="color" />
    <attr name="sLeftTopTextColor" format="color" />
    <attr name="sLeftBottomTextColor" format="color" />
    <attr name="sLeftBottomTextColor2" format="color" />
    <attr name="sRightTextColor" format="color" />
    <attr name="sCenterTextColor" format="color" />
  • 数量相关

      <attr name="sIsSingLines" format="boolean" />
      <attr name="sMaxLines" format="integer" />
      <attr name="sMaxEms" format="integer" />
    
  • 分割线相关

       <attr name="sLineShow" format="enum">
          <enum name="none" value="0" />
          <enum name="top" value="1" />
          <enum name="bottom" value="2" />
          <enum name="both" value="3" />
      </attr>
    
      <attr name="sBothLineWidth" format="dimension" />
      <attr name="sTopLineWidth" format="dimension" />
      <attr name="sBottomLineWidth" format="dimension" />
      <attr name="sLineColor" format="color" />
    
  • 是否可点击相关

    <attr name="sLeftTopViewIsClickable" format="boolean" />
    <attr name="sLeftBottomViewIsClickable" format="boolean" />
    <attr name="sLeftBottomView2IsClickable" format="boolean" />

    <attr name="sBackgroundDrawableRes" format="reference" />

相关文章

网友评论

      本文标题:SuperText使用

      本文链接:https://www.haomeiwen.com/subject/znmtzttx.html