He had designed a listview layout, there is an imageview and textview each list, and all the initial imageview, the database of a column in some empty some is not null, through the adapter is enough to get to the database that a list of all the information, could you tell me how to design the can when access to information is empty imageview modified into another picture,
CodePudding user response:
The judging your imageview is null or you get data is null or empty into another picture in the adapter
CodePudding user response:
You can get the data is empty or not, the next step is controls in the adapter to replace background. Good wow imageView setBackground (R.m ipmap. XXXX) and the other shows that I have for example wow