How to center text between two images in Android
I need to center a small amount of text between two images. This post nearly achieves what I want, however the text is left aligned and not centered between the two images.
How to place a text between two images in Android
I've tried using android:layout_centerInParent, but the text got displayed over the images instead of wrappi开发者_Go百科ng between them.
Any help appreciated.
Thanks in advance,
Philip
I think you should use linearlayout with orientation is horizontal.Besides TextView should be set layout_weight = "1",
Add android:gravity="center" or android:layout_gravity="center".
精彩评论