-1
我想採取的應用程序:errorTextAppearance =「@樣式/ TextLabelInput」在動態TextInputLayout比如何使用它。如何設置TextInputLayout錯誤的顏色和大小動態代碼
<style name="TextLabelInput" parent="TextAppearance.AppCompat">
<!-- Hint color and label color in FALSE state -->
<item name="android:textColorHint">@color/solid_red</item>
<item name="android:textSize">16sp</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/solid_red</item>
<item name="android:duration">200</item>
<item name="android:textColorHighlight">@color/solid_red</item>
<!-- Label color in TRUE state and bar color FALSE and TRUE State -->
<item name="colorAccent">@color/solid_red</item>
<item name="colorControlNormal">@color/solid_red</item>
<item name="colorControlActivated">@color/solid_red</item>
<item name="colorPrimary">@color/solid_red</item>
<item name="colorPrimaryDark">@color/solid_red</item>
</style>
TextInputLayout input
input = new TextInputLayout(this);
input.setLayoutParams(lparams);
input.setTypeface(tf);
'setHintTextAppearance(int)'? – pskink
唯一的提示顏色變化但我想更改浮標下的標籤顏色和文字 –
浮動?什麼浮動? – pskink