mirror of
https://github.com/leanote/leanote-android.git
synced 2025-10-16 07:19:28 +00:00
fix different UI in SearchActivity
This commit is contained in:
@@ -17,7 +17,7 @@ import org.houxg.leamonax.model.Note;
|
|||||||
import org.houxg.leamonax.service.NoteService;
|
import org.houxg.leamonax.service.NoteService;
|
||||||
import org.houxg.leamonax.utils.DisplayUtils;
|
import org.houxg.leamonax.utils.DisplayUtils;
|
||||||
import org.houxg.leamonax.utils.ToastUtils;
|
import org.houxg.leamonax.utils.ToastUtils;
|
||||||
import org.houxg.leamonax.widget.DashDividerDecoration;
|
import org.houxg.leamonax.widget.DividerDecoration;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@@ -58,10 +58,7 @@ public class SearchActivity extends BaseActivity implements NoteAdapter.NoteAdap
|
|||||||
mNoteListView.setLayoutManager(layoutManager);
|
mNoteListView.setLayoutManager(layoutManager);
|
||||||
mNoteListView.setItemAnimator(new DefaultItemAnimator());
|
mNoteListView.setItemAnimator(new DefaultItemAnimator());
|
||||||
|
|
||||||
int dashGap = DisplayUtils.dp2px(4);
|
mNoteListView.addItemDecoration(new DividerDecoration(DisplayUtils.dp2px(8)));
|
||||||
int dashWidth = DisplayUtils.dp2px(8);
|
|
||||||
int height = DisplayUtils.dp2px(1);
|
|
||||||
mNoteListView.addItemDecoration(new DashDividerDecoration(0xffa0a0a0, dashGap, dashWidth, height));
|
|
||||||
mAdapter = new NoteAdapter(this);
|
mAdapter = new NoteAdapter(this);
|
||||||
mNoteListView.setAdapter(mAdapter);
|
mNoteListView.setAdapter(mAdapter);
|
||||||
mNoteListView.addOnScrollListener(new RecyclerView.OnScrollListener() {
|
mNoteListView.addOnScrollListener(new RecyclerView.OnScrollListener() {
|
||||||
|
Reference in New Issue
Block a user