TunnelEditor: get rid of weird gravity on add peer button

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2020-03-28 15:43:22 -06:00
parent bee6ebe3b4
commit b41640837c

View File

@ -93,9 +93,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="4dp" android:layout_margin="4dp"
android:hint="@string/private_key" android:hint="@string/private_key"
app:endIconMode="custom"
app:endIconDrawable="@drawable/ic_action_generate"
app:endIconContentDescription="@string/generate_new_private_key" app:endIconContentDescription="@string/generate_new_private_key"
app:endIconDrawable="@drawable/ic_action_generate"
app:endIconMode="custom"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/interface_name_layout"> app:layout_constraintTop_toBottomOf="@+id/interface_name_layout">
@ -239,24 +239,25 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="?attr/actionBarSize"
android:divider="@null" android:divider="@null"
android:orientation="vertical" android:orientation="vertical"
app:items="@{config.peers}" app:items="@{config.peers}"
app:layout="@{@layout/tunnel_editor_peer}" app:layout="@{@layout/tunnel_editor_peer}"
tools:ignore="UselessLeaf" /> tools:ignore="UselessLeaf" />
</LinearLayout>
</ScrollView>
<TextView <com.google.android.material.button.MaterialButton
style="@style/TextAppearance.MaterialComponents.Button" style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="wrap_content"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:background="?attr/colorPrimaryDark" android:background="?attr/colorPrimaryDark"
android:gravity="center" android:gravity="center"
android:onClick="@{() -> config.addPeer()}" android:onClick="@{() -> config.addPeer()}"
android:text="@string/add_peer" android:text="@string/add_peer"
app:layout_anchorGravity="bottom" /> android:textColor="?attr/colorSecondary"
app:layout_anchorGravity="bottom"
app:rippleColor="?attr/colorSecondary" />
</LinearLayout>
</ScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout> </layout>