Multi-line text-views alignment to their baseline (ConstraintLayout Android Studio)

后端 未结 4 1535
日久生厌
日久生厌 2021-02-19 03:53

I have three TextViews \"hi\", \"x\" and \"Hello World\" which I would like to align in the bottom of the Hello World text (ie hi_x_World)

4条回答
  •  一生所求
    2021-02-19 04:44

    AFAIK, there is no way to accomplish this task using ConstraintLayout as of today.

    If you know the content of the "helloWorldTextView" in advance, you might wanna split the lines into several textViews and then use app:layout_constraintBaselineToBaselineOf.

    I know this is a tricky workaround, but it's the only way that comes to mind.

提交回复
热议问题