Created
April 1, 2020 12:39
-
-
Save pavlospt/805ba1968529ac869b2c847852b0f3f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <androidx.constraintlayout.widget.ConstraintLayout | |
| android:id="@+id/a_container_id" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_marginStart="52dp" | |
| android:layout_marginEnd="16dp" | |
| android:maxWidth="296dp" | |
| app:layout_constraintEnd_toEndOf="parent" | |
| app:layout_constraintStart_toStartOf="parent" | |
| app:layout_constraintTop_toTopOf="parent"> | |
| <ImageView | |
| android:id="@+id/icon" | |
| android:layout_width="24dp" | |
| android:layout_height="24dp" | |
| android:layout_marginStart="16dp" | |
| android:src="@drawable/an_icon_drawable" | |
| app:layout_constraintBottom_toBottomOf="@+id/a_textview_id" | |
| app:layout_constraintStart_toStartOf="parent" | |
| app:layout_constraintTop_toTopOf="@+id/a_textview_id" /> | |
| <TextView | |
| android:id="@+id/a_textview_id" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_marginStart="12dp" | |
| android:layout_marginTop="16dp" | |
| android:layout_marginBottom="16dp" | |
| android:ellipsize="end" | |
| android:maxLines="2" | |
| android:text="some very long text in order to make it fill more than one line" | |
| app:layout_constraintBottom_toBottomOf="parent" | |
| app:layout_constraintEnd_toEndOf="@id/guideline" | |
| app:layout_constraintStart_toEndOf="@+id/icon" | |
| app:layout_constraintTop_toTopOf="parent" | |
| tools:text="some very long text in order to make it fill more than one line" /> | |
| <androidx.constraintlayout.widget.Guideline | |
| android:id="@+id/guideline" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:orientation="vertical" | |
| app:layout_constraintEnd_toEndOf="parent" | |
| app:layout_constraintGuide_end="16dp" /> | |
| </androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment