GithubHelp home page GithubHelp logo

Comments (15)

rey5137 avatar rey5137 commented on May 18, 2024

DatePicker has a known bug that I fixed in next version. And Material Library is intended to support Android 2.3+ . I think you should set the compatibility to 2.3 as there isn't many devices with Android 2.2.

from material.

patelakshay13890 avatar patelakshay13890 commented on May 18, 2024

Okay & thanx for quick response..!!

On Wed, Apr 1, 2015 at 11:06 AM, Rey Pham [email protected] wrote:

DatePicker has a known bug that I fixed in next version. And Material
Library is intended to support Android 2.3+ . I think you should set the
compatibility to 2.3 as there isn't many devices with Android 2.2.


Reply to this email directly or view it on GitHub
#12 (comment).

from material.

patelakshay13890 avatar patelakshay13890 commented on May 18, 2024

How can I use Button with RippleEffect without having delay in Click bcoz
in my app on Button click method should be triggered asap..
So can you help me out in this situation??

On Wed, Apr 1, 2015 at 2:32 PM, akshay patel [email protected]
wrote:

Okay & thanx for quick response..!!

On Wed, Apr 1, 2015 at 11:06 AM, Rey Pham [email protected]
wrote:

DatePicker has a known bug that I fixed in next version. And Material
Library is intended to support Android 2.3+ . I think you should set the
compatibility to 2.3 as there isn't many devices with Android 2.2.


Reply to this email directly or view it on GitHub
#12 (comment).

from material.

rey5137 avatar rey5137 commented on May 18, 2024

You can set the delayClick attribute of Button to false . Please view this page for details.

from material.

patelakshay13890 avatar patelakshay13890 commented on May 18, 2024

ok and how can I change BackgroundColor of Button ??

On Wed, Apr 1, 2015 at 3:53 PM, Rey Pham [email protected] wrote:

You can set the delayClick attribute of Button to false . Please view this
page https://github.com/rey5137/Material/wiki/Button for details.


Reply to this email directly or view it on GitHub
#12 (comment).

from material.

patelakshay13890 avatar patelakshay13890 commented on May 18, 2024

In XML is is showing Button with Colored Background but when I run the app
It doesnot show any Background Color ....& I have to use White Color as
Font Color

On Wed, Apr 1, 2015 at 3:58 PM, akshay patel [email protected]
wrote:

ok and how can I change BackgroundColor of Button ??

On Wed, Apr 1, 2015 at 3:53 PM, Rey Pham [email protected] wrote:

You can set the delayClick attribute of Button to false . Please view this
page https://github.com/rey5137/Material/wiki/Button for details.


Reply to this email directly or view it on GitHub
#12 (comment).

from material.

rey5137 avatar rey5137 commented on May 18, 2024

Did you use the android:background attribute?
You should use rd_background attribute instead because Button with create a RippleDrawable object and set it as Button's background, override the value of android:background attribute.
rd_background attribute accept color or drawable resourceId value.

from material.

patelakshay13890 avatar patelakshay13890 commented on May 18, 2024

I cannot achieve this as your solution..!!!
Can you provide sample for the same to change Button BackGround Color and
Its FontColor both in example ??

On Wed, Apr 1, 2015 at 4:09 PM, Rey Pham [email protected] wrote:

Did you use the android:background attribute?
You should use rd_background attribute instead because Button with create
a RippleDrawable object and set it as Button's background, override the
value of android:background attribute.
rd_background attribute accept color or drawable resourceId value.


Reply to this email directly or view it on GitHub
#12 (comment).

from material.

rey5137 avatar rey5137 commented on May 18, 2024

Can you provide me the current xml and Ripple Effect style you use?

from material.

patelakshay13890 avatar patelakshay13890 commented on May 18, 2024

Can you provide one sample please for the same ??

On Wed, Apr 1, 2015 at 4:46 PM, Rey Pham [email protected] wrote:

Can you provide me the current xml and Ripple Effect style you use?


Reply to this email directly or view it on GitHub
#12 (comment).

from material.

patelakshay13890 avatar patelakshay13890 commented on May 18, 2024

How can I use Dialog in ActionBarActivity not int Fragment ??
How can I show Dialogue in ActionBarActivity bcoz there is not any method
like builder.show() or builder.dismiss(), so how can I do like this ??

On Wed, Apr 1, 2015 at 4:52 PM, akshay patel [email protected]
wrote:

Can you provide one sample please for the same ??

On Wed, Apr 1, 2015 at 4:46 PM, Rey Pham [email protected] wrote:

Can you provide me the current xml and Ripple Effect style you use?


Reply to this email directly or view it on GitHub
#12 (comment).

from material.

patelakshay13890 avatar patelakshay13890 commented on May 18, 2024

How can I show Icon in the Dialogue box ???

On Wed, Apr 1, 2015 at 5:27 PM, akshay patel [email protected]
wrote:

How can I use Dialog in ActionBarActivity not int Fragment ??
How can I show Dialogue in ActionBarActivity bcoz there is not any method
like builder.show() or builder.dismiss(), so how can I do like this ??

On Wed, Apr 1, 2015 at 4:52 PM, akshay patel [email protected]
wrote:

Can you provide one sample please for the same ??

On Wed, Apr 1, 2015 at 4:46 PM, Rey Pham [email protected]
wrote:

Can you provide me the current xml and Ripple Effect style you use?


Reply to this email directly or view it on GitHub
#12 (comment).

from material.

rey5137 avatar rey5137 commented on May 18, 2024

About sample, the demo app already has one in Button tab page. You can look at those raised Button in fragment_button.xml . Here is one of those Ripple style:

   <style name="RaiseButtonRippleStyle" parent="Material.Drawable.Ripple.Touch.Light">
        <item name="rd_background">@drawable/bg_bt_raise</item>
        ...
    </style>

You can see that I set rd_background attribute to a 9-patch drawable, in your case it should be a color value. I want to see your current code to know how it didn't work for you.

About using Dialog in Activity, did you mean that you want to show Dialog directly without putting it into a DialogFragment. If so, you just need to create a Dialog object, apply style and call show() method.

    Dialog mDialog = new Dialog(context, styleId);

   //apply some style 
   mDialog.applyStyle(styleId)
        .title("Dialog title")
        .positiveAction("OK")
        .negativeAction("CANCEL");

    //show dialog
    mDialog.show();

Dialog.Buidler class only need when you want to store styling data and pass it to DialogFragment.

from material.

patelakshay13890 avatar patelakshay13890 commented on May 18, 2024

Here I have to Create Style For each button and I have 15 Button in One
Activity itself ..!!
So how can I do it with Simple Method ..??
BCoz I have to right 15 to 30 time different Style Method like

<style name="RaiseButtonRippleStyle" parent="Material.Drawable.Ripple.Touch.Light"> @color/bg_color_btn1item> ... </style>

Where Only "@color/bg_color_btn1" will change So how can I reduce this
tedious task??

On Fri, Apr 3, 2015 at 12:50 PM, Rey Pham [email protected] wrote:

Closed #12 #12.


Reply to this email directly or view it on GitHub
#12 (comment).

from material.

rey5137 avatar rey5137 commented on May 18, 2024

I have released new 1.1.0 version. Now it will not ignore android:background as before. Please go to Button Page for more details.

from material.

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.