You can enable or disable (gray out ) a button with setEnabled method of Button class. In my case i needed to enable a button depending on a network call result. Although i call setEnabled(true), button didnt become enabled. When i touch the button, it become enabled. After some investigation, i noticed that i needed to use runOnUIThread when calling setEnabled. Then setEnabled worked. Hope this helps to developers that encounter same problem.
Android Uygulama Geliştirmede gönderildi– 03/11/2016