kevalpatel2106/EmoticonGIFKeyboard

View problem

lucazin opened this issue · 0 comments

Hi! first sorry for my english...

but i'm try any times without sucess, the keyboard container still behind edittext and when i close and poup up , he not pull the edit text to up ... he just appear behind and that is..

can you help me ?

`

            <!--Geral - Mensagens-->
            <RelativeLayout
                android:id="@+id/relativelayout_chat"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_gravity="top">

                <!--RecycleView Messages-->
                <android.support.v7.widget.RecyclerView
                    android:id="@+id/rv_message"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_above="@+id/typing_Digitando" />

                <!--Indicador Novas Mensagens-->
                <android.support.design.widget.FloatingActionButton
                    android:id="@+id/fab"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"
                    android:layout_alignParentEnd="true"
                    android:layout_marginBottom="80dp"
                    android:layout_marginRight="15dp"
                    android:backgroundTint="#FFFFFF"
                    android:src="@drawable/indicador_msg_whats"
                    android:visibility="visible"
                    app:borderWidth="0dp"
                    app:elevation="5dp"
                    app:fabSize="mini" />



                <FrameLayout
                    android:id="@+id/typing_Digitando"
                    android:layout_width="80dp"
                    android:layout_height="17dp"
                    android:layout_marginStart="10dp"
                    android:layout_marginLeft="10dp"
                    android:layout_above="@+id/typing_frame"
                    android:layout_marginBottom="5dp"
                    android:textAlignment="center"
                    android:visibility="visible">

                    <TextView
                        android:id="@+id/Indicador_acao_amigo"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:textStyle="italic"
                        android:singleLine="true"
                        android:text="Digitando..."
                        android:textColor="@color/Padrao" />
                </FrameLayout>

                <FrameLayout
                    android:id="@+id/typing_frame"
                    android:layout_width="80dp"
                    android:layout_height="17dp"
                    android:layout_marginStart="10dp"
                    android:layout_marginLeft="10dp"
                    android:layout_above="@+id/rv_message_container"
                    android:layout_marginBottom="10dp"
                    android:textAlignment="center"
                    android:visibility="visible">

                    <com.udevel.widgetlab.TypingIndicatorView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:padding="8dp"
                        app:animateFrequency="700"
                        app:animationOrder="lastOneFirst"
                        app:backgroundColor="#eaeaea"
                        app:backgroundType="rounded"
                        app:dotAnimationDuration="600"
                        app:dotAnimationType="Sliding"
                        app:dotColor="#4f7abc"
                        app:dotCount="5"
                        app:dotHorizontalSpacing="4dp"
                        app:dotMaxCompressRatio="70%"
                        app:dotSecondColor="#6b4f7abc"
                        app:dotSize="10dp"
                        app:showBackground="true"/>

                </FrameLayout>


                <RelativeLayout
                    android:id="@+id/keyboard_container"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"/>

                <!--Container Emoticon Edittext-->
                <RelativeLayout
                    android:id="@+id/rv_message_container"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"
                    android:layout_marginBottom="@dimen/edt_msg_content_margin"
                    android:layout_marginLeft="@dimen/edt_msg_content_margin"
                    android:layout_marginStart="@dimen/edt_msg_content_margin"
                    android:layout_toLeftOf="@+id/btn_send_message"
                    android:layout_toStartOf="@+id/btn_send_message"
                    android:layout_above="@id/keyboard_container"
                    android:background="@drawable/message_item_background"
                    android:elevation="4dp"
                    android:paddingBottom="@dimen/edt_msg_content_padding_v"
                    android:paddingLeft="@dimen/edt_msg_content_padding_h"
                    android:paddingRight="@dimen/edt_msg_content_padding_h"
                    android:paddingTop="@dimen/edt_msg_content_padding_v">


                    <ImageView
                        android:id="@+id/botao_emoji"
                        android:layout_width="@dimen/edt_ic_size"
                        android:layout_height="@dimen/edt_ic_size"
                        android:layout_alignParentLeft="true"
                        android:layout_alignParentStart="true"
                        android:layout_centerVertical="true"
                        android:background="?attr/selectableItemBackgroundBorderless"
                        android:padding="4dp"
                        app:srcCompat="@drawable/chat_emoticon"
                        android:tint="@color/green_600"/>


                    <!--<hani.momanii.supernova_emoji_library.Helper.EmojiconEditText-->
                    <com.kevalpatel2106.emoticongifkeyboard.widget.EmoticonEditText
                        android:id="@+id/edt_message_content"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_toLeftOf="@+id/iv_camera"
                        android:layout_toStartOf="@+id/iv_camera"
                        android:background="#00ffffff"
                        android:hint="Digite sua mensagem!"
                        android:inputType="textMultiLine|textCapSentences|textNoSuggestions"
                        android:lines="2"
                        android:maxLines="3"
                        android:layout_toRightOf="@+id/botao_emoji"
                        android:layout_toEndOf="@+id/botao_emoji"/>

                    <ImageButton
                        android:id="@+id/message_love_button"
                        android:layout_width="@dimen/edt_ic_size"
                        android:layout_height="@dimen/edt_ic_size"
                        android:layout_alignParentEnd="true"
                        android:layout_alignParentRight="true"
                        android:layout_centerVertical="true"
                        android:background="?attr/selectableItemBackgroundBorderless"
                        android:padding="4dp"
                        app:srcCompat="@drawable/ic_love_animation"
                        android:tint="@color/red_400"/>



                </RelativeLayout>

                <!--Enviar mensagem floatingbutton-->
                <android.support.design.widget.FloatingActionButton
                    android:id="@+id/btn_send_message"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    app:backgroundTint="@color/Padrao"
                    android:layout_gravity="bottom|end"
                    android:layout_margin="@dimen/fab_send_margin"
                    app:srcCompat="@drawable/ic_send"
                    android:text="@string/button_send"
                    app:pressedTranslationZ="10dp"/>



            </RelativeLayout>

            <!--Menu Adicional Midia-->
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">

                <LinearLayout
                    android:id="@+id/Menu_Midia"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="#f0ffffff"
                    android:orientation="horizontal"
                    android:padding="14dp"
                    android:visibility="invisible"
                    >

                    <LinearLayout
                        android:id="@+id/ln_menu_item_camera"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_Camera"
                            android:background="@drawable/chat_midia_fundo_camera"
                            app:srcCompat="@drawable/ic_camera"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:textSize="12sp"
                            android:text="Camêra"/>

                    </LinearLayout>


                    <LinearLayout
                        android:id="@+id/ln_menu_item_gallery"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_Galeria"
                            android:background="@drawable/chat_midia_fundo_galeria"
                            app:srcCompat="@drawable/ic_image_placeholder"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:textSize="12sp"
                            android:text="Galeria"/>

                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/ln_menu_Audio"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_GravaAudio"
                            android:background="@drawable/chat_midia_fundo_audio"
                            app:srcCompat="@drawable/phone_mic_on"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:textSize="12sp"
                            android:text="Audio"/>

                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/ln_menu_Ligacao"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_Ligacao"
                            android:background="@drawable/chat_midia_fundo_ligacao"
                            app:srcCompat="@drawable/chat_call"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:textSize="12sp"
                            android:text="Ligar"/>

                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/ln_menu_item_location"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_EnviaLocal"
                            android:background="@drawable/chat_midia_fundo_local"
                            app:srcCompat="@drawable/ic_location"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:textSize="12sp"
                            android:text="Local"/>

                    </LinearLayout>



                </LinearLayout>

                <FrameLayout
                    android:id="@+id/fl_container_to_hide"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"/>

            </LinearLayout>

            <!--Menu Adicional Estabelecimentos-->
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">

                <LinearLayout
                    android:id="@+id/Menu_Estabelecimentos"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="#f0ffffff"
                    android:orientation="horizontal"
                    android:padding="14dp"
                    android:visibility="invisible"
                    >



                    <LinearLayout
                        android:id="@+id/ln_menu_items_adicionais_estabelecimentos"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_EnviaEstabelecimento"
                            android:background="@drawable/chat_midia_fundo_estabelecimentos"
                            app:srcCompat="@drawable/ic_estabelecimentos"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:text="Estabelecimentos"
                            android:textSize="12sp" />

                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/ln_menu_items_adicionais_promocoes"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_Envia_Promocoes"
                            android:background="@drawable/chat_midia_fundo_promocoes"
                            app:srcCompat="@drawable/ic_promocoes"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:text="Promoções"
                            android:textSize="12sp" />
                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/ln_menu_items_adicionais_listavideos"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageButton
                            android:id="@+id/Botao_ListarVideos"
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:background="@drawable/chat_midia_fundo_videos"
                            app:srcCompat="@drawable/video_youtube_menu"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:text="Videos"
                            android:textSize="12sp" />
                    </LinearLayout>

                </LinearLayout>

                <FrameLayout
                    android:id="@+id/fl_container_to_hide_outro"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"/>

            </LinearLayout>


            <!--Menu Adicional Sentimentos-->
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">

                <LinearLayout
                    android:id="@+id/Menu_Sentimentos"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="#f0ffffff"
                    android:orientation="horizontal"
                    android:padding="14dp"
                    android:visibility="invisible"
                    >

                    <LinearLayout
                        android:id="@+id/ln_menu_items_adicionais_sentimentos_feliz"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_EnviaFeliz"
                            android:background="@drawable/chat_midia_fundo_camera"
                            app:srcCompat="@drawable/chat_sentimento_feliz"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:text="Feliz!"
                            android:textSize="12sp" />

                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/ln_menu_items_adicionais_sentimentos_triste"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_Envia_triste"
                            android:background="@drawable/chat_midia_fundo_galeria"
                            app:srcCompat="@drawable/chat_sentimento_triste"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:text="Triste!"
                            android:textSize="12sp" />
                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/ln_menu_items_adicionais_sentimentos_bravo"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_Envia_bravo"
                            android:background="@drawable/chat_midia_fundo_estabelecimentos"
                            app:srcCompat="@drawable/chat_sentimento_naoacredito"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:text="Bravo!"
                            android:textSize="12sp" />
                    </LinearLayout>

                    <LinearLayout
                        android:id="@+id/ln_menu_items_adicionais_sentimentos_cadevoce"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_Envia_cadevoce"
                            android:background="@drawable/chat_midia_fundo_ligacao"
                            app:srcCompat="@drawable/chat_sentimento_cadevoce"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:text="Sumiu?"
                            android:textSize="12sp" />
                    </LinearLayout>


                    <LinearLayout
                        android:id="@+id/ln_menu_items_adicionais_sentimentos_comer"
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:orientation="vertical">

                        <ImageView
                            android:layout_width="@dimen/rounded_menu_icon"
                            android:layout_height="@dimen/rounded_menu_icon"
                            android:id="@+id/MidiaAction_Envia_comer"
                            android:background="@drawable/chat_midia_fundo_audio"
                            app:srcCompat="@drawable/chat_sentimento_comer"
                            android:tint="@color/white"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginTop="6dp"
                            android:text="Encontro!"
                            android:textSize="12sp" />
                    </LinearLayout>



            </LinearLayout>

                <FrameLayout
                    android:id="@+id/fl_container_to_hide_outro_setimento"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"/>

            </LinearLayout>


            <!-- Animacoes Container-->
            <FrameLayout
                android:id="@+id/LoveAnimation"
                android:layout_width="300dp"
                android:layout_height="300dp"
                android:layout_centerHorizontal="true"
                android:layout_marginLeft="20dp"
                android:layout_marginTop="80dp"
                android:layout_centerVertical="true"
                android:visibility="visible" />


            <!-- YOU TUBE Player -->
            <RelativeLayout
                android:id="@+id/youtube_fragment_layout"
                android:layout_width="230dp"
                android:layout_height="135dp"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="200dp"
                android:background="@drawable/rounded_rect_bg_action_down"
                android:clickable="true"
                android:visibility="invisible">


                <FrameLayout
                    android:id="@+id/youtube_fragment"
                    android:layout_width="200dp"
                    android:layout_height="110dp"
                    android:layout_centerHorizontal="true"
                    android:layout_centerVertical="true"
                    android:background="@drawable/rounded_rect_bg_action_down"
                    android:clickable="true"
                    android:visibility="visible" />

                <!--<fragment-->
                <!--android:name="com.google.android.youtube.player.YouTubePlayerSupportFragment"-->
                <!--android:id="@+id/youtube_fragment"-->
                <!--android:layout_width="150dp"-->
                <!--android:layout_height="100dp"-->
                <!--android:layout_marginTop="100dp"-->
                <!--android:layout_centerHorizontal="true"-->
                <!--android:visibility="visible" />-->

                <ImageButton
                    android:id="@+id/btn_Grab"
                    android:layout_width="24dp"
                    android:layout_height="24dp"
                    android:layout_above="@+id/youtube_fragment"
                    android:layout_alignParentEnd="true"
                    android:layout_alignParentRight="true"
                    android:layout_alignParentTop="true"
                    android:layout_toEndOf="@+id/youtube_fragment"
                    android:layout_toRightOf="@+id/youtube_fragment"
                    android:background="@color/Transparent"
                    app:srcCompat="@drawable/chat_grabvideo" />

            </RelativeLayout>


            </FrameLayout>`