Skip to content

Commit

Permalink
layout: simplify padding and margin declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
smdyv authored and thestinger committed Sep 16, 2023
1 parent dcc712f commit 72888b9
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions app/src/main/res/layout/content_attestation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingHorizontal="@dimen/activity_horizontal_margin"
android:paddingVertical="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="app.attestation.auditor.AttestationActivity"
tools:showIn="@layout/activity_attestation">
Expand All @@ -25,10 +23,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginTop="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:layout_margin="16dp"
android:maxLines="100"
android:scrollbarAlwaysDrawHorizontalTrack="false"
android:scrollbarAlwaysDrawVerticalTrack="false"
Expand All @@ -40,10 +35,7 @@
android:id="@+id/auditee"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginTop="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:layout_margin="16dp"
android:text="@string/auditee_button"
android:textAllCaps="false"
android:textColor="@color/white_a90" />
Expand All @@ -52,10 +44,7 @@
android:id="@+id/auditor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginTop="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:layout_margin="16dp"
android:text="@string/auditor_button"
android:textAllCaps="false"
android:textColor="@color/white_a90" />
Expand All @@ -73,10 +62,7 @@
android:id="@+id/textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginTop="16dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="16dp"
android:layout_margin="16dp"
android:maxLines="10000"
android:scrollbarAlwaysDrawHorizontalTrack="false"
android:scrollbarAlwaysDrawVerticalTrack="false"
Expand Down

0 comments on commit 72888b9

Please sign in to comment.