
أندرويد ستوديو 2020– درس4: كيف تستخدم الـConstraint Layout
:The Code chains1.xml:<?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” android:id=”@+id/constraintLayout” android:layout_width=”match_parent” android:layout_height=”match_parent” android:background=”@color/colorPrimary”><ImageView android:id=”@+id/image1″ android:layout_width=”70dp” android:layout_height=”70dp” android:contentDescription=”@string/todo” android:src=”@drawable/image1″ app:layout_constraintBottom_toTopOf=”@id/image2″ app:layout_constraintLeft_toLeftOf=”parent” app:layout_constraintRight_toRightOf=”parent” app:layout_constraintTop_toTopOf=”parent” app:layout_constraintVertical_chainStyle=”spread” /><ImageView android:id=”@+id/image2″ android:layout_width=”70dp” android:layout_height=”70dp”