I am currently learning some design on XML
. I have a scroll view and I have Several widgets. However, I want to remove space between my Log In and my password, how can I combine them together yet be able to input email and password?
What I want :
what I currently have
Thanks for the help.
So below is my simple code. How can I remove space and have them come together?
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="0dp">
<EditText
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/white"
android:hint="Email"
android:inputType="textEmailAddress" />
</android.support.design.widget.TextInputLayout>
<!-- Password Label -->
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="0dp"
android:layout_marginBottom="8dp">
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="38dp"
android:background="@color/white"
android:hint="Password"
android:inputType="textPassword"
android:textColorHint="@color/black" />
</android.support.design.widget.TextInputLayout>