Giter Site home page Giter Site logo

birajpatel / easylistviewadapters Goto Github PK

View Code? Open in Web Editor NEW
130.0 130.0 31.0 754 KB

This library provides Easy Android ListView Adapters(EasyListAdapter & EasyCursorAdapter) which makes designing Multi-Row-Type ListView very simple & cleaner, It also provides many useful features for ListView.

License: Other

Java 100.00%

easylistviewadapters's People

Contributors

birajpatel 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

easylistviewadapters's Issues

Application specific R import in com.birin.easylistviewadapters.utils.ChildViewsClickHandler

After importing via the repo I get:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/birin/easylistviewadapters/R$string;

The build script does not appear to successfully generate the R.java file.

After importing manually as a package I was able to get further information on this.

File com.birin.easylistviewadapters.utils.ChildViewsClickHandler contains:

import com.birin.easylistviewadapters.R;

Which means importing via Gradle will cause an error (at least when the child on click handler functionality is used). It appears to require this import for

private static int TAG_VIEW_POSITION = R.string.key_view_position;
private static int TAG_CLICK_EVENT_ID = R.string.key_click_event_id;

When setting these to 0 I get:

The key must be an application-specific resource id.

Caused by the setTag line in the last method:

  private static void tagIntValueToView(View view, int key, int value) {
        if (null != view) {
            view.setTag(key, value);
        }
    }

http://stackoverflow.com/questions/2859574/the-key-must-be-an-application-specific-resource-id seems to suggest no work around, an easy fix is to add as a package and change the import line and add https://github.com/birajpatel/EasyListViewAdapters/blob/master/EasyListViewAdapters/easylistviewadapters/src/main/res/values/dummy_ids.xml .

I feel it should be importable via Gradle somehow, perhaps the user could supply these values in a higher class? I think the best solution would be for the build script could be built to successfully include R.java. (https://github.com/rey5137/material is an example library that achieves this) After digging around I feel this is easier for someone who is more familiar with the build script to fix so I just thought I'd notify you guys in the hopes you keep up the great work! :)

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.