rey5137 / material

A library to bring fully animated Material Design components to pre-Lolipop Android.
http://rey5137.com/material/
Apache License 2.0
6.01k stars 1.33k forks source link

EditText fontSize #242

Open brunano21 opened 9 years ago

brunano21 commented 9 years ago

In my project I have the following files, as your demo app: styles.xml style_dark.xml style_light.xml themes.xml

Within my activity.xml I have instead:

<com.rey.material.widget.EditText
    android:id="@+id/sign_in_email"
    android:layout_width="match_parent"
    android:layout_height="@dimen/bt_height"
    android:layout_marginTop="15sp"
    android:textSize="@dimen/t2"
    android:singleLine="true"
    android:inputType="text"
    android:hint="email"
    app:et_inputId="@+id/sign_in_email_input"
    app:et_supportMode="none"
    app:et_autoCompleteMode="single"
    app:et_labelTextSize="@dimen/t1"
    app:v_styleId="@array/edittext"
    />

@dimen/t1 and @dimen/t2 are 22sp and 24sp, respectively. However, the fontSize attribute of the above EditText is not affected IF app:v_styleId="@array/edittext" is defined as attribute. If I omit the v_styleId attribute, then the fontSize works as expected.

@array/edittext has the same definition of yours into the demo app, splitting style into light and dark.

Could you help please? Thanks!

brunano21 commented 9 years ago

Ehy @rey5137 any help?