So, I have a relative layout that looks like this:
ImageView TextView1
TextView2
Suppose, the content of TextView1 is “” (empty string), and all the views and layouts are set to wrap_content, the ImageView, then is supposed be in the center of the relative layout, right? But, it seems that the right margin is always greater than the left margin. I doubt this is caused by TextView1. Any idea?
Add your code so we can help you better.
You can try use the View.GONE when your string is empty.