How to get to the background settings elements TextView? Are there any CSS counterparts: background-position, background-repeat, background-size?

    1 answer 1

    It is impossible to change something in the background programmatically, just to replace it with a new color / file-image.

    But you can make the background through xml and now there you can configure some things. Here is an example that can be assigned as a background view. Here the picture will be repeated

     <?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/SOME_IMAGE_FILE_IN_DRAWABLE_FOLDER" android:tileMode="repeat"/>