安卓弹出软键盘怎么把一部分布局顶上去? 我的界面底部有个edittext输入框,当我把activity的 android:windowSoftInputMode="adjustPan|stateHidden"设置时,软件盘弹出时,会把整个界面都顶上去,我的titlebar也被顶上去了,很难看,有什么办法把标题栏以下的顶上去,标题栏不用顶上去,谢谢。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用scrollview嵌套下,,解决就好,最好能把你解决方法写出来 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <include android:id="@+id/include1" layout="@layout/title_bar" /> <ScrollView android:id="@+id/scrollView2" android:layout_width="match_parent" android:layout_height="wrap_content" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <EditText android:id="@+id/ed_dealplan" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:hint="请输入" android:textSize="15sp" /> </LinearLayout> </LinearLayout> </ScrollView></LinearLayout>把 EditText放在ScrollView中,然后把ScrollView放在Titlebar下,清单文件的activity中加入android:windowSoftInputMode="stateAlwaysHidden" 为什么我用了回复中的嵌套scrollview没用呢 Android下GPS信息文本导出求助 android紧急求救~~ Android root 授权问题,高手请进。 Android手机与PC机如何交互 Framework的扩展问题 下载的android App源码编译错误 程序选择图片返回的时候 程序被杀死重启 求一个耳机上按钮事件的例子 阿雪笑了 高手进,有关google+1 按钮问题 android 代码怎么实时拿到连接当前wifi热点的设备信息? 或者其它设备连接或是断开会有什么广播吗? 求大神指导!!! 为什么会这样?明明为真却不认!
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <include
android:id="@+id/include1"
layout="@layout/title_bar" /> <ScrollView
android:id="@+id/scrollView2"
android:layout_width="match_parent"
android:layout_height="wrap_content" > <LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <EditText
android:id="@+id/ed_dealplan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:hint="请输入"
android:textSize="15sp" />
</LinearLayout>
</LinearLayout>
</ScrollView></LinearLayout>把 EditText放在ScrollView中,然后把ScrollView放在Titlebar下,清单文件的activity中加入android:windowSoftInputMode="stateAlwaysHidden"