{"action":"created","issue":{"url":"https://api.github.com/repos/yukuku/ambilwarna/issues/8","labels_url":"https://api.github.com/repos/yukuku/ambilwarna/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/yukuku/ambilwarna/issues/8/comments","events_url":"https://api.github.com/repos/yukuku/ambilwarna/issues/8/events","html_url":"https://github.com/yukuku/ambilwarna/issues/8","id":104097100,"number":8,"title":"preference color picker programmatically","user":{"login":"xbandx68","id":12251019,"avatar_url":"https://avatars.githubusercontent.com/u/12251019?v=3","gravatar_id":"","url":"https://api.github.com/users/xbandx68","html_url":"https://github.com/xbandx68","followers_url":"https://api.github.com/users/xbandx68/followers","following_url":"https://api.github.com/users/xbandx68/following{/other_user}","gists_url":"https://api.github.com/users/xbandx68/gists{/gist_id}","starred_url":"https://api.github.com/users/xbandx68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbandx68/subscriptions","organizations_url":"https://api.github.com/users/xbandx68/orgs","repos_url":"https://api.github.com/users/xbandx68/repos","events_url":"https://api.github.com/users/xbandx68/events{/privacy}","received_events_url":"https://api.github.com/users/xbandx68/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-31T17:34:20Z","updated_at":"2015-09-01T04:54:45Z","closed_at":null,"body":"and I write this code\r\n\r\nPreferenceCategory category = new PreferenceCategory(getActivity().getBaseContext());\r\n            category.setTitle(\"Categorie\");\r\n            screen.addPreference(category);\r\n\r\nAmbilWarnaPreference list1 = new AmbilWarnaPreference(getActivity().getBaseContext(), null);\r\n        list1.setTitle(\"Sorbetti\");\r\n        list1.setSummary(\"Sorbetti gelao\");\r\n        list1.setDefaultValue(0xff6699cc);\r\n        list1.setKey(\"Sorbetti_key\");\r\n        category.addPreference(list1);\r\n        setPreferenceScreen(screen);"},"comment":{"url":"https://api.github.com/repos/yukuku/ambilwarna/issues/comments/136586446","html_url":"https://github.com/yukuku/ambilwarna/issues/8#issuecomment-136586446","issue_url":"https://api.github.com/repos/yukuku/ambilwarna/issues/8","id":136586446,"user":{"login":"denisk20","id":3080318,"avatar_url":"https://avatars.githubusercontent.com/u/3080318?v=3","gravatar_id":"","url":"https://api.github.com/users/denisk20","html_url":"https://github.com/denisk20","followers_url":"https://api.github.com/users/denisk20/followers","following_url":"https://api.github.com/users/denisk20/following{/other_user}","gists_url":"https://api.github.com/users/denisk20/gists{/gist_id}","starred_url":"https://api.github.com/users/denisk20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denisk20/subscriptions","organizations_url":"https://api.github.com/users/denisk20/orgs","repos_url":"https://api.github.com/users/denisk20/repos","events_url":"https://api.github.com/users/denisk20/events{/privacy}","received_events_url":"https://api.github.com/users/denisk20/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T04:54:45Z","updated_at":"2015-09-01T04:54:45Z","body":"I guess it's correct, in fact in many SDK View constructors have `AttributeSet` parameter marked as Nullable in order to let us know that `null` is a valid parameter:\r\n\r\n    public TextView(Context context, @Nullable AttributeSet attrs) {\r\n        this(context, attrs, com.android.internal.R.attr.textViewStyle);\r\n    }"}}