Giter Site home page Giter Site logo

android-drag-flowlayout's People

Contributors

lightsun avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

android-drag-flowlayout's Issues

com.heaven7.memory.util.Cacher not found

I try to wrap your wonderful lib to a RAD software called "B4X".

I get this compiling error:

`Starting step: Compiling Java code.
javac 1.8.0_73
D:_B4A_SAMPLES_LibsToWrap_temp\src\java\com\heaven7\android\dragflowlayout\DefaultDragCallback.java:9: error: package com.heaven7.memory.util does not exist
import com.heaven7.memory.util.Cacher;

Am I missing something?

导入库运行时crash

crash log

 android.view.InflateException: Binary XML file line #54 in com.component.debug.cPaccounts:layout/paccounts_fragment_laout: Binary XML file line #54 in com.component.debug.cPaccounts:layout/paccounts_fragment_laout: Error inflating class com.heaven7.android.dragflowlayout.DragFlowLayout
    Caused by: android.view.InflateException: Binary XML file line #54 in com.component.debug.cPaccounts:layout/paccounts_fragment_laout: Error inflating class com.heaven7.android.dragflowlayout.DragFlowLayout
    Caused by: java.lang.reflect.InvocationTargetException

看上去像是xml反射失败。
我的布局

   <LinearLayout
        android:id="@+id/dragContainer"
        android:visibility="gone"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.heaven7.android.dragflowlayout.DragFlowLayout
            android:id="@+id/dragLayout"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            app:itemSpacing="5dp"
            app:lineSpacing="5dp"
            android:layout_weight="1">
        </com.heaven7.android.dragflowlayout.DragFlowLayout>

    </LinearLayout>

目前项目是androidX。

android x

最新:已解决
依赖android x版本 版本号:1.8.8-x 依赖不下来

旋转屏幕,生命周期变化导致数据全部抹除

如果都是最后一个lable位置放不下,直接切换到下一行,当每行空余长度大于总长度30percent时,是否考虑次行所有标签居中显示,否则每行最后留白,这样的排版个人觉得不太好

设置DragFlowLayout宽高都为match_parent,item子项新增加的会重叠起来。

我开始把xml布局DragFlowLayout宽高设置为match_parent,但是addItem一直加不上,仔细观察才发现其实是因为没个新增加的item都覆盖在了前一个item上面,所以看起来只有一个item在变化。
但是把DragFlowLayout的宽高改成wrap_content就可以正常实现了,不知道是作者故意这么设置的还是设计的问题呢?

DragFlowLayout inside a Scrollview not working properly

I have placed DragFlowLayout inside of a Scrollview. DragflowLayout is filled with childs (tags) such that height of the DragflowLayout is greater than device screen height.

For the first time when i scroll the Scrollview , its work perfectly. But as i first drag and drop a child inside DragFlowLayout and after that if i try to scroll the Scrollview then scrolling does not work.

same issue is also in the Sample provided in repo.

Please help.

README文档感觉说明不是很清楚,对于初接触的人来说不知道该怎么用

看了作者的文档,很多地方都搞不清楚例如:
1、刚接触一看不知道怎么引用,(我是在简单看了源码之后才知道要在XML里面引用,也就是自定义的View),但是README文档里一直在强调Java代码的东西
2、能不能定义自己的Adapter,这里我猜测应该是继承DragAdapter,但是里面的方法就不知道具体表达什么意思了,源码里面也只是抽象方法,我个人能力有限,真的不知道该怎么用。
3、还有那个预存Item是什么意思?
这只是我个人的一些看法,可能是因为个人水平比较低导致消化不良,如果可以,希望作者能费一些时间解答一下这些,谢谢!

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.