Git Product home page Git Product logo

Comments (4)

AriesHoo avatar AriesHoo commented on May 23, 2024

请注意不可点击是设置 setEnable 不是设置setClickable

from uiwidget.

AriesHoo avatar AriesHoo commented on May 23, 2024

代码中设置所有属性完成后请调用init()方法。。还有就在提问题的时候附带下自己设置的代码。只描述问题,。懵的

from uiwidget.

manburenshenglu avatar manburenshenglu commented on May 23, 2024

<com.aries.ui.view.radius.RadiusTextView
android:id="@+id/rtv_submit"
android:layout_width="@dimen/dp_60"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:clickable="true"
android:gravity="center"
android:padding="@dimen/dp_5"
android:text="取 消"
android:textSize="@dimen/sp_12"
app:rv_backgroundColor="@color/color_btn_press"
app:rv_backgroundPressedColor="@color/color_btn_press"
app:rv_radiusHalfHeightEnable="false"
app:rv_strokePressedColor="@color/color_btn_press"
app:rv_strokeWidth="1dp"
app:rv_radius="@dimen/dp_6"
app:rv_textColor="@color/white" />
然后代码中我是根据后台返回的状态来设置取消按钮是否可以点击,不可点击时,将取消按钮的背景色置灰,代码中调用setBackground无效

from uiwidget.

AriesHoo avatar AriesHoo commented on May 23, 2024

xml设置 app:rv_backgroundDisabledColor 然后代码控制setEnable()即可。

from uiwidget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.