Make a certain part of a android-textview align to the right

前端 未结 6 1426
南旧
南旧 2020-12-04 20:37

I have this TextView. Some parts of it is supposed to be aligned to the left and some parts to the right. How would I do this in Java?

Basicly I want t

6条回答
  •  既然无缘
    2020-12-04 20:53

    Simple.Adjust xml part in textview. Use layouts.If you want the textview to be in left

    android:alignParentLeft="true" For more align details look this.

    http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html

    And this is also an example for different layouts.

    http://www.androidhive.info/2011/07/android-layouts-linear-layout-relative-layout-and-table-layout/

提交回复
热议问题