Add a Textview to a FrameLayout in a determined position

后端 未结 6 1765
旧巷少年郎
旧巷少年郎 2021-01-12 09:18

I\'m trying to add a textView to a frameLayout. The TextView has wrap_content properties, so it grows when the text grows

6条回答
  •  攒了一身酷
    2021-01-12 09:43

    Set FrameLayout properties android:layout_width and android:layout_height to fill_parent and also set TextView property LayoutGravity . such as Center, Right or Top.

    Thanks

提交回复
热议问题