I set the background for ListView
listView.setBackgroundResource(R.drawable.documents_delete); How can I align the image in the center of the background to its original size and, in principle, change the settings of the background image?
You have 2 options:
Create an xml-drawable to put the image in the bitmap tag. So she will be able to set a couple of parameters, incl. center placement.
Do not use the background, but put your markup under the ListView (which is with a transparent background). You can do anything in your markup.
Source: https://ru.stackoverflow.com/questions/659027/
All Articles