Aligning baseline of two text views in Android

前端 未结 4 891
轻奢々
轻奢々 2021-02-18 18:49

please find below my layout & its result ; I need the text \'Text message\' to align on the baseline of the text \'Header\'(Please find bel

4条回答
  •  猫巷女王i
    2021-02-18 19:28

    Just use the android:gravity="bottom" on LinearLayout(The linear with the both textviews) and android:layout_height="wrap_content" in both TextViews.

提交回复
热议问题