{"action":"created","issue":{"url":"https://api.github.com/repos/rey5137/material/issues/48","labels_url":"https://api.github.com/repos/rey5137/material/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/rey5137/material/issues/48/comments","events_url":"https://api.github.com/repos/rey5137/material/issues/48/events","html_url":"https://github.com/rey5137/material/issues/48","id":68340463,"number":48,"title":"dismiss()","user":{"login":"jemshit","id":1948828,"avatar_url":"https://avatars.githubusercontent.com/u/1948828?v=3","gravatar_id":"","url":"https://api.github.com/users/jemshit","html_url":"https://github.com/jemshit","followers_url":"https://api.github.com/users/jemshit/followers","following_url":"https://api.github.com/users/jemshit/following{/other_user}","gists_url":"https://api.github.com/users/jemshit/gists{/gist_id}","starred_url":"https://api.github.com/users/jemshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jemshit/subscriptions","organizations_url":"https://api.github.com/users/jemshit/orgs","repos_url":"https://api.github.com/users/jemshit/repos","events_url":"https://api.github.com/users/jemshit/events{/privacy}","received_events_url":"https://api.github.com/users/jemshit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-14T11:03:23Z","updated_at":"2015-04-14T11:55:17Z","closed_at":null,"body":"1) How to dismiss() when positive button is clicked?\r\n 2) How do i overwrite function what happens when Positive button is clicked?Dialog.Builder .onPositiveActionClicked() expects fragment which i didn't get why. \r\nAlso please write more explanation for dialog styles, for example what is range of \"di_dimAmount\"., what this \"di_titleTextAppearance\" takes as parameter..?  (you can put one .xml example with whole style attributes)"},"comment":{"url":"https://api.github.com/repos/rey5137/material/issues/comments/92781715","html_url":"https://github.com/rey5137/material/issues/48#issuecomment-92781715","issue_url":"https://api.github.com/repos/rey5137/material/issues/48","id":92781715,"user":{"login":"jemshit","id":1948828,"avatar_url":"https://avatars.githubusercontent.com/u/1948828?v=3","gravatar_id":"","url":"https://api.github.com/users/jemshit","html_url":"https://github.com/jemshit","followers_url":"https://api.github.com/users/jemshit/followers","following_url":"https://api.github.com/users/jemshit/following{/other_user}","gists_url":"https://api.github.com/users/jemshit/gists{/gist_id}","starred_url":"https://api.github.com/users/jemshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jemshit/subscriptions","organizations_url":"https://api.github.com/users/jemshit/orgs","repos_url":"https://api.github.com/users/jemshit/repos","events_url":"https://api.github.com/users/jemshit/events{/privacy}","received_events_url":"https://api.github.com/users/jemshit/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T11:55:17Z","updated_at":"2015-04-14T11:55:17Z","body":"I checked <a href=\"https://github.com/rey5137/material/blob/master/app/src/main/java/com/rey/material/demo/DialogsFragment.java\">demo</a> and wrote this code:\r\n\r\n                    Dialog.Builder builder = new SimpleDialog.Builder() {\r\n                    @Override\r\n                    protected Dialog onBuild(Context context, int styleId) {\r\n                        Dialog dialog = super.onBuild(context, styleId);\r\n                        dialog.setCancelable(true);\r\n                        dialog.setCanceledOnTouchOutside(true);\r\n                        dialog.cornerRadius(4);\r\n                        dialog.elevation(5);\r\n                        dialog.positiveActionTextColor(getResources().getColor(R.color.blueDark));\r\n\r\n                        return dialog;\r\n                    }\r\n                    @Override\r\n                    public void onPositiveActionClicked(DialogFragment fragment) {\r\n                        fragment.getDialog().dismiss();\r\n                        super.onPositiveActionClicked(fragment);\r\n                    }\r\n\r\n                };\r\n                ((SimpleDialog.Builder)builder)\r\n                        .title(getString(R.string.std_choose))\r\n                        .positiveAction(getString(R.string.ok))\r\n                        .contentView(R.layout.dialog_no_std);\r\n\r\n                DialogFragment fragment = DialogFragment.newInstance(builder);\r\n                fragment.show(getFragmentManager(), null);\r\n\r\n`dialog.cornerRadius(4);`  `dialog.elevation(5);` does not seem working, maybe i gave wrong parameters? ` dialog.positiveActionTextColor(getResources().getColor(R.color.blueDark));` does not take color from resource, what `int` parameter this function uses.\r\n\r\nI wanted to disable ripple for positive button, how to do that"}}