Coder Social home page Coder Social logo

colordialog's People

Contributors

andyxialm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colordialog's Issues

Cancel Button is not proper aligned if there is no image assigned

If there is no image provided in ColorDialog, Cancel button is not aligned properly :

 ColorDialog dialog = new ColorDialog(this);
        dialog.setTitle(getString(R.string.operation));
        dialog.setAnimationEnable(true);
        dialog.setAnimationIn(getInAnimationTest(this));
        dialog.setAnimationOut(getOutAnimationTest(this));
//        dialog.setContentImage(getResources().getDrawable(R.mipmap.sample_img));  //REMOVED IMAGE
        dialog.setPositiveListener(getString(R.string.delete), new ColorDialog.OnPositiveListener() {
            @Override
            public void onClick(ColorDialog dialog) {
                Toast.makeText(MainActivity.this, dialog.getPositiveText().toString(), Toast.LENGTH_SHORT).show();
            }
        })
        .setNegativeListener(getString(R.string.cancel), new ColorDialog.OnNegativeListener() {
            @Override
            public void onClick(ColorDialog dialog) {
                Toast.makeText(MainActivity.this, dialog.getNegativeText().toString(), Toast.LENGTH_SHORT).show();
                dialog.dismiss();
            }
        }).show();

Cancel Button Not Aligned

Animation - leaked window

When u change window orientation, you must set the "setAnimationEnable(false)" to prevent window leaking... that's little bit anoying

pubic void onPause() { dialog.setAnimationEnabled(false); dialog.dismiss(); }

but otherwise a nice job man

自定义视图

可以添加自定义视图吗?setContentView 无效果啊

Finish in the onClick

Any ideas why I can't do this? The app does not crash but I get a leak message in logcat after the finish:

new PromptDialog(this)
            .setDialogType(PromptDialog.DIALOG_TYPE_WARNING)
            .setCancelable(false)
            .setTitleText("Alert") //  Shows error ...why?
            .setContentText("Are you there")
            .setPositiveListener("YES", new PromptDialog.OnPositiveListener()
            {
                @Override
                public void onClick(PromptDialog dialog) {
                    dialog.dismiss();
                   finish();
                }
            }).show();

Add method to change Text Gravity to RTL or LTR

add method to change text Gravity for tvContent to RTL or LTR (left or right)

<TextView
android:id="@+id/tvContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="right" -----------------> left or right
android:paddingBottom="10dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingTop="5dp"
android:textColor="@android:color/white"
android:visibility="visible" />

how to set cancelable false?

    new PromptDialog(this)
            .setDialogType(PromptDialog.DIALOG_TYPE_WARNING)
            .setCancelable(false)
            .setTitleText("Alert") //  Shows error ...why?
            .setContentText("Are you there")
            .setPositiveListener("YES", new PromptDialog.OnPositiveListener()
            {
                @Override
                public void onClick(PromptDialog dialog) {
                    dialog.dismiss();
                }
            }).show();

Content Text Colour Change

Unable to change the text colour of the content.
dialog.setContentTextColor(R.color.orange);
is not working.

Please update the ReadMe File

Please update the readme file with the following line

dependencies {
compile 'com.github.andyxialm:ColorDialog:fc1804b35a'
}

How to add it to dependencies ?

I want to thank you for your effort on this great library.
Now, I'm trying to add it to my dependencies on Android Studio.
I don't want to add the whole project as a model.
Any Help !

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.