I'm setting up a screen for an android application, I made the screen layout and it was working, however after updating the android studio my layout does not work anymore.
The code for this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".actyvities.MainActivity">
<include
android:id="@+id/tool_bar"
layout="@layout/tool_bar"
></include>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<EditText
android:id="@+id/edit_box"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:hint="Nova nota..."/>
<Button
android:id="@+id/insert_button"
android:layout_width="80dp"
android:layout_height="wrap_content"
android:text="Inserir" />
</LinearLayout>-->
<ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content"></ListView>
</LinearLayout>
Before the screen looked like this:
Butnowitlookslikethis:
I do not understand much of HTML, I tried to arrange the layout, but I only managed to put fixed values in the size of the text box, I did not want to do that because if you change the screen size, the layout does not look good.