나는이 레이아웃안드로이드 채팅 레이아웃
그것은 작동있지만에게 있습니다하여 자판은 송신 버튼을 열고 편집 상자 키보드 이상으로 유지하면 (내가 원하는대로)하지만, 키보드 & 편집 상자 & 보내기 버튼리스트 뷰를 통해 추진됩니다 (발생해서는 안) 이미지
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#1E1E1E">
<LinearLayout
android:orientation="horizontal"
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="fill_parent"
android:layout_height="60.0dp"
android:id="@+id/linearLayout1">
<ImageView
android:src="@drawable/action_menu"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:id="@+id/imgMenu" />
<ImageView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id="@+id/imgwfLogo"
android:src="@drawable/wflogo" />
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/linearLayout4"
android:weightSum="1.5">
<LinearLayout
android:orientation="vertical"
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/linearLayout2"
android:layout_weight="1.45">
<ListView
android:id="@+id/lstChat"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:stackFromBottom="true"
android:transcriptMode="alwaysScroll" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/linearLayout3"
android:weightSum="1"
android:layout_weight="0.05">
<EditText
android:inputType="textMultiLine"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/txtChatMessage"
android:hint="Write here"
android:layout_weight="0.9"
android:layout_margin="5dp"
android:padding="10dp" />
<Button
android:text="Send"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/btnChatSend"
android:layout_weight="0.1"
android:layout_margin="5dp" />
</LinearLayout>
</LinearLayout>
보고 617,451,515,
내 활동 코드
[Activity(Label = "Workflow Management Internal Communication", WindowSoftInputMode = SoftInput.AdjustResize)]
// 내가 방법을 작동하지만 지금 문제가 키보드가 연 후이 메서드를 호출해야하고, 거기에 다음과 같은 방법이 열려 키보드를 수신하기 위해 만든 편집 자 마린
의 이벤트는void Scroll()
{
var list = FindViewById<ListView>(Resource.Id.lstChat);
list.TranscriptMode = TranscriptMode.Disabled;
var scrolX = list.ScrollX;
var scrollY = list.ScrollY;
_adapter.NotifyDataSetChanged();
list.SetSelectionFromTop(scrolX + _index, scrollY);
}
android : windowSoftInputMode를 찾고있는 것 같습니다. adjustPan 및 adjustResize 옵션을 사용해보십시오. – ycagri