{"action":"created","issue":{"url":"https://api.github.com/repos/kevalpatel2106/PasscodeView/issues/6","repository_url":"https://api.github.com/repos/kevalpatel2106/PasscodeView","labels_url":"https://api.github.com/repos/kevalpatel2106/PasscodeView/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/kevalpatel2106/PasscodeView/issues/6/comments","events_url":"https://api.github.com/repos/kevalpatel2106/PasscodeView/issues/6/events","html_url":"https://github.com/kevalpatel2106/PasscodeView/issues/6","id":262318064,"number":6,"title":"The UI of password page changes and shrinks sometimes.","user":{"login":"asif84468","id":20276384,"avatar_url":"https://avatars0.githubusercontent.com/u/20276384?v=4","gravatar_id":"","url":"https://api.github.com/users/asif84468","html_url":"https://github.com/asif84468","followers_url":"https://api.github.com/users/asif84468/followers","following_url":"https://api.github.com/users/asif84468/following{/other_user}","gists_url":"https://api.github.com/users/asif84468/gists{/gist_id}","starred_url":"https://api.github.com/users/asif84468/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asif84468/subscriptions","organizations_url":"https://api.github.com/users/asif84468/orgs","repos_url":"https://api.github.com/users/asif84468/repos","events_url":"https://api.github.com/users/asif84468/events{/privacy}","received_events_url":"https://api.github.com/users/asif84468/received_events","type":"User","site_admin":false},"labels":[{"id":577989971,"url":"https://api.github.com/repos/kevalpatel2106/PasscodeView/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"kevalpatel2106","id":20060162,"avatar_url":"https://avatars0.githubusercontent.com/u/20060162?v=4","gravatar_id":"","url":"https://api.github.com/users/kevalpatel2106","html_url":"https://github.com/kevalpatel2106","followers_url":"https://api.github.com/users/kevalpatel2106/followers","following_url":"https://api.github.com/users/kevalpatel2106/following{/other_user}","gists_url":"https://api.github.com/users/kevalpatel2106/gists{/gist_id}","starred_url":"https://api.github.com/users/kevalpatel2106/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevalpatel2106/subscriptions","organizations_url":"https://api.github.com/users/kevalpatel2106/orgs","repos_url":"https://api.github.com/users/kevalpatel2106/repos","events_url":"https://api.github.com/users/kevalpatel2106/events{/privacy}","received_events_url":"https://api.github.com/users/kevalpatel2106/received_events","type":"User","site_admin":false},"assignees":[{"login":"kevalpatel2106","id":20060162,"avatar_url":"https://avatars0.githubusercontent.com/u/20060162?v=4","gravatar_id":"","url":"https://api.github.com/users/kevalpatel2106","html_url":"https://github.com/kevalpatel2106","followers_url":"https://api.github.com/users/kevalpatel2106/followers","following_url":"https://api.github.com/users/kevalpatel2106/following{/other_user}","gists_url":"https://api.github.com/users/kevalpatel2106/gists{/gist_id}","starred_url":"https://api.github.com/users/kevalpatel2106/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevalpatel2106/subscriptions","organizations_url":"https://api.github.com/users/kevalpatel2106/orgs","repos_url":"https://api.github.com/users/kevalpatel2106/repos","events_url":"https://api.github.com/users/kevalpatel2106/events{/privacy}","received_events_url":"https://api.github.com/users/kevalpatel2106/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-10-03T06:31:13Z","updated_at":"2018-02-02T07:06:03Z","closed_at":null,"author_association":"NONE","body":"![nexus5x_7 1 2](https://user-images.githubusercontent.com/20276384/31112478-9873630a-a831-11e7-9b78-e46da113500f.png)\r\n\r\n**Activity File**\r\n\r\n`import android.os.Bundle;\r\nimport android.support.v7.app.AppCompatActivity;\r\nimport android.widget.Toast;\r\n\r\nimport com.declaree.declaree.R;\r\nimport com.kevalpatel.passcodeview.KeyNamesBuilder;\r\nimport com.kevalpatel.passcodeview.PinView;\r\nimport com.kevalpatel.passcodeview.indicators.CircleIndicator;\r\nimport com.kevalpatel.passcodeview.interfaces.AuthenticationListener;\r\nimport com.kevalpatel.passcodeview.keys.RoundKey;\r\n\r\npublic class PinActivity extends AppCompatActivity {\r\n\r\n    private int failureCount = 0;\r\n    private boolean success = false;\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_pin);\r\n\r\n        PinView pinView = findViewById(R.id.pin_view);\r\n        pinView.setCorrectPin(new int[]{1, 2, 3, 4});\r\n\r\n        pinView.setKeyNames(new KeyNamesBuilder()\r\n                .setKeyOne(this, R.string.key_1)\r\n                .setKeyTwo(this, R.string.key_2)\r\n                .setKeyThree(this, R.string.key_3)\r\n                .setKeyFour(this, R.string.key_4)\r\n                .setKeyFive(this, R.string.key_5)\r\n                .setKeySix(this, R.string.key_6)\r\n                .setKeySeven(this, R.string.key_7)\r\n                .setKeyEight(this, R.string.key_8)\r\n                .setKeyNine(this, R.string.key_9)\r\n                .setKeyZero(this, R.string.key_0));\r\n\r\n        pinView.setKey(new RoundKey.Builder(pinView)\r\n                .setKeyPadding(R.dimen.key_padding)\r\n                .setKeyStrokeColorResource(R.color.colorAccent)\r\n                .setKeyStrokeWidth(R.dimen.key_stroke_width)\r\n                .setKeyTextColorResource(R.color.colorPrimaryDark)\r\n                .setKeyTextSize(R.dimen.key_text_size)\r\n                .build());\r\n\r\n        pinView.setIndicator(new CircleIndicator.Builder(pinView)\r\n                .setIndicatorRadius(R.dimen.indicator_radius)\r\n                .setIndicatorFilledColorResource(R.color.colorPrimaryDark)\r\n                .setIndicatorStrokeColorResource(R.color.colorAccent)\r\n                .setIndicatorStrokeWidth(R.dimen.indicator_stroke_width)\r\n                .build());\r\n\r\n\r\n        pinView.setTitle(\"Use fingerprint or enter PIN to unlock\");\r\n\r\n        pinView.setAuthenticationListener(new AuthenticationListener() {\r\n            @Override\r\n            public void onAuthenticationSuccessful() {\r\n                //User authenticated successfully.\r\n                //Navigate to next screens.\r\n                Toast.makeText(PinActivity.this, \"Success\", Toast.LENGTH_SHORT).show();\r\n                success = true;\r\n                onBackPressed();\r\n            }\r\n\r\n            @Override\r\n            public void onAuthenticationFailed() {\r\n                //Calls whenever authentication is failed or user is unauthorized.\r\n                //Do something if you want to handle unauthorized user.\r\n                failureCount++;\r\n                success = false;\r\n                if (failureCount > 4)\r\n                    Toast.makeText(PinActivity.this, \"You are logged out as entered wrong password\", Toast.LENGTH_SHORT).show();\r\n                \r\n            }\r\n        });\r\n\r\n    }\r\n\r\n    @Override\r\n    public void onBackPressed() {\r\n        if (success)\r\n            super.onBackPressed();\r\n    }\r\n}\r\n`\r\n\r\n**UI file code**\r\n\r\n`<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<RelativeLayout\r\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    >\r\n\r\n    <ImageView\r\n        android:id=\"@+id/imageView\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:src=\"@drawable/logo_dark\"\r\n        android:visibility=\"gone\"\r\n        android:contentDescription=\"@string/app_name\"/>\r\n\r\n    <com.kevalpatel.passcodeview.PinView\r\n        android:id=\"@+id/pin_view\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:layout_below=\"@id/imageView\"\r\n        app:dividerColor=\"@color/colorPrimaryDark\"\r\n        app:fingerprintDefaultText=\"Scan your finger to unlock application\"\r\n        app:fingerprintEnable=\"true\"\r\n        app:fingerprintTextColor=\"@color/colorPrimaryDark\"\r\n        app:fingerprintTextSize=\"@dimen/finger_print_text_size\"\r\n        app:titleTextColor=\"@android:color/white\"/>\r\n\r\n</RelativeLayout>\r\n`"},"comment":{"url":"https://api.github.com/repos/kevalpatel2106/PasscodeView/issues/comments/362504275","html_url":"https://github.com/kevalpatel2106/PasscodeView/issues/6#issuecomment-362504275","issue_url":"https://api.github.com/repos/kevalpatel2106/PasscodeView/issues/6","id":362504275,"user":{"login":"kpamansoor","id":9547156,"avatar_url":"https://avatars0.githubusercontent.com/u/9547156?v=4","gravatar_id":"","url":"https://api.github.com/users/kpamansoor","html_url":"https://github.com/kpamansoor","followers_url":"https://api.github.com/users/kpamansoor/followers","following_url":"https://api.github.com/users/kpamansoor/following{/other_user}","gists_url":"https://api.github.com/users/kpamansoor/gists{/gist_id}","starred_url":"https://api.github.com/users/kpamansoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpamansoor/subscriptions","organizations_url":"https://api.github.com/users/kpamansoor/orgs","repos_url":"https://api.github.com/users/kpamansoor/repos","events_url":"https://api.github.com/users/kpamansoor/events{/privacy}","received_events_url":"https://api.github.com/users/kpamansoor/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T07:06:03Z","updated_at":"2018-02-02T07:06:03Z","author_association":"NONE","body":"I'm also facing same issue, can we get it updated?"}}
{"actor":{"display_login":"kpamansoor"}}