Comments (4)
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.
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.
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.
Great, thanks for the update!
from dragsortrecycler.
Related Issues (15)
- Upload the lib to Maven HOT 4
- Support to drag on long press HOT 4
- Drag and Drop with long click and Contextual Action Bar HOT 1
- OnItemMovedListener provide wrong "to" position when dragged to bottom of screen from top HOT 2
- setHasStableIds(true) method ? HOT 2
- Drag Handler bitmap? HOT 2
- Add support for dragging on horizontal RecyclerViews
- Using DragSort recycler with SwipeRefreshLayout HOT 3
- Faded item stuck at drop point after draggning HOT 8
- recyclerview cardview maintain same position after drag and drop HOT 6
- Check visibility of the viewhandle HOT 1
- getItemId in sample code should not use position HOT 4
- minSdkVersion=15 HOT 2
- Click listener HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dragsortrecycler.