I have two elements, a TextView
and an ImageView
. The ImageView
will be at the end of the TextView
. The TextView
's width will be change based on the text, and the ImageView
also follows the end of the TextView
. Like this:
But the problem is, if the text is so long, the ImageView
goes out of the screen, like this:
But it should be like this:
How can I get this only by XML? I know programatically it can be achieved, but I want a XML solution.
Note: The ImageView
can be a Button
, so I can't use drawableEnd
like solution.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…