0

i have edittext for user name, password, server name with hint as "required", but i have a issue, the text size is different whereas in coding it is same only.

enter image description here

how to over come that,

my xml code for textview alone is,

            <EditText
                android:id="@+id/sapuser"
                android:layout_column="2"
                android:layout_marginRight="15dip"
                android:hint="Required"
                android:paddingLeft="5dip"
                android:singleLine="true"
                android:text=""
                android:width="150dip" />  

            <EditText
                android:id="@+id/password"
                android:layout_column="2"
                android:layout_marginRight="15dip"
                android:hint="Required"
                android:paddingLeft="5dip"
                android:password="true"
                android:singleLine="true"
                android:text="" />

            <EditText
                android:id="@+id/host"
                android:layout_column="2"
                android:layout_marginRight="15dip"
                android:hint="Required"
                android:paddingLeft="5dip"
                android:singleLine="true"
                android:text=""
                android:width="150dip" />
saran
  • 461
  • 1
  • 6
  • 20

1 Answers1

0

I think it is because of height, you have not set it...this will work

<EditText
 android:id="@+id/sapuser"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:layout_column="2"
 android:layout_marginRight="15dip"
 android:hint="Required"
 android:paddingLeft="5dip"
 android:singleLine="true"
 android:text=""
 android:textSize="20dp"

 android:width="150dip" />

        <EditText
            android:id="@+id/password"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_column="2"
            android:layout_marginRight="15dip"
            android:hint="Required"
            android:paddingLeft="5dip"
            android:password="true"
            android:singleLine="true"
            android:text=""
            android:textSize="20dp" />

        <EditText
            android:id="@+id/host"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_column="2"
            android:layout_marginRight="15dip"
            android:hint="Required"
            android:paddingLeft="5dip"
            android:singleLine="true"
            android:text=""
            android:width="150dip"
            android:textSize="20dp" />
JNI_OnLoad
  • 5,472
  • 4
  • 35
  • 60