Password xml

 <LinearLayout

        android:orientation="horizontal"

        android:gravity="center"

        android:layout_marginTop="100sp"

        android:layout_width="match_parent"

        android:layout_height="wrap_content">

    <EditText

        android:id="@+id/pwd"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:minWidth="200sp"

        android:hint="Password"

        android:inputType="textPassword" />

    <Button

        android:id="@+id/showHideBtn"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="Show"/>

    </LinearLayout>

Comments

Popular posts from this blog

Assesment 1 JAVA