{"action":"closed","issue":{"url":"https://api.github.com/repos/ittianyu/BottomNavigationViewEx/issues/130","repository_url":"https://api.github.com/repos/ittianyu/BottomNavigationViewEx","labels_url":"https://api.github.com/repos/ittianyu/BottomNavigationViewEx/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/ittianyu/BottomNavigationViewEx/issues/130/comments","events_url":"https://api.github.com/repos/ittianyu/BottomNavigationViewEx/issues/130/events","html_url":"https://github.com/ittianyu/BottomNavigationViewEx/issues/130","id":365145060,"node_id":"MDU6SXNzdWUzNjUxNDUwNjA=","number":130,"title":"Setting icon from URL (Glide)","user":{"login":"lucandr","id":43705497,"node_id":"MDQ6VXNlcjQzNzA1NDk3","avatar_url":"https://avatars0.githubusercontent.com/u/43705497?v=4","gravatar_id":"","url":"https://api.github.com/users/lucandr","html_url":"https://github.com/lucandr","followers_url":"https://api.github.com/users/lucandr/followers","following_url":"https://api.github.com/users/lucandr/following{/other_user}","gists_url":"https://api.github.com/users/lucandr/gists{/gist_id}","starred_url":"https://api.github.com/users/lucandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucandr/subscriptions","organizations_url":"https://api.github.com/users/lucandr/orgs","repos_url":"https://api.github.com/users/lucandr/repos","events_url":"https://api.github.com/users/lucandr/events{/privacy}","received_events_url":"https://api.github.com/users/lucandr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-29T16:12:35Z","updated_at":"2018-10-01T12:20:22Z","closed_at":"2018-10-01T12:20:22Z","author_association":"NONE","body":"Hi, I need to show on an icon a profile picture that is coming from an URL.\r\n\r\nDo you know how can I achive this?\r\n\r\nI have already tried the following:\r\n\r\n1- I tried setOnNavigationItemSelectedListener, but it is now working in my code. I am using Navigation library from arch components and when I press the button nothing happens, the navigation breaks. \r\n\r\n````\r\nbinding.bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {\r\n            @Override\r\n            public boolean onNavigationItemSelected(@NonNull MenuItem item) {\r\n                return false;\r\n            }\r\n        });\r\n````\r\n\r\n2- I tried to set a selector when I receive the drawable from Glide, but it isn't working, it shows the first time but when I click it, it dissapears.\r\n````\r\nGlide\r\n                .with(this)\r\n                .load(\"url\")\r\n                .into(new SimpleTarget<Drawable>() {\r\n                    @Override\r\n                    public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {\r\n                        StateListDrawable states = new StateListDrawable();\r\n                        states.addState(new int[]{android.R.attr.state_pressed}, resource);\r\n                        states.addState(new int[]{android.R.attr.state_checked}, resource);\r\n                        states.addState(new int[]{}, resource);\r\n                        activityHomeBinding.bottomNavigationView.getIconAt(1).setImageDrawable(states);\r\n                    }\r\n                });\r\n````\r\n\r\nAny ideas?\r\n\r\nThanks\r\n"}}
{"actor":{"display_login":"lucandr"}}