0

Quite a simple one but I don's see any documentation anywhere. The only place I have found it is in developer.android there is an example for a login in a dialog. As I said it is for the initial login of my app so it needs to be full-screen which is an issue for dialogs as it doesn't seem possible without using an older (pre-Ice cream sandwich I think) theme which includes older looking editTexts. Any guidance on the matter would be great, thanks.

(Below is a comparison of the two types of edit text, I am forced to use the first on the login page to allow a dialog to be full-screen)

EditTexts

Jack.Ramsden
  • 414
  • 1
  • 5
  • 16

1 Answers1

0

You may have a look at DialogFragment to do dialog customizations. For edittext, you can always set custom borders by creating a drawable .xml and setting it as background in Edittext.

    <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:thickness="0dp" android:shape="rectangle">
<stroke android:width="2dp"
       android:color="#00cc33"/>
<corners android:radius="10dp"/>
<padding android:left="10dp"
       android:top="5dp"   
       android:right="10dp"
       android:bottom="5dp"/>
</shape> 

In your layout xml,

<EditText
  ...
...
android:background="@drawable/my_edittext_border"/>
Andy1625
  • 31
  • 5