-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recode the core. #276
Comments
I agree with you.I really think the library should be more adaptable. |
can u add me in the project? +1 you can branch out a portion for me to start making updates.. |
@jjhesk I have added you to the project.Hoping for your magical contribution~ |
now i have done some works for the upgrades. =) #280 First is the load more issue which is now resolved Now this is the proper coding for enable load more on grid layout manager super.onCreate(savedInstanceState);
setContentView(getMainLayout());
mToolbar = (Toolbar) findViewById(R.id.tool_bar);
setSupportActionBar(mToolbar);
getSupportActionBar().setDisplayShowTitleEnabled(true);
listuv = (UltimateRecyclerView) findViewById(R.id.ultimate_recycler_view);
mGridAdapter = new GridLayoutRVAdapter(getItems());
mGridAdapter.setSpanColumns(columns);
mGridLayoutManager = new BasicGridLayoutManager(this, columns, mGridAdapter);
listuv.setLayoutManager(mGridLayoutManager);
listuv.setHasFixedSize(true);
listuv.setSaveEnabled(true);
listuv.setClipToPadding(false);
listuv.setAdapter(mGridAdapter);
listuv.setItemAnimator(new DefaultItemAnimator());
// mGridAdapter.setCustomLoadMoreView(LayoutInflater.from(this).inflate(R.layout.custom_bottom_progressbar, null));
listuv.setNormalHeader(setupHeaderView());
final Handler f = new Handler();
listuv.setOnLoadMoreListener(new UltimateRecyclerView.OnLoadMoreListener() {
@Override
public void loadMore(int itemsCount, int maxLastVisiblePosition) {
// Log.d(TAG, itemsCount + " :: " + itemsCount);
f.postDelayed(new Runnable() {
@Override
public void run() {
mGridAdapter.insert(SampleDataboxset.newListFromGen(2));
// listuv.disableLoadmore();
// listuv.disableLoadmore();
}
}, 1000);
}
});
listuv.enableLoadmore(); when you need to disable load more after done loading the items you can do this: public void loadMore(int itemsCount, int maxLastVisiblePosition) {
// Log.d(TAG, itemsCount + " :: " + itemsCount);
f.postDelayed(new Runnable() {
@Override
public void run() {
mGridAdapter.insert( .... );
listuv.disableLoadmore();
}
}, 1000);
} |
|
Great work! Let's try to do some test and then release them. |
just tested on linearlayout and i also fixed the defects from the load more. please do more load more testing... Test code list
|
quick fix from zero data at the beginning. #284 |
Awesome work! |
@cymcsg try to deploy from branch core-recode-redesign i think its ready for 0.4.0. the only thing is the swiplist demo and there are some errors behind. you might take a look of the code |
Great work! |
I do not have enough time to fix the bug in |
@cymcsg yes i can take up your work and fix the possible bugs |
should be fixed again.. on v0.5.0 |
First of all, thanks to @cymcsg for your amazing bundle from other library and we have been fixing bugs so far and its been your sole effort for the majority. Here I want to give you a special thanks for our hard works. However, looking at the contribution rate. We dont see the popular of contributions from the crowds. For my view of points, it is still such an headache to look at the code in one single large file.
I think the recyclerview has been a maze for people to add their external efforts on combining their module.
Basically, there are
I have read from other libraries and found some interesting implementation yet will able to keep this library as lightweight. Maybe we can try some effort to make this library more adaptable for developer crowd. Please read up this libray and give me some suggestions. Here I will response to all the previous query for the adaptable module features Is there a way to add headers to UltimateRecyclerView as listview.addHeader(...)? #222
For this version of 0.4.0 we need to clear out all the most the popular issues from the previous posts.
The text was updated successfully, but these errors were encountered: