Add a Textview to a FrameLayout in a determined position

后端 未结 6 1762
旧巷少年郎
旧巷少年郎 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:49

    Setting the gravity programatically definitely works Please set the layout_gravity to right in the xml TextView.setGravity(Gravity.RIGHT);

提交回复
热议问题