Constraint layout Circular positioning Kotlin
Wed Apr 14 2021 08:56:04 GMT+0000 (Coordinated Universal Time)
Saved by
@GoodRequest.
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/image1"
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/background_badge_green"
app:layout_constraintCircle="@id/baseImage"
app:layout_constraintCircleRadius="90dp"
app:layout_constraintCircleAngle="0"/>
<ImageView
android:id="@+id/image2"
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/background_badge_green"
app:layout_constraintCircle="@id/baseImage"
app:layout_constraintCircleRadius="90dp"
app:layout_constraintCircleAngle="45"/>
<ImageView
android:id="@+id/image3"
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/background_badge_green"
app:layout_constraintCircle="@id/baseImage"
app:layout_constraintCircleRadius="90dp"
app:layout_constraintCircleAngle="90"/>
<ImageView
android:id="@+id/baseImage"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginBottom="16dp"
android:layout_marginStart="16dp"
android:src="@drawable/background_badge_black"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
content_copyCOPY
Comments