Created
May 4, 2020 17:14
-
-
Save avipars/65b96b0ccb2be3b2c3346a74b6298a15 to your computer and use it in GitHub Desktop.
Layout Issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/relative" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<LinearLayout | |
android:id="@+id/linear" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="@dimen/default_gap" | |
android:orientation="horizontal"> | |
<EditText | |
android:id="@+id/input" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="15dp" | |
android:layout_weight="1" | |
android:ems="10" | |
android:focusable="true" | |
android:focusableInTouchMode="true" | |
android:focusedByDefault="true" | |
android:hint="@string/input_a_number" | |
android:imeOptions="actionDone|flagNoPersonalizedLearning" | |
android:importantForAutofill="no" | |
android:inputType="numberSigned|numberDecimal" | |
android:maxLength="30" | |
android:maxLines="1" | |
android:singleLine="true" | |
tools:ignore="LabelFor" | |
tools:targetApi="o" /> | |
<Spinner | |
android:id="@+id/spinner" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="@dimen/default_gap" | |
android:layout_weight="1" | |
android:minWidth="180dp" /> | |
</LinearLayout> | |
<ListView | |
android:id="@+id/listview" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/linear" | |
android:layout_marginStart="5dp" | |
android:layout_marginTop="5dp" | |
android:layout_marginEnd="10dp" /> | |
<com.google.android.material.floatingactionbutton.FloatingActionButton | |
android:id="@+id/fab" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentEnd="true" | |
android:layout_alignParentBottom="true" | |
android:layout_gravity="bottom|end" | |
android:layout_margin="16dp" | |
android:visibility="gone" | |
app:backgroundTint="@color/jade_fab" | |
app:elevation="4dp" | |
app:srcCompat="@drawable/jade" /> | |
</androidx.coordinatorlayout.widget.CoordinatorLayout> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment