|
34 | 34 | app:layout_constraintTop_toTopOf="parent" |
35 | 35 | app:srcCompat="@mipmap/ic_attachment" /> |
36 | 36 |
|
37 | | - <TextView |
38 | | - android:id="@+id/textViewAttchmentName" |
| 37 | + <LinearLayout |
39 | 38 | android:layout_width="0dp" |
40 | 39 | android:layout_height="wrap_content" |
41 | | - android:layout_marginEnd="@dimen/default_margin_content_small" |
42 | | - android:layout_marginLeft="@dimen/default_margin_content_small" |
43 | | - android:layout_marginRight="@dimen/default_margin_content_small" |
44 | | - android:layout_marginStart="@dimen/default_margin_content_small" |
45 | | - android:ellipsize="middle" |
46 | | - android:maxLines="1" |
47 | | - app:layout_constraintBottom_toBottomOf="@+id/imageViewAttachmentIcon" |
48 | | - app:layout_constraintHorizontal_bias="0.0" |
| 40 | + android:orientation="vertical" |
| 41 | + android:paddingLeft="@dimen/default_margin_small" |
| 42 | + android:paddingRight="@dimen/default_margin_small" |
| 43 | + app:layout_constraintBottom_toBottomOf="parent" |
49 | 44 | app:layout_constraintLeft_toRightOf="@+id/imageViewAttachmentIcon" |
50 | 45 | app:layout_constraintRight_toLeftOf="@+id/imageButtonDownloadAttachment" |
51 | | - app:layout_constraintTop_toTopOf="@+id/imageViewAttachmentIcon" |
52 | | - tools:text="Some very very very very very large file name.txt" /> |
| 46 | + app:layout_constraintTop_toTopOf="parent"> |
| 47 | + |
| 48 | + <TextView |
| 49 | + android:id="@+id/textViewAttchmentName" |
| 50 | + android:layout_width="match_parent" |
| 51 | + android:layout_height="wrap_content" |
| 52 | + android:ellipsize="middle" |
| 53 | + android:maxLines="1" |
| 54 | + tools:text="Some very very very very very large file name.txt" /> |
| 55 | + |
| 56 | + <TextView |
| 57 | + android:id="@+id/textViewAttachmentSize" |
| 58 | + android:layout_width="wrap_content" |
| 59 | + android:layout_height="wrap_content" |
| 60 | + android:textSize="@dimen/default_text_size_very_small" |
| 61 | + tools:text="12.02 Mb" /> |
| 62 | + </LinearLayout> |
| 63 | + |
53 | 64 |
|
54 | 65 | <ImageButton |
55 | 66 | android:id="@+id/imageButtonDownloadAttachment" |
56 | 67 | android:layout_width="wrap_content" |
57 | 68 | android:layout_height="wrap_content" |
58 | 69 | android:background="?android:attr/selectableItemBackground" |
59 | 70 | android:contentDescription="@string/download" |
60 | | - app:layout_constraintBottom_toBottomOf="@+id/textViewAttchmentName" |
| 71 | + app:layout_constraintBottom_toBottomOf="parent" |
61 | 72 | app:layout_constraintRight_toRightOf="parent" |
62 | | - app:layout_constraintTop_toTopOf="@+id/textViewAttchmentName" |
| 73 | + app:layout_constraintTop_toTopOf="parent" |
63 | 74 | app:srcCompat="@mipmap/ic_file_download" /> |
| 75 | + |
| 76 | + |
64 | 77 | </android.support.constraint.ConstraintLayout> |
65 | 78 | </android.support.v7.widget.CardView> |
66 | 79 |
|
0 commit comments