1
I’m mounting a screen for an android application, I made the screen layout and was working, but after updating the android studio my layout no longer works.
The code is 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:
But now she’s like this:
I don’t know much about HTML, I tried to tidy up the layout, but I only managed to put fixed values in the text box size, I didn’t want to do so because if you change the screen size the layout doesn’t look good.
Sorry to confision, layout was never my strong kkk It worked, very sheltered.
– EdCarlos