我想只把键盘和输入框那个layout弹上去
只有键盘弹出,而且toolbar的颜色会延生到下面
这是设置为adjustPan以后,会把整个界面顶上去,我只想顶输入框
activity_chat.xml
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".activities.ChatActivity">
android:id="@+id/vRevealBackground"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:id="@+id/vChatRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:id="@+id/chatRecyclerview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:divider="#ffff0000"
android:dividerHeight="10dp" />
android:id="@+id/llSend"
android:layout_width="match_parent"
android:layout_height="@dimen/send_button_height"
android:background="@color/white"
android:elevation="@dimen/default_elevation"
android:gravity="center_vertical"
android:paddingBottom="4dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp">
android:id="@+id/etSend"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="#555555"
android:textSize="14sp" />
android:id="@+id/btnSend"
android:layout_width="72dp"
android:layout_height="match_parent"
android:layout_marginBottom="2dp"
android:layout_marginLeft="8dp"
android:background="@drawable/btn_send"
android:elevation="4dp"
android:orientation="vertical" />
view_toolbar.xml
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevation="3dp">
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:fitsSystemWindows="true"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />