Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <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:layout_width="match_parent"
- android:layout_height="match_parent"
- tools:context=".MainActivity">
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guideline"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- app:layout_constraintGuide_percent=".10"/>
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guideline2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- app:layout_constraintGuide_percent=".9" />
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guideline3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent=".7" />
- <androidx.constraintlayout.widget.Guideline
- android:id="@+id/guideline4"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- app:layout_constraintGuide_percent=".10" />
- <ImageView
- android:id="@+id/imageView"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toRightOf="@id/guideline"
- app:layout_constraintTop_toBottomOf="@id/guideline4"
- app:layout_constraintBottom_toTopOf="@id/guideline3"
- app:layout_constraintRight_toLeftOf="@id/guideline2"
- android:src="@drawable/surykatka"
- android:scaleType="fitXY"></ImageView>
- <TextView
- android:id="@+id/textView"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toBottomOf="@id/guideline3"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- android:text="@string/opis1"
- />
- <Button
- android:id="@+id/preview"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="@id/guideline4"
- app:layout_constraintBottom_toBottomOf="@id/guideline3"
- app:layout_constraintRight_toRightOf="@id/guideline"
- android:onClick="preview"
- />
- <Button
- android:id="@+id/next"
- android:layout_width="0dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toLeftOf="@id/guideline2"
- app:layout_constraintTop_toTopOf="@id/guideline4"
- app:layout_constraintBottom_toBottomOf="@id/guideline3"
- app:layout_constraintRight_toRightOf="parent"
- android:onClick="next"
- />
- </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement