askerov / DynamicGrid

Drag and drop GridView for Android
Apache License 2.0
926 stars 288 forks source link

first item disappear when gridview above of textview #83

Open mavisli opened 8 years ago

mavisli commented 8 years ago

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">

<RelativeLayout
    android:id="@+id/layout_title_bar"
    android:background="@drawable/bg_import_title"
    android:layout_width="match_parent"
    android:layout_height="@dimen/title_height">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="@dimen/title_height"
        android:text="@string/reorder"
        android:textColor="@android:color/black"
        android:textSize="@dimen/title_fontsize"
        android:gravity="center"
        app:typeface="demiBlodAvenir"/>
</RelativeLayout>

<Button
    android:id="@+id/add_more_button
    android:layout_alignParentBottom="true"
    android:layout_width="match_parent"
    android:layout_height="@dimen/title_height"/>

<org.askerov.dynamicgrid.DynamicGridView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/layout_title_bar"
    android:layout_above="@id/add_more_button"
    android:numColumns="4"/>