blob: 283c11a870b5d9a98d79082a3a40176dfa957672 [file] [log] [blame]
<?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=".MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@+id/navigator">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="@+id/skottie_container">
<android.support.constraint.ConstraintLayout
android:layout_marginTop="50px"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/bitmapImage"
android:layout_width="400px"
android:layout_height="400px"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent">
</ImageView>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="50px"
app:layout_constraintLeft_toRightOf="@+id/bitmapImage"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:text="ImageView populated by bitmap">
</TextView>
</android.support.constraint.ConstraintLayout>
<android.support.constraint.ConstraintLayout
android:layout_marginTop="50px"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<SurfaceView
android:id="@+id/threadedSurface"
android:layout_width="400px"
android:layout_height="400px"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent">
</SurfaceView>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="50px"
android:text="SurfaceView drawn on a thread managed by AndroidKit's native code"
app:layout_constraintLeft_toRightOf="@+id/threadedSurface"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
</TextView>
</android.support.constraint.ConstraintLayout>
<android.support.constraint.ConstraintLayout
android:layout_marginTop="50px"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<SurfaceView
android:id="@+id/runtimeEffect"
android:layout_width="400px"
android:layout_height="400px"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent">
</SurfaceView>
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="50px"
app:layout_constraintLeft_toRightOf="@+id/runtimeEffect"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:text="Runtime effect drawn on a AndroidKit's\nutil thread. GL on Surface View.">
</TextView>
</android.support.constraint.ConstraintLayout>
<org.skia.androidkit.util.SkottieView
android:layout_width="400px"
android:layout_height="400px"
app:background_color="#fefefe"
app:src="@raw/permission">
</org.skia.androidkit.util.SkottieView>
</LinearLayout>
</ScrollView>
<org.skia.androidkitdemo1.NavigationSpinner
android:id="@+id/navigator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent">
</org.skia.androidkitdemo1.NavigationSpinner>
</android.support.constraint.ConstraintLayout>