久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

更改浮動(dòng)標(biāo)簽 EditText 和 TextInputLayout 的字體

Change font of the floating label EditText and TextInputLayout(更改浮動(dòng)標(biāo)簽 EditText 和 TextInputLayout 的字體)
本文介紹了更改浮動(dòng)標(biāo)簽 EditText 和 TextInputLayout 的字體的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

有人試圖改變浮動(dòng)標(biāo)簽的字體?我改了EditText的來源但是浮動(dòng)標(biāo)簽的字體沒有變,非常感謝幫助我的人

代碼:

 .

這將設(shè)置展開和浮動(dòng)提示的字體.

這里是 功能請(qǐng)求b.android.com.

錯(cuò)誤視圖字體未設(shè)置,但現(xiàn)在是 已在 v25.1.0 中修復(fù).

Someone tried to change the font of the floating label? I changed the source of EditText but the font of the floating label did not change, I am very grateful to those who help me

Code:

               <android.support.design.widget.TextInputLayout
                    android:id="@+id/tilTextoDescricao"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_toRightOf="@id/tilValorUnidade"
                    android:layout_marginTop="10dp">

                    <EditText
                        android:id="@+id/etTextoDescricao"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="5dp"
                        android:hint="Descri??o"
                        android:textSize="15dp"
                        android:inputType="text" />

                </android.support.design.widget.TextInputLayout>

----------------- 

   etTextoDescricao= (EditText) findViewById(R.id.etTextoDescricao);
  etTextoDescricao.setTypeface(CustomTypeface.getTypefaceMediumDefault(this));

解決方案

As of Design Library v23, you can use TextInputLayout#setTypeface().

This will set the typeface on both the expanded and floating hint.

Here is the feature request where it was discussed on b.android.com.

EDIT: The error view typeface was not being set, but is now fixed in v25.1.0.

這篇關(guān)于更改浮動(dòng)標(biāo)簽 EditText 和 TextInputLayout 的字體的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

EditText: Disable Paste/Replace menu pop-up on Text Selection Handler click event(EditText:禁用文本選擇處理程序單擊事件上的粘貼/替換菜單彈出)
Multiline EditText with Done SoftInput Action Label on 2.3(2.3 上帶有完成 SoftInput 操作標(biāo)簽的多行 EditText)
How to detect the swipe left or Right in Android?(如何在 Android 中檢測(cè)向左或向右滑動(dòng)?)
Prevent dialog dismissal on screen rotation in Android(防止在Android中的屏幕旋轉(zhuǎn)對(duì)話框解除)
How do I handle ImeOptions#39; done button click?(如何處理 ImeOptions 的完成按鈕點(diǎn)擊?)
How do you set EditText to only accept numeric values in Android?(您如何將 EditText 設(shè)置為僅接受 Android 中的數(shù)值?)
主站蜘蛛池模板: 伊人网在线播放 | 成人在线观看免费 | 亚洲一区二区三区四区五区中文 | 久久精品一级 | 欧美色999 | 亚洲成色777777在线观看影院 | 久久免费资源 | 国产精品久久久久久久久久久久久 | 91精品国产综合久久婷婷香蕉 | www.亚洲成人网 | 在线亚洲精品 | 99精品国产一区二区青青牛奶 | 91av视频在线观看 | 日韩av在线一区二区三区 | 亚洲在线久久 | 蜜臀久久99精品久久久久久宅男 | 久久国产成人午夜av影院武则天 | 欧美黄色一区 | 亚洲成人国产精品 | 日本一区二区三区在线观看 | 国产成人精品一区二区三区四区 | 亚洲第一在线视频 | 青青草免费在线视频 | 婷婷色国产偷v国产偷v小说 | 免费视频一区二区 | 91成人小视频 | 成人av影院 | 国产精品成人一区 | 久久久久久久久久久成人 | 成人在线中文字幕 | 国产精品久久久久久婷婷天堂 | 国产精品1区2区 | 亚洲一区二区三区在线视频 | 看一级毛片视频 | 美女精品一区 | 日韩区| 国产精品一区二区三区在线 | 成人视屏在线观看 | 日韩视频一区 | 日韩在线国产 | 亚洲激情自拍偷拍 |