<EditText
android:id="@ id/etBaseAmount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:ems="8"
android:hint="Bill amount"
android:inputType="numberDecimal"
android:textSize="24sp"
app:layout_constraintBottom_toBottomOf="@ id/tvBaseLabel"
app:layout_constraintStart_toEndOf="@ id/tvBaseLabel"
app:layout_constraintTop_toTopOf="@ id/tvBaseLabel" />
Can someone say me what I did wrong?
I work with Android 11
CodePudding user response:
Can you please attach full xml , looks like you are missing a parent tag
CodePudding user response:
I actually found the solution randomly: The problem was that for an unknow reason the element was twice in the file xD
CodePudding user response:
In the xml link you've provided I can see that you have used the same id (android:id=@ id/etBaseAmount") for the parent constraint layout(line #5) as well as the EditText(line #55), change the id for the parent layout and it will work fine.