Giter VIP home page Giter VIP logo

checklistview's Introduction

Hi, I'm Federico ๐Ÿ‘‹๐Ÿพ ๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป

me sleeping in front of a computer

Software developer, passionate about making open-source more accessible to give back that much that community gave me.

Some technologies I enjoy working with include Android SDK, Java, Kotlin and ReactJS.

๐Ÿ“ˆ My GitHub Statistics

checklistview's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

checklistview's Issues

Checklist drag bug Android 7

Hi,
Since I upgraded my phone, Samsung galaxy S7 Edge, to Nougat I have noticed that my apps checklist dragging does not work anymore, sometimes cause crashes as well. The checklist drag feature does not work on your Omni Notes app either.

King regards,
Damian

Exception when deleting check list item

03-21 23:01:38.040 28123-28123/com.avrapps.note E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.avrapps.note, PID: 28123
java.lang.NullPointerException: Attempt to invoke interface method 'void it.feio.android.checklistview.interfaces.CheckListChangedListener.onCheckListChanged()' on a null object reference
at it.feio.android.checklistview.models.CheckListView.onLineDeleted(CheckListView.java:395)
at it.feio.android.checklistview.models.CheckListViewItem$1.run(CheckListViewItem.java:246)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5763)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Checklist improvement idea - ordered, unordered lists

Idea

Possibility to insert ordered and different notation unordered lists

Example in plain text

Ordered list notation:

1. [ ] Pigeon
2. [ ] Walrus
3. [ ] Shark

Alternative unordered list notation with -, + or *, that you could set in settings

- [ ] Pigeon (or)
+ [ ] Walrus (or)
* [ ] Shark (or)
[ ] Tiger

Original link

Text and CheckBox colors

How do I set the text and checkbox colors pragmatically? I tried using checklistview.getEditText().setTextColor(), but only first check list item was effected.

merge distinct items in list =enhancement

Current version 6.1.0
This is a common function on other note apps with lists.
It is usually implemented with simple backspace/delete.

It can be worked around, but it would be very convenient, and should be easy to implement.

Interval between touch and start move items is too short

I will try to explain why this is an issue.
I am a left-handed person :) When i scroll CheckList up|down holding my phone in left hand it's too easy accidentally start to move list items with my thumb. If this "hold to move" interval would be a little longer, that can significantly reduce number of such errors.

FrameLayout cannot be casted to ScrollView Error

When I try to drag the Checklist Items, it gives me this error in logs and App Force Stops.

java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.ScrollView at it.feio.android.checklistview.dragging.ChecklistViewItemOnDragListener.onDrag(ChecklistViewItemOnDragListener.java:34) at android.view.View.dispatchDragEvent(View.java:19699) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1532) at it.feio.android.checklistview.models.CheckListView.dispatchDragEvent(CheckListView.java:407) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1469) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1481) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1481) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1481) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1481) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1481) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1481) at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1481) at android.view.ViewRootImpl.handleDragEvent(ViewRootImpl.java:5290) at android.view.ViewRootImpl.-wrap6(ViewRootImpl.java) at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3465) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5422) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Event listener

Sorry for stupid questions, but how do I keep track the events such as check, un-check, arrange items, delete items and add new items, and also how can i display it as a TextView instead of editText and bind them into adapter for displaying in recyclerView, much thanks

App crash when drag checklist item

I am using library versio 3.2.1. when i drag any item it gives me error like below:

2021-08-14 10:00:10.929 7261-7261/com.example.notes E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.notes, PID: 7261
java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.ScrollView
at it.feio.android.checklistview.dragging.ChecklistViewItemOnDragListener.onDrag(ChecklistViewItemOnDragListener.java:38)
at it.feio.android.checklistview.models.CheckListViewItem.manageDragEvents(CheckListViewItem.java:389)
at it.feio.android.checklistview.models.CheckListViewItem.access$200(CheckListViewItem.java:33)
at it.feio.android.checklistview.models.CheckListViewItem$3.onDrag(CheckListViewItem.java:379)
at android.view.View.callDragEventHandler(View.java:25627)
at android.view.View.dispatchDragEvent(View.java:25618)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at it.feio.android.checklistview.models.CheckListView.dispatchDragEvent(CheckListView.java:422)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewGroup.notifyChildOfDragStart(ViewGroup.java:1846)
at android.view.ViewGroup.dispatchDragEvent(ViewGroup.java:1693)
at android.view.ViewRootImpl.handleDragEvent(ViewRootImpl.java:6724)
at android.view.ViewRootImpl.access$1200(ViewRootImpl.java:142)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:4587)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Listview to ChecklistView? Is it possible?

Hello Mr. Iosue,

I'm fairly new to android development (6 months) so excuse me if im making a mistake, but is it possible to use this library with a ListView instead of an EditText? Im populating a listview with assignments (kind of like a to-do-list), but the assignments are retrieved automatically from the web, and I just need a way of checking off the assignments as they are completed and i thought this library would be a perfect fit. Any help will be much appreciated.

Thanks,
Karsten.

setEnable() & setFocusable()

Hi it's me again, I have problems to disable the checklist view to make it not editable by users. But both setEnable() & setFocusable() methods were not working. Any workarounds?

Possibility to sort check lists

Hi,

I haven't discovered the possibility to sort check lists, e.g. to sort them by name or, more important to me, to put unchecked items to the top of the list. It would also be nice to have an option to automatically sort the entries according to the selected method.

Reopened, old post can be found here.

Allow NestedScrollView

The ChecklistViewItemOnDragListener::onDrag [1] tries to find the next ScollView ancestor. In some cases it is necessary to use a NestedScrollView instead of a normal ScrollView. But it is not possible to cast between the two classes. Therefor, it would be useful to explicit support the use of NestedScrollView.

One more thing:
The check in ChecklistViewItemOnDragListener::getScrollableAncestor [2] is not quite correct. The for-loop will eventually encounter a FrameLayout when there is no ScrollView. FrameLayout.getClass().isAssignableFrom(ScrollView.class) is true, but you can not cast a FrameLayout to a ScrollView.
Maybe this is also the problem in issue #16.

[1] https://github.com/federicoiosue/checklistview/blob/develop/checklistview/src/main/java/it/feio/android/checklistview/dragging/ChecklistViewItemOnDragListener.java#L38
[2] https://github.com/federicoiosue/checklistview/blob/develop/checklistview/src/main/java/it/feio/android/checklistview/dragging/ChecklistViewItemOnDragListener.java#L180

Checklist improvement idea - add checklist anywhere

Idea

Possibility to add checklist anywhere in regular note.
Currently you can transform regular note into checklist by clicking Enable checklist. This adds check-box to any row in the note. What if you could enable it on demand, e.g. final note would be:

Ingredients for chocolate cake: (now you make a list)
[ ] Chocolate
[x] Cake
Recipe: (make a list again)
[ ] Open chocolate
[ ] Make cake

I actually haven't seen an app that could do this. There usually is just create list or create note, this hybrid functionality seems a nice touch

Original link

option to add custom view for checkbox items

hi,
for rtl languages, views should align to the right of screen, but it seems this is not an option for this lib right now.
but if you can add option to define custom view to checkbox items, i think this can solve this problem and add other possibilities to this lib.
thanx

Can drag but can't drop

I'm trying to implement this in my app.

This is the layout I'm using (in reality, it contains more stuff but I've reduced it to this and it still doesn't drop):

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:float="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <EditText
                android:id="@+id/editReminderContent"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />
        </LinearLayout>
    </ScrollView>
</LinearLayout>

Debug log says:

...
V/ChecklistViewItemOnDragListener: Dragging item. Action: 1
I/ViewRootImpl[EditReminderActivity]: Reporting drop result: false
V/ChecklistViewItemOnDragListener: Dragging item. Action: 4
...

Behavior: I can create and delete items, then I can drag them but when I drop them they return to their original position.

Can post code if needed (although it's very similar to the one found here

Library fails to resolve

I have tried to sync the library but it always say Failed to resolve: com.github.federicoiosue:checklistview:3.2.1

Feature request

option to set font color, font face and font size to check list items

When creating a check list, if i press delete/backspace when there is no text but only checkbox, the app crashes.

java.lang.ClassCastException: android.widget.EditText cannot be cast to a.a.a.a.d.f
at a.a.a.a.d.c.a(CheckListViewItem.java:328)
at a.a.a.a.d.c.a(CheckListViewItem.java:383)
at a.a.a.a.d.g.deleteSurroundingText(EditTextMultiLineNoEnter.java:69)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:389)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

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.