android - ImageView setBackgroundRessource not update even with inflate -
    i'm trying update imageview gridview border, doing have xml file works :   <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android">     <item>          <shape android:shape="rectangle">             <solid android:color="#158cdb" />          </shape>     </item>        <item android:left="3dp" android:right="3dp" android:top="3dp" android:bottom="3dp">           <shape android:shape="rectangle">              <solid android:color="#ffffff" />         </shape>     </item>     </layer-list>    so launch activity, timer launched , after 15 secondes, try update imageview, tried code :   public void highlightfooditem(int id) {     imageadapter ia = (imageadapter) _grid.getadapter();     (int = 0; < ia.getcount(); i++) {         view currentview...