Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Was the textAlignment attribute removed in Android Studio 3.2?

Before closing this question as a duplicate of this one, please note the other post never got an acceptable answer.

Here's a screenshot of what it looked like before, according to the Google Codelabs tutorials

enter image description here

I can't find this attribute (even in the expanded list). Was it removed? If so, what's an acceptable replacement for it? Since I'm relatively new to Android programming, I'm not too comfortable with editing XML directly to mimic the functionality of textAlignment.

like image 230
AlexH Avatar asked Mar 16 '26 02:03

AlexH


1 Answers

I currently use Android Studio 3.2.1 (Build #AI-181.5540.7.32.5056338, built on October 9, 2018) and it is still there. At the exact same place as in your screenshot. So, it should be there.

If you can't find it for some reason, there is still the possibility to write it manually within the properties of your TextView in the XML file with the following (changing "textStart" to the value you want):

android:textAlignment="textStart"

You wrote, that you are not comfortable with editing the XML directly, but you would basically just have to copy the above line to the TextView. You don't need to be worried about it, if it doesn't work out the way, you want to, you can still return to how it was before you modified the XML file.

like image 191
Geshode Avatar answered Mar 17 '26 17:03

Geshode



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!