Привет В моем приложении У меня есть имя пользователя и пароль с двумя прямоугольниками edittext. Экземпляры отображаются как закругленный прямоугольник. Теперь щелкните мышью первого текстового курсора редактирования, отображающего внешний вид. Я хочу показать, что курсор внутриКурсор, показывающий внешний вид в android xml
Может ли кто-нибудь мне помочь.
login.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center|center_vertical"
android:background="#339999"
>
<TextView
android:id="@+id/tv0"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Login Form"
android:textStyle="bold"
android:textSize="25sp"
android:textColor="#000000"
android:gravity="center"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="UserName"
android:layout_marginTop="20dp"
android:textSize="15sp"
android:textStyle="bold"
android:textAppearance="?android:attr/textAppearanceLarge" />
<EditText
android:id="@+id/username"
android:layout_width="fill_parent"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:cursorVisible="true"
android:layout_height="wrap_content"
android:background="@drawable/rounded"
android:singleLine="true">
</EditText>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Password"
android:layout_marginTop="10dp"
android:textSize="15sp"
android:textStyle="bold"
android:textAppearance="?android:attr/textAppearanceLarge" />
<EditText
android:id="@+id/password"
android:layout_width="fill_parent"
android:layout_marginLeft="10dp"
android:layout_marginTop="20dp"
android:cursorVisible="true"
android:layout_height="wrap_content"
android:background="@drawable/rounded"
android:singleLine="true">
</EditText>
</LinearLayout>
<CheckBox
android:id="@+id/cbShowPwd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/show_pwd" />
<Button
android:text="Login"
android:id="@+id/login"
android:layout_width="wrap_content"
android:layout_marginTop="10dp"
android:layout_gravity="center"
android:layout_height="wrap_content">
</Button>
<TextView
android:id="@+id/tv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text=""
/>
</LinearLayout>
round.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="10dp"
android:paddingLeft="10dp"
android:shape="rectangle" >
<solid android:color="#FFFFFFFF" />
<size
android:width="5dip" />
<corners android:radius="20dp" />
</shape>
Привет Дайна, где мне нужно добавить отступы – user3739863