Code Monkey home page Code Monkey logo

Comments (6)

manishandroid avatar manishandroid commented on June 23, 2024

Add below method in ButtonRectangle.java file.

    public String getText(){
        return textButton.getText().toString();
 }

from materialdesignlibrary.

navasmdc avatar navasmdc commented on June 23, 2024

To access text of button you have getTextView function, with this function you can access to textview of Button to get text or change Typeface. But if you want his function i will implement it.

from materialdesignlibrary.

Sanjar1 avatar Sanjar1 commented on June 23, 2024

thanks it worked for me manishandroid.
how to decrease anime time of ButtonRectangle
I am implementing ButtonRectangle to calculator. it take too long time

from materialdesignlibrary.

navasmdc avatar navasmdc commented on June 23, 2024

You can use setRippleSpeed function of Buttons to set speed of ripple sppeed

from materialdesignlibrary.

Sanjar1 avatar Sanjar1 commented on June 23, 2024

I am new in android development))
that is why
can you please write me some line of code
and say me where i should paste it))
to do it))

from materialdesignlibrary.

navasmdc avatar navasmdc commented on June 23, 2024

Don't worry, it isn`t a problem, for example if you have a RectangleButton in XML file with id button1
you can access to this button in an activity with

RectangleButton button1 = (RectangleButton) findViewById(R.id.button1);

and now you can set ripple speed

button1.setRippleSpeed(20);

if you have other question it is my mail [email protected]

from materialdesignlibrary.

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.