Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.slimjr.proiectf.MainActivity"
tools:layout_editor_absoluteY="81dp"
tools:layout_editor_absoluteX="0dp">
<EditText
android:id="@+id/txt1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:hint="X"
android:inputType="number"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
tools:layout_editor_absoluteY="46dp" />
<EditText
android:id="@+id/txt2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Y"
android:inputType="number"
tools:layout_editor_absoluteX="85dp"
tools:layout_editor_absoluteY="108dp" />
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:eek:nClick="onButtonClick"
android:text="Suma"
tools:layout_editor_absoluteX="148dp"
tools:layout_editor_absoluteY="218dp" />
<TextView
android:id="@+id/res"
android:layout_width="75dp"
android:layout_height="42dp"
android:text="rezultat"
tools:layout_editor_absoluteX="154dp"
tools:layout_editor_absoluteY="168dp" />
</android.support.constraint.ConstraintLayout>
. i used relative layout in xml. this is my first app