Skip to content

Commit

Permalink
Fix margins when buttons are gone
Browse files Browse the repository at this point in the history
  • Loading branch information
seadowg committed Feb 1, 2024
1 parent 4633a8c commit 19667b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<size android:width="@dimen/margin_standard" />
<size android:height="@dimen/margin_standard" />
</shape>
</item>
</layer-list>
18 changes: 4 additions & 14 deletions collect_app/src/main/res/layout/form_entry_end.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ the specific language governing permissions and limitations under the License.
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="64dp"
android:divider="@drawable/margin_standard_list_divider"
android:showDividers="middle"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -93,32 +95,20 @@ the specific language governing permissions and limitations under the License.
style="?materialButtonOutlinedIconStyle"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="@dimen/margin_extra_small"
android:layout_weight="1"
android:text="@string/save_as_draft"
app:icon="@drawable/ic_save_menu_24"
app:iconGravity="textStart"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/finalize"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_goneMarginEnd="0dp" />
app:iconGravity="textStart" />

<com.google.android.material.button.MaterialButton
android:id="@+id/finalize"
style="?materialButtonIconStyle"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/margin_extra_small"
android:layout_weight="1"
android:text="@string/finalize"
app:icon="@drawable/ic_send_24"
app:iconGravity="textStart"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/save_as_draft"
app:layout_constraintTop_toTopOf="parent"
app:layout_goneMarginStart="0dp" />
app:iconGravity="textStart" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>

0 comments on commit 19667b9

Please sign in to comment.