I have been working with numberpatch png files for an upcoming app. I am setting the background to a textview with a numberpatch. I see that I must have both dimensions of the textview with "wrap_content".
In the constraintlayout I have two textviews side by side: see attached picture
the numberpatch textview with "wrap_content" dimensions, and The blue textview with "150dp" dimensions for both the height and width.
I understand the numberpatch png must extend to wrap around the contents of the view. What I dont understand is why the numberpatch grows so big if the constraintlayout height is just 360 dp.
The numberpatch png actually makes the constraintlayout grow larger than its height dimension of 360 pd. I tried changing the size of the text in the numberpatch textview to a smaller dimension "8sp" but the view still grew.
Do note that the textview is set with constraints:
- layout_constraintHorizontal_bias = "0.5"
- layout_constraintVertical_bias = "0.5"
with the horizontal and vertical bias shouldn't the textview remained centered instead of overgrowing itself?
**