Android Basics: xml-layouts
peekul opened this issue · 0 comments
In which task and step of the codelab can this issue be found?
When it was time to build and review the emulator, I could not build because of two layout errors related to "wrap_content"
Describe the problem
I couldn't use "wrap_content" and had to specify a width to overcome a layout error.
<EditText
android:id="@+id/cost_of_service"
android:layout_width="160dp"
android:layout_height="50dp" <THIS WAS "wrap_content">
android:hint="@string/cost_of_service"
android:inputType="numberDecimal"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
Steps to reproduce?
- Go to...
- Click on...
- See error...
Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.