本文介紹了android中的EditText,adjustPan,ScrollView問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
我有一個 EditText
,它包含在 ScrollView
中,但是當鍵盤出現時.
I have a EditText
which is enclosed in ScrollView
, but when the keyboard comes up.
您不能向下滾動到現在涵蓋的字段.我嘗試在清單和類中添加 adjustSize
、adjustPan
.
You can NOT scroll down to the fields that are now covered. I have tried adding adjustSize
, adjustPan
in the manifest and in the class.
但它不起作用..
推薦答案
我遇到了同樣的問題,我找到了解決方案.所以,也許它會對你有所幫助.
I was suffering from the same issue and I a found solution. So, maybe it will help you.
請給 ScrollView 標簽提供以下屬性:
Please give following attributes to ScrollView tag:
android:isScrollContainer="false"
并且在您的活動清單中:
And in manifest of your activity to :
android:windowSoftInputMode="adjustPan"
這篇關于android中的EditText,adjustPan,ScrollView問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!