3
所以,我在上面的情況:我使用Theme.AppCompat.Light.NoActionBar
,以便我可以使用新的材料設計Toolbar
。我的XML結構是沿着線:Theme.AppCompat.Light.NoActionBar AdjustResize不起作用
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<include
android:id="@+id/toolbar"
layout="@layout/app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<ScrollView
android:id="@+id/personalInfo_scrollView"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- textviews and various other form-related elements -->
</ScrollView>
</LinearLayout>
的問題是,無論我做什麼android:windowSoftInputMode=adjustResize
不起作用。我試圖將重量分配給ScrollView
,但不起作用。 谷歌搜索這個問題沒有結果,但它是我迄今爲止所看到的印象adjustResize不適用於這個主題?
按照要求,這裏是清單的有關活動的部分:
<activity
android:name=".activities.Information"
android:label="@string/title_activity_information"
android:launchMode="singleInstance"
android:parentActivityName=".activities.Account"
android:windowSoftInputMode="adjustResize|stateHidden" >
任何幫助,將不勝感激
'adjustResize'是什麼意思?因爲我沒有這個問題。你能更詳細地描述這個問題嗎?也給你完整的佈局XML和你的Android清單。 – 2015-02-06 09:26:03