activity_main.xml (2306B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 android:background="@color/green" 8 tools:context=".MainActivity"> 9 10 <ImageButton 11 android:id="@+id/imageButton3" 12 android:layout_width="95dp" 13 android:layout_height="85dp" 14 android:src="@drawable/deutschlang" 15 app:layout_constraintLeft_toLeftOf="parent" 16 app:layout_constraintRight_toLeftOf="@id/imageButton2" 17 app:layout_constraintTop_toBottomOf="@id/gf" 18 android:layout_marginTop="50dp" 19 tools:layout_editor_absoluteX="261dp" 20 tools:layout_editor_absoluteY="482dp" /> 21 22 <ImageView 23 android:id="@+id/lgimg" 24 android:layout_width="300dp" 25 android:layout_height="300dp" 26 android:src="@drawable/lg2020" 27 app:layout_constraintBottom_toTopOf="@+id/gf" 28 app:layout_constraintLeft_toLeftOf="parent" 29 app:layout_constraintRight_toRightOf="parent" 30 app:layout_constraintTop_toTopOf="parent" 31 app:layout_constraintVertical_chainStyle="packed" /> 32 33 <TextView 34 android:id="@+id/gf" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:layout_marginTop="50dp" 38 android:text="GreenFabLab" 39 android:textSize="32dp" 40 app:layout_constraintHorizontal_bias="0.497" 41 app:layout_constraintLeft_toLeftOf="parent" 42 app:layout_constraintRight_toRightOf="parent" 43 app:layout_constraintTop_toBottomOf="@+id/lgimg" /> 44 45 <ImageButton 46 android:id="@+id/imageButton2" 47 android:layout_width="95dp" 48 android:layout_height="85dp" 49 android:src="@drawable/englang" 50 app:layout_constraintRight_toRightOf="parent" 51 app:layout_constraintLeft_toRightOf="@id/imageButton3" 52 app:layout_constraintTop_toBottomOf="@id/gf" 53 android:layout_marginTop="50dp" 54 tools:layout_editor_absoluteX="56dp" 55 tools:layout_editor_absoluteY="482dp" /> 56 57 </androidx.constraintlayout.widget.ConstraintLayout>