1
I am developing a mobile application using Android studio 2.2.2, and I wanted to leave my application with this look.
But I’m not able to put the edge and line on top of editText
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.example.tulio.exercicio2.MainActivity">
<EditText
android:id="@+id/editView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:hint="De"
android:textColor="#5e605f"
/>
<EditText
android:id="@+id/editView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Para"
android:gravity="left"
android:textColor="#5e605f"
/>
<EditText
android:id="@+id/editView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Assunto"
android:gravity="left"
android:textColor="#5e605f"
/>
<EditText
android:id="@+id/editView4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Mensagem"
android:gravity="left"
android:textColor="#5e605f"
tools:layout_editor_absoluteY="0dp"
tools:layout_editor_absoluteX="8dp" />
</LinearLayout>
what would be <Shape android:Shape="Rectangle"> ?
– User1999
The attribute
shape="rectangle"
means how your view will behave, in this case, as a rectangle (a rectangle will be created in the preview). The options available for this attribute are: Rectangle, oval, line, ring, @Felipepatrocinio– itscorey