GithubHelp home page GithubHelp logo

Comments (4)

emileb avatar emileb commented on June 26, 2024

Hi the library does not concern itself with how the data is stored or represented, have you got it working in a Recyclerview without sorting?

from dragsortrecycler.

azizimusa avatar azizimusa commented on June 26, 2024

Yes it is working. But now I manage understand a bit of how to fill the data in recyclerview. Now I got new problem which is, my imageview won't allow me to drag and sort. I have pick the imageview from linearlayout. But still the problem arise. Please check my layout file. I am using imageview with an ID of #holder, at the bottom of the layout.

<!--  ListRow Left side Thumbnail image -->
<LinearLayout android:id="@+id/thumbnail"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="3dip"
    android:layout_alignParentLeft="true"
    android:layout_marginRight="5dip">

    <ImageView
        android:id="@+id/list_image"
        android:layout_width="80dip"
        android:layout_height="match_parent"
        android:adjustViewBounds="true"
        android:src="@drawable/aed"
        android:scaleType="fitXY"
        android:layout_marginRight="20dp" />

</LinearLayout>

<!-- Currency-->
<TextView
    android:id="@+id/title"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignTop="@+id/thumbnail"
    android:layout_toRightOf="@+id/thumbnail"
    android:text="AED"
    android:textColor="#040404"
    android:typeface="sans"
    android:textSize="20sp"
    android:textStyle="bold"
    android:paddingTop="5dp" />

<!-- rates -->
<TextView
    android:id="@+id/rate"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textColor="#343434"
    android:textSize="18sp"
    android:layout_toRightOf="@+id/title"
    android:text="2.2332"
    android:paddingTop="5dp"
    android:paddingLeft="33dp" />

<!-- 1 MYR conversion -->
<TextView
    android:id="@+id/conversion"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/title"
    android:textColor="#343434"
    android:textSize="18sp"
    android:layout_marginTop="1dip"
    android:layout_toRightOf="@+id/thumbnail"
    android:text="1 MYR = 0.21312"
    android:paddingTop="5dp" />

<!-- Rightend Duration -->

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_alignParentRight="false"
    android:gravity="end">

    <!-- Rightend Arrow -->
    <ImageView

        android:id="@+id/holder"
        android:layout_width="40dip"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_star"
        android:adjustViewBounds="true"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:layout_gravity="right" />

</LinearLayout>

from dragsortrecycler.

azizimusa avatar azizimusa commented on June 26, 2024

Hi Emileb ! ..just to inform you that i manage to get this working smoothly !.

my problem was. I didnt set the id of the imageview in

dragSortRecycler.setViewHandleId

after that, all is working .

Thanks for the plugin.

from dragsortrecycler.

emileb avatar emileb commented on June 26, 2024

Great, thanks for the update!

from dragsortrecycler.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.