Fully functioning android ui and passing of float arrays

This commit is contained in:
Alejandro Saucedo 2020-10-04 11:56:24 +01:00
parent a1e25fc792
commit 9698ba7f42
3 changed files with 136 additions and 13 deletions

View file

@ -10,10 +10,11 @@
<LinearLayout
android:layout_width="409dp"
android:layout_height="354dp"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="376dp">
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:layout_editor_absoluteX="1dp">
<Space
android:layout_width="match_parent"
@ -60,15 +61,80 @@
android:textSize="24sp" />
<EditText
android:id="@+id/editTextTextPersonName"
android:id="@+id/XIEditText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text="Name" />
android:text="[ 1, 2, 3 ]" />
</LinearLayout>
<Space
android:layout_width="match_parent"
android:layout_height="20dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Input Xj"
android:textSize="24sp" />
<EditText
android:id="@+id/XJEditText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text="[ 1, 2, 3 ]" />
</LinearLayout>
<Space
android:layout_width="match_parent"
android:layout_height="20dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Input Y"
android:textSize="24sp" />
<EditText
android:id="@+id/YEditText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text="[ 1, 2, 3 ]" />
</LinearLayout>
<Space
android:layout_width="match_parent"
android:layout_height="20dp" />
<Button
android:id="@+id/KomputeButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="KomputeButtonOnClick"
android:text="Kompute" />
<Space
android:layout_width="match_parent"
android:layout_height="20dp" />