{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/222","repository_url":"https://api.github.com/repos/firebase/FirebaseUI-Android","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/222/comments","events_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/222/events","html_url":"https://github.com/firebase/FirebaseUI-Android/issues/222","id":167442336,"number":222,"title":"When adding a background on the Sign in views, the app gets really slow","user":{"login":"davidgcalle","id":6651015,"avatar_url":"https://avatars.githubusercontent.com/u/6651015?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgcalle","html_url":"https://github.com/davidgcalle","followers_url":"https://api.github.com/users/davidgcalle/followers","following_url":"https://api.github.com/users/davidgcalle/following{/other_user}","gists_url":"https://api.github.com/users/davidgcalle/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgcalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgcalle/subscriptions","organizations_url":"https://api.github.com/users/davidgcalle/orgs","repos_url":"https://api.github.com/users/davidgcalle/repos","events_url":"https://api.github.com/users/davidgcalle/events{/privacy}","received_events_url":"https://api.github.com/users/davidgcalle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/labels/feature:auth","name":"feature:auth","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-25T19:10:35Z","updated_at":"2016-08-10T20:36:56Z","closed_at":"2016-08-10T20:36:55Z","body":"\r\n### Describe your environment\r\n\r\n  * Android device: Nexus 6\r\n  * Android OS version: 6.0.1\r\n  * Google Play Services version: 9.0.2\r\n  * Firebase/Play Services SDK version: 9.0.2\r\n  * FirebaseUI version: 0.4.1\r\n  \r\n### Describe the problem:\r\n\r\nI need to put a background image on the sign in view to get a better UI/UX design, but the only way I see to do it, is applying it on the Theme that I'm passing on the `.createSignInIntentBuilder()`. \r\n\r\nTwo issues if I apply the style `<item name=\"android:background\">@drawable/image_name</item>`\r\nthis is what I got: \r\n\r\n![screenshot_20160725-125922](https://cloud.githubusercontent.com/assets/6651015/17113395/3cb9ef7e-5270-11e6-973e-dda20a34b7c8.png)\r\n\r\nSo I tried the next style `<item name=\"android:windowBackground\">@drawable/image_name</item>` and this is what I got:\r\n\r\n![screenshot_20160725-130128](https://cloud.githubusercontent.com/assets/6651015/17113451/779c02bc-5270-11e6-997c-a078d398d2a5.png)\r\n\r\nAll it's good aside the fact that everything in the sign in view gets really slow, till the point that it's not usable at all.\r\n\r\nWhat I suggest? well it will be most appreciated if a method `.setBackgroundImage() ` is added with a center crop, full screen Image View so it be easier and efficient to apply a background image. Like this:\r\n\r\n```\r\n AuthUI.getInstance()\r\n      .createSignInIntentBuilder()\r\n      .setTheme(R.style.theme)\r\n      .setLogo(R.drawable.logo)\r\n      .setBackgroundImage(R.drawable.image_name)\r\n      .setProviders(\r\n                 AuthUI.EMAIL_PROVIDER,\r\n                 AuthUI.GOOGLE_PROVIDER,\r\n                 AuthUI.FACEBOOK_PROVIDER)\r\n      .build()\r\n```\r\n\r\nI'm open to any suggestions.\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/comments/238995847","html_url":"https://github.com/firebase/FirebaseUI-Android/issues/222#issuecomment-238995847","issue_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/222","id":238995847,"user":{"login":"samtstern","id":8466666,"avatar_url":"https://avatars.githubusercontent.com/u/8466666?v=3","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T20:36:55Z","updated_at":"2016-08-10T20:36:55Z","body":"@davidgcalle unfortunately I don't think this is an issue with this library.  See this post:\r\nhttp://stackoverflow.com/questions/35301697/android-extreme-lag-when-using-high-resolution-drawables\r\n\r\nEven though your image is reasonably compressed, because it is high resolution it is very large when held in memory.  And it will stay in memory as the app runs.\r\n\r\nI'm going to close this issue since it's not a library problem and we are tracking increasing customization abilities elsewhere.  Thanks for reporting!"}}
{"actor":{"display_login":"samtstern"}}