feat: share as file option for crash

This commit is contained in:
rebelonion 2024-05-01 21:35:20 -05:00
parent 97ff591b62
commit 3a88656e21
3 changed files with 58 additions and 16 deletions

View file

@ -12,7 +12,7 @@
android:gravity="top|center_horizontal"
android:orientation="vertical"
android:paddingTop="48dp"
app:layout_constraintBottom_toTopOf="@+id/copyButton"
app:layout_constraintBottom_toTopOf="@+id/buttonContainer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
@ -48,29 +48,51 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:focusable="false"
android:focusableInTouchMode="false"
android:fontFamily="@font/poppins"
android:inputType="textMultiLine|none"
android:textIsSelectable="true"
android:focusable="false"
android:textSize="12sp"
android:focusableInTouchMode="false"
android:padding="16dp"
android:textColor="?attr/colorOnBackground" />
android:textColor="?attr/colorOnBackground"
android:textIsSelectable="true"
android:textSize="12sp" />
</LinearLayout>
<Button
android:id="@+id/copyButton"
android:layout_width="wrap_content"
android:layout_height="64dp"
<LinearLayout
android:id="@+id/buttonContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_gravity="bottom|center_horizontal"
android:layout_margin="64dp"
android:fontFamily="@font/poppins_bold"
android:maxLines="1"
android:text="@string/copy_report"
app:cornerRadius="16dp"
android:gravity="center_horizontal"
android:layout_marginBottom="48dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
app:layout_constraintStart_toStartOf="parent">
<Button
android:id="@+id/copyButton"
android:layout_width="wrap_content"
android:layout_height="64dp"
android:layout_marginEnd="8dp"
android:fontFamily="@font/poppins_bold"
android:maxLines="1"
android:text="@string/copy_report"
app:cornerRadius="16dp"
tools:ignore="ButtonStyle" />
<Button
android:id="@+id/shareAsTextFileButton"
android:layout_width="wrap_content"
android:layout_height="64dp"
android:layout_marginStart="8dp"
android:fontFamily="@font/poppins_bold"
android:maxLines="1"
android:text="@string/share_as_file"
app:cornerRadius="16dp"
tools:ignore="ButtonStyle"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>