I have EditTextlike this:
<EditText
android:id="@+id/input_password"
android:hint="@string/password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="textPassword" />
And it has default paddings, similar to this option with the option “Show page limits”:
(or are these fields really, I'm not sure. I mean the space between the red inner box and the blue corners). But what is the value of these pads / fields? In platforms/android-19/data/res/values/themes.xmlI found a style Widget.EditTextdefined as follows:
<style name="Widget.EditText">
<item name="android:focusable">true</item>
<item name="android:focusableInTouchMode">true</item>
<item name="android:clickable">true</item>
<item name="android:background">?android:attr/editTextBackground</item>
<item name="android:textAppearance">?android:attr/textAppearanceMediumInverse</item>
<item name="android:textColor">?android:attr/editTextColor</item>
<item name="android:gravity">center_vertical</item>
</style>
But there are no fields / paddings. So where are they defined?
source
share