日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無(wú)先后,達(dá)者為師

網(wǎng)站首頁(yè) 編程語(yǔ)言 正文

Android ScrollView充滿(mǎn)屏幕

作者:GuoyeZhang 更新時(shí)間: 2022-04-22 編程語(yǔ)言

Android ScrollView充滿(mǎn)屏幕

  • ScrollView充滿(mǎn)屏幕
  • textAllCaps大小寫(xiě)

ScrollView充滿(mǎn)屏幕

有時(shí)ScrollView的實(shí)際內(nèi)容不夠,又想讓它充滿(mǎn)屏幕。

如果把layout_height屬性賦值為match_parent,結(jié)果還是不會(huì)充滿(mǎn),正確的做法是再增加一行屬性:android:fillViewport(true)。

示例

android:layout_height="match_parent"
android:fillViewport="true"

textAllCaps大小寫(xiě)

Button按鈕textAllCaps屬性默認(rèn)true,即默認(rèn)轉(zhuǎn)換成大寫(xiě)字母顯示。設(shè)置成false才能符合預(yù)期顯示

android:testAllCaps="false"

原文鏈接:https://blog.csdn.net/aa390481978/article/details/123851904

欄目分類(lèi)
最近更新