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