1
I got a problem with mine layout, in API 16 ( 4.1.1 ) TextView
is not centered. I am using ConstraintLayout
.
The properties in XML are like this:
<TextView
android:id="@+id/txv_textomeio"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:fontFamily="sans-serif-condensed"
android:text="@string/textoinicial"
android:textAlignment="center"
android:textAllCaps="false"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/btn_iniciar"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/txv_certo"
app:layout_constraintVertical_bias="0.503" />
@Danielgentil didn’t work
– Igor Oliveira