stfalcon-studio / ChatKit

Android library. Flexible components for chat UI implementation with flexible possibilities for styling, customizing and data management. Made by Stfalcon
http://stfalcon.com
Apache License 2.0
3.68k stars 831 forks source link

My DialogList has Space in the top #99

Closed meeftah closed 6 years ago

meeftah commented 7 years ago

As the title says, my DialogList has a lot of space in the top screen shot 2017-10-19 at 5 15 48 pm

and this is my layout:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/colorWhite">

<android.support.v4.widget.SwipeRefreshLayout
        android:id="@+id/swipeToRefresh"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.stfalcon.chatkit.dialogs.DialogsList
            android:id="@+id/dialogs_list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:dialogDividerLeftPadding="0dp"
            app:dialogMessageAvatarEnabled="false"
            app:dialogMessageTextSize="@dimen/text_size_18"
            app:dialogTitleTextStyle="bold"
            app:dialogUnreadBubbleBackgroundColor="@color/colorRuby"
            app:dialogUnreadItemBackground="@color/colorGrayLight"
            app:dialogUnreadTitleTextStyle="bold" />

    </android.support.v4.widget.SwipeRefreshLayout>

</RelativeLayout>

is there any error on my side?

aritzetxe commented 6 years ago

i have the same issue, did you solve it?

aritzetxe commented 6 years ago

solved, just write this dialogsList.setAdapter(dialogsAdapter,false);

mrajunda commented 6 years ago

yup...thank you