Drag and drop GridView for Android

Related tags

GridView DynamicGrid
Overview

DynamicGrid

Drag and drop GridView for Android.

Depricated

It's much better to use solutions based on recycler view. For example https://github.com/h6ah4i/android-advancedrecyclerview

Demo

example

Requirements

Rearranging items require api 8 (Froyo). All grid item animations require api 11 (Honeycomb).

Usage

All the same as for normal GridView. Adapter must extends AbstractDynamicGridAdapter or BaseDynamicGridAdapter

gridView = (DynamicGridView) findViewById(R.id.dynamic_grid);
// pass to adapter context, list of items and number of columns count
gridView.setAdapter(new MyDynamicGridAdapter(this, itemsList, 3));

To start Drag'n'drop mode:

gridView.startEditMode();

Or from onItemClik() and onItemLongClick()

gridView.startEditMode(position);

To stop:

gridView.stopEditMode();

Adding drop listener:

gridView.setOnDropListener(new DynamicGridView.OnDropListener(){
    @Override
    public void onActionDrop(){
        // stop edit mode immediately after drop item
        gridView.stopEditMode();
        }
    });

You can find more detailed usage example here.

Credits

DynamicGridView based on Daniel Olshansky ListView cell dragging and rearranging example.

Comments
  • Library breaks when there are items with similar text

    Library breaks when there are items with similar text

    In provided example, replace sCheeseString with

    public static final String[] sCheeseStrings = {
                "Abbaye de Belloc", "Abbaye de Belloc", "Abbaye de Belloc"
        };
    

    then try to drag. The items become not draggable and disappear randomly.

    opened by denisk20 8
  • Drag And Drop in ViewPager

    Drag And Drop in ViewPager

    Hi, I love DynamicGridView, It works like charm. But there is one issue, It doesn't work if we implement it in ViewPager. Is there a way I could use this code in ViewPager? Waiting for your fruitful response. Thank you

    opened by Raheel-Adnan 6
  • Can't run sample project

    Can't run sample project

    Sorry to post such a simple problem, but I am unable to run the sample project. I was able to build after adding the dynamicgrid project in the build path of the example project. However, when I run the example project on the device, it crashes with this error:

    10-22 23:05:07.275: E/dalvikvm(7303): Could not find class 'org.askerov.dynamicgrid.DynamicGridView', referenced from method org.askerov.dynamicgrid.example.GridActivity.onCreate

    I searched for an answer, and found some comments regarding use of "/lib" versus "/libs". However, I am a total novice at Java and I really don't understand how to properly include one project in another project.

    I thank you in advance for your time to consider this problem

    opened by GrahamBriggs 4
  • Prevent certain items from being swappable

    Prevent certain items from being swappable

    Is it possible for me to prevent certain items inside the adapter to not swap with others when they are hovered over? to just stay in their place when startEditMode is on?

    The identifier I have for these items that I dont want to move is id and its always static, I want that all the time, the items that have these two id's should never swap with any other item

    opened by Odaym 4
  • Scrolling in edit mode

    Scrolling in edit mode

    Well, your library is now being used in production in a live app! Thanks a lot for the help you've provided so far. I wanted to ask about scrolling when in Edit mode. Right now when you place your finger to scroll, the touch is being stolen by the items on the screen and they instantly start moving.

    If I could set the listener on the items for onItemLongClickListener, then it would have to take a long click to make them move, therefore allowing for natural scroll. I was not able to figure it out so far, help would be appreciated again, thanks a lot

    opened by Odaym 3
  • Horizontal Drag not possible

    Horizontal Drag not possible

    Dragging an element in a direct horizontal line with another is not possible.

    The element starts dragging but in the moment the horizontal drag starts it jumps back into position.

    Dragging is possible in every direction but a direct horizontal line

    opened by FireDevil 3
  • lag when handleCellSwitch()

    lag when handleCellSwitch()

    First of all, thanks for the hard effort. It is a nice lib to use. And I want to provide some potential performance improvement.

    I tested this lib on galaxy tab3 10.0. It is a bit laggy when cell swapping. I checked and found out that DynamicGridView calls handleCellSwitch and it calls reorderItem() when cells swap. Look deeper, I found reorderItem()->notifyDataSetChanged() in BaseDynamicGridAdapter is the reason. The notifyDataSetChanged() will make the gridview lag. So I suggest to move the notifyDataSetChanged() in onDrop Listener.

    opened by davidlam6223 3
  • IndexOutOfBoundsException

    IndexOutOfBoundsException

    Hi askerov, Thank you for sharing great dynamic gridview lib But When I run android 2.3.3 emulator and try 13 items, after i move item 13 to Top throws exception like here 10-23 10:02:32.994: E/AndroidRuntime(1464): FATAL EXCEPTION: main 10-23 10:02:32.994: E/AndroidRuntime(1464): java.lang.IndexOutOfBoundsException: Invalid index 13, size is 12 10-23 10:02:32.994: E/AndroidRuntime(1464): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257) 10-23 10:02:32.994: E/AndroidRuntime(1464): at java.util.ArrayList.add(ArrayList.java:152) 10-23 10:02:32.994: E/AndroidRuntime(1464): at org.askerov.dynamicgid.DynamicGridUtils.reorder(DynamicGridUtils.java:20) 10-23 10:02:32.994: E/AndroidRuntime(1464): at org.askerov.dynamicgid.BaseDynamicGridAdapter.reorderItems(BaseDynamicGridAdapter.java:91) 10-23 10:02:32.994: E/AndroidRuntime(1464): at org.askerov.dynamicgid.DynamicGridView.reorderElements(DynamicGridView.java:282) 10-23 10:02:32.994: E/AndroidRuntime(1464): at org.askerov.dynamicgid.DynamicGridView.handleCellSwitch(DynamicGridView.java:723) 10-23 10:02:32.994: E/AndroidRuntime(1464): at org.askerov.dynamicgid.DynamicGridView.onTouchEvent(DynamicGridView.java:457) 10-23 10:02:32.994: E/AndroidRuntime(1464): at android.view.View.dispatchTouchEvent(View.java:3885) 10-23 10:02:32.994: E/AndroidRuntime(1464): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:903) 10-23 10:02:32.994: E/AndroidRuntime(1464): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 10-23 10:02:32.994: E/AndroidRuntime(1464): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942) 10-23 10:02:32.994: E/AndroidRuntime(1464): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)

    opened by manhhoangxuan 3
  • Android L first item only reordering problem related to visibility

    Android L first item only reordering problem related to visibility

    In Latest commit example project at Android L device, only first item reordering cause sporadic item disappearance.

    And in our project, long click on first item doesn't make selectedView(first item) invisible at startDragAtPosition(int position) method. I think these two incidents related. But I can't debug it.

    Any idea?

    opened by chanil1218 2
  • Break required adapter methods into interfaces

    Break required adapter methods into interfaces

    Allows users to use library in conjunction with other concrete adapter implementations Add ability to disable edit mode Add listener for enter/exit edit mode Hook up local click listeners at init time instead of when the user adds their own click handlers

    opened by dbachelder 2
  • Any way to delete items from the grid?

    Any way to delete items from the grid?

    Great job on this project, really. Better than mrKlar's implementation. Is there a way that you already provide to delete items from the grid? Thanks.

    opened by Odaym 2
  • first item temporary disappear

    first item temporary disappear

    Scenario :

    1. Drag any item to first position
    2. Still hold, drag it to second position (vertically or horizontally) then first item will temporary disappear until you drop the item.
    opened by rahmat-ihsan 0
  • FATAL EXCEPTION: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2  at android.util.PathParser$PathDataNode.addCommand(PathParser.java:380)

    FATAL EXCEPTION: java.lang.ArrayIndexOutOfBoundsException: length=2; index=2 at android.util.PathParser$PathDataNode.addCommand(PathParser.java:380)

    <ScrollView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:id="@+id/scroll"
    android:layout_alignParentTop="true"
    android:layout_alignParentStart="true">
    
        <RelativeLayout
            xmlns:tools="http://schemas.android.com/tools"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:orientation="horizontal"
            android:paddingBottom="40dp"
            android:paddingLeft="@dimen/activity_horizontal_margin"
            android:paddingRight="@dimen/activity_horizontal_margin"
            android:paddingTop="@dimen/activity_vertical_margin"
            tools:context="com.example.administrator.sample.MainActivity"
            android:weightSum="1"
            android:clickable="false">
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:shrinkColumns="*"
                android:stretchColumns="*"
                android:orientation="vertical"
                android:background="@drawable/shape_backround"
                android:id="@+id/tableLayout">
    
                <TableRow
                    android:id="@+id/tableRow1"
                    android:layout_height="wrap_content"
                    android:layout_width="match_parent">
    
                    <ImageButton
                        android:id="@+id/Ibutton1"
                        android:layout_weight="1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="@drawable/allshapes"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="All"/>
    
                    <ImageButton
                        android:id="@+id/Ibutton2"
                        android:layout_weight="1"
                        android:background="@drawable/round1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="RBC"/>
    
                    <ImageButton
                        android:id="@+id/Ibutton3"
                        android:layout_weight="1"
                        android:background="@drawable/cushion1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="CU" />
    
                    <ImageButton
                        android:id="@+id/Ibutton4"
                        android:layout_weight="1"
                        android:background="@drawable/princess1"
                        android:layout_height="wrap_content"
                        android:layout_width="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="PRN"/>
    
                    <ImageButton
                        android:id="@+id/Ibutton5"
                        android:layout_weight="1"
                        android:background="@drawable/emerald1"
                        android:padding="20dip"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="EMD"/>
                </TableRow>
    
                <TableRow
                    android:id="@+id/tableRow2"
                    android:layout_height="wrap_content"
                    android:layout_width="match_parent">
    
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="ALL"
                        android:id="@+id/textView"
                        android:layout_column="0"
                        android:layout_gravity="center" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="RBC"
                        android:id="@+id/textView2"
                        android:layout_column="1"
                        android:layout_gravity="center" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="CU"
                        android:id="@+id/textView3"
                        android:layout_column="2"
                        android:layout_gravity="center" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="PRN"
                        android:id="@+id/textView4"
                        android:layout_column="3"
                        android:layout_gravity="center" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="EMD"
                        android:id="@+id/textView5"
                        android:layout_column="4"
                        android:layout_gravity="center" />
                </TableRow>
    
                <TableRow
                    android:id="@+id/tableRow3"
                    android:layout_height="wrap_content"
                    android:layout_width="match_parent"
                    android:layout_marginTop="10dp">
    
                    <ImageButton
                        android:id="@+id/Ibutton6"
                        android:layout_weight="1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="@drawable/pear1"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="PEAR"/>
    
                    <ImageButton
                        android:id="@+id/Ibutton7"
                        android:layout_weight="1"
                        android:background="@drawable/oval1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="OVL"/>
    
                    <ImageButton
                        android:id="@+id/Ibutton8"
                        android:layout_weight="1"
                        android:background="@drawable/marquise1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="MQS"/>
    
                    <ImageButton
                        android:id="@+id/Ibutton9"
                        android:layout_weight="1"
                        android:background="@drawable/heart1"
                        android:layout_height="wrap_content"
                        android:layout_width="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="HRT"/>
    
                    <ImageButton
                        android:id="@+id/Ibutton10"
                        android:layout_weight="1"
                        android:background="@drawable/radiant1"
                        android:padding="20dip"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:clickable="true"
                        android:tag="RD"/>
    
                </TableRow>
    
                <TableRow
                    android:id="@+id/tableRow4"
                    android:layout_height="wrap_content"
                    android:layout_width="match_parent"
                    android:orientation="vertical">
    
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="PEAR"
                        android:id="@+id/textView6"
                        android:layout_column="0"
                        android:layout_gravity="center" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="OVL"
                        android:id="@+id/textView7"
                        android:layout_column="1"
                        android:layout_gravity="center" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="MQS"
                        android:id="@+id/textView8"
                        android:layout_column="2"
                        android:layout_gravity="center" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="HRT"
                        android:id="@+id/textView9"
                        android:layout_column="3"
                        android:layout_gravity="center" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="RD"
                        android:id="@+id/textView10"
                        android:layout_column="4"
                        android:layout_gravity="center" />
                </TableRow>
    
                <TableRow
                    android:id="@+id/tableRow5"
                    android:layout_height="wrap_content"
                    android:layout_width="match_parent"
                    android:layout_marginTop="10dp">
    
                    <ImageButton
                        android:id="@+id/Ibutton11"
                        android:layout_weight="1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="@drawable/sqradiant1"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:layout_column="0"
                        android:clickable="true"
                        android:tag="S_RD"/>
    
                    <ImageButton
                        android:id="@+id/Ibutton12"
                        android:layout_weight="1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:visibility="invisible" />
    
                    <ImageButton
                        android:id="@+id/Ibutton13"
                        android:layout_weight="1"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:visibility="invisible" />
    
                    <ImageButton
                        android:id="@+id/Ibutton14"
                        android:layout_weight="1"
                        android:layout_height="wrap_content"
                        android:layout_width="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:visibility="invisible" />
    
                    <ImageButton
                        android:id="@+id/Ibutton15"
                        android:layout_weight="1"
                        android:padding="20dip"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_margin="5dp"
                        android:visibility="invisible" />
    
                </TableRow>
    
                <TableRow
                    android:id="@+id/tableRow6"
                    android:layout_height="wrap_content"
                    android:layout_width="match_parent">
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="S_RD"
                        android:id="@+id/textView11"
                        android:layout_column="0"
                        android:layout_gravity="center" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="RBC"
                        android:id="@+id/textView12"
                        android:layout_column="1"
                        android:layout_gravity="center"
                        android:visibility="invisible" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="CU"
                        android:id="@+id/textView13"
                        android:layout_column="2"
                        android:layout_gravity="center"
                        android:visibility="invisible" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="PRN"
                        android:id="@+id/textView14"
                        android:layout_column="3"
                        android:layout_gravity="center"
                        android:visibility="invisible" />
    
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="EMD"
                        android:id="@+id/textView15"
                        android:layout_column="4"
                        android:layout_gravity="center"
                        android:visibility="invisible" />
                </TableRow>
    
            </TableLayout>
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/tableLayout"
                android:layout_marginTop="5dp"
                android:id="@+id/linearLayout">
    
                <TableRow
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent">
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Carat"
                        android:textAppearance="?android:attr/textAppearanceLarge"
                        android:id="@+id/label1"
                        android:background="#38B8B6"
                        android:textSize="20dp"
                        android:textColor="#FFFFFF"
                        android:gravity="center_horizontal"
                        android:layout_weight="1"
                        android:typeface="monospace" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:textAppearance="?android:attr/textAppearanceLarge"
                        android:text="Color"
                        android:id="@+id/label2"
                        android:background="#38B8B6"
                        android:textSize="20dp"
                        android:textColor="#FFFFFF"
                        android:gravity="center_horizontal"
                        android:layout_weight="1"
                        android:typeface="monospace" />
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:textAppearance="?android:attr/textAppearanceLarge"
                        android:text="Clarity"
                        android:id="@+id/label3"
                        android:background="#38B8B6"
                        android:textSize="20dp"
                        android:textColor="#FFFFFF"
                        android:gravity="center_horizontal"
                        android:layout_weight="1"
                        android:typeface="monospace" />
    
                </TableRow>
    
            </TableLayout>
    
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/linearLayout"
                android:layout_alignEnd="@+id/linearLayout"
                android:id="@+id/linearLayout1"
                android:background="@drawable/shape_backround"
                android:layout_marginTop="5dp">
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
                    <NumberPicker android:id="@+id/numberPicker1"
                        android:layout_height="100dp"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:layout_gravity="center"
                        android:layout_marginTop="5dp"
                        android:layout_marginRight="2dp"
                        android:layout_marginBottom="5dp"
                        android:scaleX=".7"
                        android:scaleY=".7"
                        android:background="#FFFFFF" />
    
                    <NumberPicker android:id="@+id/numberPicker2"
                        android:layout_height="100dp"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:layout_gravity="center"
                        android:layout_marginTop="5dp"
                        android:layout_marginRight="2dp"
                        android:layout_marginBottom="5dp"
                        android:scaleX=".7"
                        android:scaleY=".7"
                        android:background="#FFFFFF" />
    
                    <NumberPicker android:id="@+id/numberPicker3"
                        android:layout_height="100dp"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:layout_gravity="center"
                        android:layout_marginTop="5dp"
                        android:layout_marginRight="2dp"
                        android:layout_marginBottom="5dp"
                        android:scaleX=".7"
                        android:scaleY=".7"
                        android:background="#FFFFFF" />
    
                    <NumberPicker android:id="@+id/numberPicker4"
                        android:layout_height="100dp"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:layout_gravity="center"
                        android:layout_marginTop="5dp"
                        android:layout_marginRight="2dp"
                        android:layout_marginBottom="5dp"
                        android:scaleX=".7"
                        android:scaleY=".7"
                        android:background="#FFFFFF" />
    
                    <NumberPicker android:id="@+id/numberPicker5"
                        android:layout_height="100dp"
                        android:layout_column="6"
                        android:layout_weight="1"
                        android:layout_gravity="center"
                        android:layout_marginTop="5dp"
                        android:layout_marginRight="2dp"
                        android:layout_marginBottom="5dp"
                        android:scaleX=".7"
                        android:scaleY=".7"
                        android:background="#FFFFFF" />
    
                    <NumberPicker android:id="@+id/numberPicker6"
                        android:layout_column="7"
                        android:layout_weight="1"
                        android:layout_height="100dp"
                        android:layout_gravity="center"
                        android:layout_marginTop="5dp"
                        android:layout_marginRight="2dp"
                        android:layout_marginBottom="5dp"
                        android:scaleX=".7"
                        android:scaleY=".7"
                        android:background="#FFFFFF" />
                </TableRow>
    
            </TableLayout>
    
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/linearLayout1"
                android:layout_centerHorizontal="true"
                android:id="@+id/tableLayout2"
                android:layout_marginTop="5dp">
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
                    <EditText android:id="@+id/carat_from"
                        android:layout_column="0"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:gravity="center_horizontal"
                        android:hint="From"
                        android:textSize="17sp"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:background="@drawable/shape_backround"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"
                        android:layout_marginRight="2dp"
                        />
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:id="@+id/carat_to"
                        android:layout_column="1"
                        android:hint="To"
                        android:background="@drawable/shape_backround"
                        android:gravity="center_horizontal"
                        android:textSize="17sp"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"
                        android:layout_marginRight="2dp"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:id="@+id/stok_no"
                        android:layout_column="2"
                        android:hint="Stock No"
                        android:background="@drawable/shape_backround"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:textSize="17sp"
                        android:inputType="numberDecimal"
                        android:gravity="center_horizontal"
                        android:scrollHorizontally="false"
                        android:layout_marginRight="2dp"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:id="@+id/cert_no"
                        android:layout_column="3"
                        android:hint="Cert No"
                        android:background="@drawable/shape_backround"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:textSize="17sp"
                        android:inputType="numberDecimal"
                        android:gravity="center_horizontal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_marginTop="5dp"
                    android:paddingBottom="3dp"
                    android:background="#38B8B6">
    
                    <TextView
                        android:textAppearance="?android:attr/textAppearanceLarge"
                        android:text="Fancy Color"
                        android:textColor="#FFFFFF"
                        android:id="@+id/textView16"
                        android:layout_column="0"
                        android:gravity="center_horizontal"
                        android:layout_gravity="center_horizontal"
                        android:layout_weight="1"
                        android:layout_span="7"
                        android:typeface="monospace" />
                </TableRow>
    
            </TableLayout>
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/tableLayout2"
                android:layout_centerHorizontal="true"
                android:background="#38B8B6"
                android:paddingBottom="5dp"
                android:id="@+id/tableLayout3">
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_marginTop="3dp"
                    android:background="#38B8B6">
    
                    <Button
                        android:text="Fancy Color"
                        android:id="@+id/f_color"
                        android:layout_column="0"
                        android:layout_weight="1"
                        android:textColor="#1B7EFF"
                        android:shadowColor="#FFFFFF"
                        android:layout_height="35dp"
                        android:layout_width="wrap_content"
                        android:layout_marginLeft="3dp"
                        android:layout_marginRight="3dp"
                        android:clickable="true"
                        android:typeface="serif"
                        android:soundEffectsEnabled="false" />
    
                    <Button
                        android:layout_width="wrap_content"
                        android:layout_height="35dp"
                        android:text="Intensity"
                        android:id="@+id/intensity"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:textColor="#1B7EFF"
                        android:layout_marginRight="3dp"
                        android:layout_marginLeft="3dp"
                        android:clickable="true"
                        android:typeface="serif" />
    
                    <Button
                        android:layout_width="wrap_content"
                        android:layout_height="35dp"
                        android:text="Overtone"
                        android:id="@+id/overtone"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:textColor="#1B7EFF"
                        android:shadowColor="#FFFFFF"
                        android:layout_marginLeft="3dp"
                        android:layout_marginRight="3dp"
                        android:clickable="true"
                        android:typeface="serif" />
                </TableRow>
    
            </TableLayout>
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginTop="5dp"
                android:layout_below="@+id/tableLayout3"
                android:layout_alignParentStart="true"
                android:id="@+id/tableLayout4">
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:text="Cut"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/txt1"
                        android:layout_column="0"
                        android:layout_weight="1"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Ex"
                        android:id="@+id/cut_ex"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:tag="EX"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="VG"
                        android:id="@+id/cut_vg"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:tag="VG"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="G"
                        android:id="@+id/cut_g"
                        android:layout_column="3"
                        android:layout_weight="1"
                        android:tag="G"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="F"
                        android:id="@+id/cut_f"
                        android:layout_column="4"
                        android:layout_weight="1"
                        android:tag="F"
                        android:typeface="serif" />
    
                    <Button
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="3EX"
                        android:id="@+id/ex3"
                        android:layout_column="5"
                        android:layout_weight="1"
                        android:tag="3EX"
                        android:typeface="serif" />
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:text="Pol"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/txt2"
                        android:layout_column="0"
                        android:layout_weight="1"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Ex"
                        android:id="@+id/pol_ex"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:tag="EX"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:id="@+id/pol_vg"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:text="VG"
                        android:tag="VG"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="G"
                        android:id="@+id/pol_g"
                        android:layout_column="3"
                        android:layout_weight="1"
                        android:tag="G"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="F"
                        android:id="@+id/pol_f"
                        android:layout_column="4"
                        android:layout_weight="1"
                        android:tag="F"
                        android:typeface="serif" />
    
                    <Button
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="3VG+"
                        android:id="@+id/vg3"
                        android:layout_column="5"
                        android:layout_weight="1"
                        android:tag="3VG"
                        android:typeface="serif" />
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:text="Sym"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/txt3"
                        android:layout_column="0"
                        android:layout_weight="1"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Ex"
                        android:id="@+id/sym_ex"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:tag="EX"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="VG"
                        android:id="@+id/sym_vg"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:tag="VG"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="G"
                        android:id="@+id/sym_g"
                        android:layout_column="3"
                        android:layout_weight="1"
                        android:tag="G"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="F"
                        android:id="@+id/sym_f"
                        android:layout_column="4"
                        android:layout_weight="1"
                        android:tag="F"
                        android:typeface="serif" />
    
                    <Button
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="NO BGM"
                        android:id="@+id/no_bgm"
                        android:layout_column="5"
                        android:layout_weight="1"
                        android:typeface="serif" />
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:text="Cert"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/txt4"
                        android:layout_column="0"
                        android:layout_weight="1"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="All"
                        android:id="@+id/cert_all"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:tag="ALL"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="GIA"
                        android:id="@+id/cert_gia"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:tag="GIA"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="IGI"
                        android:id="@+id/cert_igi"
                        android:layout_column="3"
                        android:layout_weight="1"
                        android:tag="IGI"
                        android:typeface="serif" />
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="HRD"
                        android:id="@+id/cert_hrd"
                        android:layout_column="4"
                        android:layout_weight="1"
                        android:tag="HRD"
                        android:typeface="serif" />
    
                    <Button
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:id="@+id/h_a"
                        android:layout_column="5"
                        android:layout_weight="1"
                        android:text="H &amp; A"
                        android:typeface="serif" />
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:text="Fluo"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/button4"
                        android:layout_column="0"
                        android:layout_weight="1"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="N"
                        android:id="@+id/fluo_n"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:tag="N"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="F"
                        android:id="@+id/fluo_f"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:tag="F"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="M"
                        android:id="@+id/fluo_m"
                        android:layout_column="3"
                        android:layout_weight="1"
                        android:tag="M"
                        android:typeface="serif" />
    
                    <Button
                        style="?android:attr/buttonStyleSmall"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="ST"
                        android:id="@+id/fluo_st"
                        android:layout_column="4"
                        android:layout_weight="1"
                        android:tag="ST"
                        android:typeface="serif" />
    
                    <Button
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="VST"
                        android:id="@+id/vst"
                        android:layout_column="5"
                        android:layout_weight="1"
                        android:tag="VST"
                        android:typeface="serif" />
                </TableRow>
    
            </TableLayout>
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_below="@+id/tableLayout4"
                android:layout_centerHorizontal="true"
                android:id="@+id/tableLayout5">
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Black INC"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/black_inc"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <Button
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="No T.Black"
                        android:id="@+id/t_black"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif" />
    
                    <Button
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="No S.Black"
                        android:id="@+id/s_black"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif" />
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Table"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/table"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/table_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_height="fill_parent"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/table_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="T.Depth"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/t_depth"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"
                        />
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/depth_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/depth_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
    
            </TableLayout>
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_below="@+id/tableLayout5"
                android:layout_centerHorizontal="true"
                android:id="@+id/tableLayout6">
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:layout_marginBottom="5dp"
                    android:background="#38B8B6">
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:textAppearance="?android:attr/textAppearanceLarge"
                        android:gravity="center"
                        android:textColor="#FFFFFF"
                        android:id="@+id/textView17"
                        android:layout_weight="1"
                        android:text="Price &amp; Comment"
                        android:typeface="monospace" />
                </TableRow>
    
            </TableLayout>
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_below="@+id/tableLayout6"
                android:layout_centerHorizontal="true"
                android:id="@+id/tableLayout7">
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Off%"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/off"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/off_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/off_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
    
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
    
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="$/CT"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/$_ct"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/$_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/$_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                </TableRow>
    
            </TableLayout>
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_below="@+id/tableLayout7"
                android:layout_centerHorizontal="true"
                android:id="@+id/tableLayout8">
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="5dp"
                    android:layout_marginBottom="5dp"
    
                    android:background="#38B8B6">
    
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:textAppearance="?android:attr/textAppearanceLarge"
                        android:gravity="center"
                        android:textColor="#FFFFFF"
                        android:id="@+id/key_to_symbol"
                        android:layout_weight="1"
                        android:text="Key To Symbol(Exclude)"
                        android:typeface="monospace" />
                </TableRow>
            </TableLayout>
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/tableLayout9"
                android:layout_below="@+id/tableLayout8">
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">
    
                    <EditText
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:id="@+id/keytosymbol"
                        android:layout_column="0"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:hint="Select key To Symbol"
                        android:clickable="true"
                        android:editable="false"
                        android:typeface="serif"
                        android:inputType="text"
                        android:singleLine="true"
                        android:textSize="14sp"
                        android:scrollHorizontally="false"/>
                </TableRow>
            </TableLayout>
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/tableLayout10"
                android:layout_below="@+id/tableLayout9">
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
                    <Button
                        android:layout_width="match_parent"
                        android:layout_height="40dp"
                        android:text="Advanced Parameter"
                        android:id="@+id/advance_parameter"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:visibility="visible"/>
                </TableRow>
    
            </TableLayout>
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/tableLayout10"
                android:layout_alignParentEnd="true"
                android:id="@+id/advance_para"
                android:visibility="visible">
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Diameter"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/diameter"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/d_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/d_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Ratio"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/ratio"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/r_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/r_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Length"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/length"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/l_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/l_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Width"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/width"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/w_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/w_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="C.Height"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/c_height"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/c_h_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/c_h_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="fill_parent"
                        android:layout_height="match_parent"
                        android:text="C.Angle"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/c_angle"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/c_a_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/c_a_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="P.Height"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/p_height"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"
                        android:inputType="numberDecimal"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/p_h_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/p_h_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="P.Angle"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/p_angle"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/p_a_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/p_a_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="S.Len"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/s_len"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:id="@+id/s_l_from"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/s_l_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="L.Half"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/l_half"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/l_h_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/l_h_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="40dp">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Gdle%"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/gdle"
                        android:layout_column="0"
                        android:layout_weight="0.5"
                        android:background="#38B8B6"
                        android:typeface="serif"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="From"
                        android:gravity="center"
                        android:id="@+id/g_from"
                        android:layout_column="1"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:hint="To"
                        android:gravity="center"
                        android:id="@+id/g_to"
                        android:layout_column="2"
                        android:layout_weight="1"
                        android:typeface="serif"
                        android:inputType="numberDecimal"
                        android:scrollHorizontally="false"/>
                </TableRow>
            </TableLayout>
    
    
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/tableLayou12"
                android:visibility="visible"
                android:layout_below="@+id/advance_para">
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Girdle"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/girdle1"
                        android:layout_column="0"
                        android:layout_weight="0.8"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="match_parent"
                        android:hint="Select Girdle"
                        android:gravity="center"
                        android:id="@+id/girdle"
                        android:layout_column="1"
                        android:layout_weight="2"
                        android:editable="false"
                        android:typeface="serif"
                        android:singleLine="true"
                        android:textSize="14sp"
                        android:inputType="text"
                        android:scrollHorizontally="false"/>
                </TableRow>
            </TableLayout>
            <TableLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/tableLayou13"
                android:layout_below="@+id/tableLayou12"
                android:visibility="visible">
    
                <TableRow
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"                    >
    
                    <TextView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:text="Culet"
                        android:layout_marginTop="5dp"
                        android:layout_marginBottom="5dp"
                        android:gravity="center"
                        android:id="@+id/culet1"
                        android:layout_column="0"
                        android:layout_weight="0.8"
                        android:background="#38B8B6"
                        android:typeface="serif" />
    
                    <EditText
                        android:layout_width="fill_parent"
                        android:layout_height="match_parent"
                        android:hint="Select Culet"
                        android:gravity="center"
                        android:id="@+id/culet"
                        android:layout_column="1"
                        android:layout_weight="2"
                        android:editable="false"
                        android:typeface="serif"
                        android:singleLine="true"
                        android:textSize="14sp"
                        android:inputType="text"
                        android:scrollHorizontally="false"
                        />
    
                </TableRow>
            </TableLayout>
    
    <LinearLayout
        android:id="@+id/footer"
        android:layout_width="match_parent"
        android:layout_height="35dp"
        android:layout_alignParentBottom="true"
        android:background="#38B8B6"
        android:gravity="center" >
    
        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:drawableLeft="@drawable/ic_search"
            android:layout_alignParentBottom="true"
            android:text="Search"
            android:textColor="#FFF"
            android:textSize="20sp"
            android:gravity="center"
            android:id="@+id/search"
            android:background="#38B8B6"
            android:typeface="monospace"
            android:fontFamily="monospace"
            android:textAllCaps="false"
           android:drawablePadding="20dp" />
    
    opened by vishrut2207 0
  • Drag and Drop with RelativeLayout / FrameLayout

    Drag and Drop with RelativeLayout / FrameLayout

    When in the item_grid.xml I change layout to the RelativeLayout or FrameLayout, drag and drop stops work. Why is that? Is it possible to use RelativeLayout or FrameLayout there?

    opened by Luckygirlllll 1
Owner
Alex Askerov
Android developer
Alex Askerov
RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)

Advanced RecyclerView This RecyclerView extension library provides Google's Inbox app like swiping, Play Music app like drag-and-drop sorting and expa

Haruki Hasegawa 5.2k Dec 23, 2022
Android ListView that mimics a GridView with asymmetric items. Supports items with row span and column span

AsymmetricGridView An Android custom ListView that implements multiple columns and variable sized elements. Please note that this is currently in a pr

Felipe Lima 1.8k Jan 7, 2023
A GridView which can addHeaderView and addFooterView

Please follow me on GitHub, I need your support Github: https://github.com/liaohuqiu twitter: https://twitter.com/liaohuqiu 中文版文档 GridView with Header

Huqiu Liao 1.3k Nov 30, 2022
An Android GridView that can be configured to scroll horizontally or vertically

TwoWayGridView An Android GridView that can be configured to scroll horizontally or vertically. I should have posted this over a year and a half ago,

Jess Anders 656 Jan 9, 2023
A Paging GridView with the same behavior as PagingListView.

PagingGridView PagingGridView has the ability to add more items on it like PagingListView does. Basically is a GridView with the ability to add more i

Nicolas Jafelle 279 Dec 29, 2022
A modified version of Android's experimental StaggeredGridView. Includes own OnItemClickListener and OnItemLongClickListener, selector, and fixed position restore.

StaggeredGridView Introduction This is a modified version of Android's experimental StaggeredGridView. The StaggeredGridView allows the user to create

Maurycy Wojtowicz 1.7k Nov 28, 2022
Kotlin way of building RecyclerView Adapter 🧩. You do not have to write RecyclerView Adapters again and again and suffer from handling of different view types. Kiel will help you.

Kiel Kiel is a RecyclerView.Adapter with a minimalistic and convenient Kotlin DSL which provides utility on top of Android's normal RecyclerView.Adapt

ibrahim yilmaz 370 Jan 2, 2023
Android library to display a ListView whose cells are not rigid but flabby and react to ListView scroll.

FlabbyListView This library is not maintained anymore and there will be no further releases Android library to display a ListView which cells are not

JPARDOGO 762 Nov 23, 2022
An Android custom ListView and ScrollView with pull to zoom-in.

PullZoomView An Android custom ListView and ScrollView with pull to zoom-in. Features Set ZoomView enable Add HeaderView Custom ZoomView Parallax or N

Frank-Zhu 2.3k Dec 26, 2022
A very easy-to-use and non-intrusive implement of Swipe to dismiss for RecyclerView.

RecyclerViewSwipeDismiss A very easy-to-use and non-intrusive implement of Swipe to dismiss for RecyclerView. Preview How to use Add these lines to yo

xcodebuild 431 Nov 23, 2022
*** WARNING: This library is no longer maintained *** An easy way to add a simple 'swipe-and-do-something' behavior to your `RecyclerView` items. Just like in Gmail or Inbox apps.

SwipeToAction An easy way to add a simple 'swipe-and-do-something' behavior to your RecyclerView items. Just like in Gmail or Inbox apps. Integration

Victor Calvello 223 Nov 16, 2022
👇 Easy Google Photos style multi-selection for RecyclerViews, powered by Kotlin and AndroidX.

Drag Select Recycler View This library allows you to implement Google Photos style multi-selection in your apps! You start by long pressing an item in

Aidan Follestad 1.9k Dec 7, 2022
. Android library that integrate sticky section headers in your RecyclerView

recyclerview-stickyheaders Recyclerview-stickyheaders is an Android library that makes it easy to integrate section headers in your RecyclerView. Thes

null 968 Nov 10, 2022
An android library for section headers that stick to the top

StickyListHeaders StickyListHeaders is an Android library that makes it easy to integrate section headers in your ListView. These section headers stic

Emil Sjölander 5.5k Jan 2, 2023
Android library to achieve in an easy way, the behaviour of the home page in the Expedia app, with a pair of auto-scroll circular parallax ListViews.

ListBuddies This library is not maintained anymore and there will be no further releases Android library of a pair of auto-scroll circular parallax Li

JPARDOGO 970 Dec 29, 2022
Android library to observe scroll events on scrollable views.

Android-ObservableScrollView Android library to observe scroll events on scrollable views. It's easy to interact with the Toolbar introduced in Androi

Soichiro Kashima 9.6k Dec 29, 2022
An Android staggered grid view which supports multiple columns with rows of varying sizes.

AndroidStaggeredGrid ##Notice - Deprecated - 09-2015 This library has been deprecated. We will no longer be shipping any updates or approving communit

Etsy, Inc. 4.8k Dec 29, 2022
An Android Animation library which easily add itemanimator to RecyclerView items.

RecyclerView Animators RecyclerView Animators is an Android library that allows developers to easily create RecyclerView with animations. Please feel

Daichi Furiya 11.2k Jan 5, 2023
Android library providing simple way to control divider items (ItemDecoration) of RecyclerView

RecyclerView-FlexibleDivider Android library providing simple way to control divider items of RecyclerView Release Note [Release Note] (https://github

Yoshihito Ikeda 2.4k Dec 18, 2022