7

açıldığında İşlem Çubuğu gizler ben SendMessageLayout EditText ve Button ile sadece bir düzen olmakla birlikte aşağıdaki LayoutRecyclerView SoftKeyboard

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:id="@+id/container"> 

    <com.example.SendMessageLayout 
     android:id="@+id/chatMessageLayout" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_alignParentBottom="true" 
     /> 

    <View 
     android:id="@+id/separator" 
     android:layout_width="match_parent" 
     android:layout_height="0dp" 
     android:layout_above="@id/chatMessageLayout" 
     android:background="@color/seperator_line_inpost" 
     /> 

    <android.support.v4.widget.SwipeRefreshLayout 
     android:id="@+id/swipe_container" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:layout_alignParentTop="true" 
     android:layout_above="@id/separator" 
     > 

     <android.support.v7.widget.RecyclerView 
      android:id="@+id/recycleView" 
      style="@style/BeepMeListView" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:layout_above="@+id/chatMessageLayout" 
      android:layout_alignParentTop="true" 
      android:transcriptMode="alwaysScroll" 
      /> 
    </android.support.v4.widget.SwipeRefreshLayout> 

</RelativeLayout> 

var. Eski uygulamada düz eski ListView kullandım, bu yüzden düzenleme metnine odaklama istediğimde bir klavye görünecekti, liste görünümü hareket etmedi ve ilk öğe göründü. Ama RecyclerView ile her şey itilir, sadece en üstteki öğe ekranın dışında değil, tüm düzen ActionBar'ın üstünde.

İşte

böyle görünüyor ... RecycleView Screenshot

+0

Aynı problemim var .. birisi yardım edebilir mi? – Sandra

+0

Merhaba, bunu anlatan bir şans? – alexk

+0

eylem çubuğunu XML'ye nasıl yerleştirdiğin gibi gönderebilir misin? – dumbfingers

cevap

5

Sadece çözüldü boş scrollview ekleyin: Bunun gibi RecyclerView hides Actionbar when SoftKeyboard is opened 解决办法

:

<FrameLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:orientation="vertical" 
    android:layout_height="match_parent" 
    android:layout_width="match_parent" 
    tools:context="me.drakeet.seashell.ui.social.PostActivity"> 

    <ScrollView 
     android:layout_width="match_parent" 
     android:layout_height="match_parent"> 
    </ScrollView> 

    <LinearLayout 
     android:orientation="vertical" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content"> 

     <me.drakeet.seashell.widget.MultiSwipeRefreshLayout 
      android:layout_weight="1" 
      android:layout_marginBottom="4dp" 
      android:id="@+id/swipe_refresh_layout" 
      style="@style/BbsBackground" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent"> 

      <android.support.v7.widget.RecyclerView 
       android:id="@+id/rv_reply_list" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:minHeight="48dp"/> 

     </me.drakeet.seashell.widget.MultiSwipeRefreshLayout> 

     <include 
      android:layout_gravity="bottom" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      layout="@layout/view_reply"/> 
    </LinearLayout> 

</FrameLayout> 
0

i aynı sorunu vardı ve ben ekleyerek çözmüş

android:windowSoftInputMode="adjustResize"

bildirimdeki etkinlik etiketine