mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Replace attachment view constraint layout by relative layout
This commit is contained in:
@@ -38,43 +38,40 @@
|
|||||||
android:background="?android:attr/windowBackground"
|
android:background="?android:attr/windowBackground"
|
||||||
android:scaleType="fitStart" />
|
android:scaleType="fitStart" />
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<RelativeLayout
|
||||||
android:id="@+id/item_attachment_info"
|
android:id="@+id/item_attachment_info"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="48dp"
|
||||||
android:layout_alignBottom="@+id/item_attachment_thumbnail"
|
android:layout_alignBottom="@+id/item_attachment_thumbnail"
|
||||||
android:background="?attr/cardBackgroundTransparentColor">
|
android:background="?attr/cardBackgroundTransparentColor">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageView
|
<androidx.appcompat.widget.AppCompatImageView
|
||||||
android:id="@+id/item_attachment_broken"
|
android:id="@+id/item_attachment_broken"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:contentDescription="@string/entry_attachments"
|
android:contentDescription="@string/entry_attachments"
|
||||||
android:src="@drawable/ic_attach_file_broken_white_24dp"
|
android:src="@drawable/ic_attach_file_broken_white_24dp" />
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/item_attachment_title"
|
android:id="@+id/item_attachment_title"
|
||||||
style="@style/KeepassDXStyle.TextAppearance.TextEntryItem"
|
style="@style/KeepassDXStyle.TextAppearance.TextEntryItem"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_toStartOf="@+id/item_attachment_size_container"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/item_attachment_size_container"
|
android:layout_toLeftOf="@+id/item_attachment_size_container"
|
||||||
app:layout_constraintStart_toEndOf="@+id/item_attachment_broken"
|
android:layout_toEndOf="@+id/item_attachment_broken"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:layout_toRightOf="@+id/item_attachment_broken"
|
||||||
|
android:gravity="center_vertical"
|
||||||
tools:text="BinaryFile.attach" />
|
tools:text="BinaryFile.attach" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/item_attachment_size_container"
|
android:id="@+id/item_attachment_size_container"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:gravity="end"
|
android:gravity="center_vertical|end"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_toLeftOf="@+id/item_attachment_action_container"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/item_attachment_action_container"
|
android:layout_toStartOf="@+id/item_attachment_action_container">
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:id="@+id/item_attachment_size"
|
android:id="@+id/item_attachment_size"
|
||||||
@@ -101,10 +98,9 @@
|
|||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/item_attachment_action_container"
|
android:id="@+id/item_attachment_action_container"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_alignParentEnd="true"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_alignParentRight="true">
|
||||||
app:layout_constraintTop_toTopOf="parent">
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatImageButton
|
<androidx.appcompat.widget.AppCompatImageButton
|
||||||
android:id="@+id/item_attachment_delete_button"
|
android:id="@+id/item_attachment_delete_button"
|
||||||
@@ -150,5 +146,5 @@
|
|||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</RelativeLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
Reference in New Issue
Block a user