Search code examples
androidandroid-edittextandroid-textattributes

android edit text making the text larger


When a user types into my edittext the text is a bit small, Id like to make this larger maybe 20-25 sp what is the best way of doing this?


Solution

  • <EditText 
        android:textColor="#000000"   
        android:background="@drawable/textboxbg"
        android:layout_width="726px"
        android:layout_height="wrap_content"
        android:inputType="none"
        android:id="@+id/number" 
        android:layout_alignParentRight="true"
        android:layout_gravity="center_horizontal"
        android:layout_marginLeft="10dp" 
        android:layout_marginRight="10dp"
        android:text=""
        android:textStyle="bold"
        android:textSize="50sp"
    />