Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

3.1.4 textAlignment is missing ( Android Studio)

I have the new Version of Android Studio (3.1.4), but I can't find textAlignment. I've already searched in "View all Attributes". Do somebody now where I can find it.

Thanks for answering!

like image 221
Prorie Avatar asked Aug 07 '18 15:08

Prorie


1 Answers

Here's how I resolved the problem (on Android Studio 3.3 - Build #AI-182.5107.16.33.5199772, built on December 25, 2018):

  1. In Android Studio, open build.gradle (Module: app).
  2. Look for minSdkVersion
  3. Changing this to 17 (from 15) did the trick for me. I suggest you try the same, unless you really need it to be earlier.
  4. Android Studio will rebuild your project and you should now see the textAlignment attribute right below textStyle.

Note: I had the same problem and I noticed that the TEXT_ALIGNMENT constants were only introduced in API level 17 (see https://developer.android.com/reference/android/view/View).

Let me know if this helps.

like image 93
Paps Dali Avatar answered Oct 11 '22 13:10

Paps Dali