Initial addition of input blocks

This commit is contained in:
Alejandro Saucedo 2020-10-04 08:07:17 +01:00
parent 652e010895
commit a1e25fc792
13 changed files with 181 additions and 170 deletions

View file

@ -1,20 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.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:id="@+id/activity_kompute_jni"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.hellojni.HelloJni">
tools:context="com.ethicalml.kompute.KomputeJni">
<TextView
android:id="@+id/kompute_jni_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="@+id/activity_kompute_jni"
app:layout_constraintLeft_toLeftOf="@+id/activity_kompute_jni"
app:layout_constraintRight_toRightOf="@+id/activity_kompute_jni"
app:layout_constraintTop_toTopOf="@+id/activity_kompute_jni" />
<LinearLayout
android:layout_width="409dp"
android:layout_height="354dp"
android:orientation="vertical"
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="376dp">
<Space
android:layout_width="match_parent"
android:layout_height="20dp" />
<LinearLayout
android:layout_width="409dp"
android:layout_height="50dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView"
android:layout_width="10dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:adjustViewBounds="true"
android:cropToPadding="true"
android:src="@mipmap/kompute_icon_foreground" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Kompute Android"
android:textSize="24sp"
android:textStyle="bold" />
</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 Xi"
android:textSize="24sp" />
<EditText
android:id="@+id/editTextTextPersonName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text="Name" />
</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="Result:"
android:textSize="24sp" />
<TextView
android:id="@+id/kompute_jni_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Input Xi"
android:textSize="24sp" />
</LinearLayout>
<Space
android:layout_width="match_parent"
android:layout_height="20dp" />
<WebView
android:id="@+id/kompute_gif_view"
android:layout_width="409dp"
android:layout_height="230dp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/kompute_icon_background"/>
<foreground android:drawable="@mipmap/kompute_icon_foreground"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="kompute_icon_background">#FFFFFF</color>
</resources>