Код: Выделить всё
private void setTimeData() {
Collections.reverse(timeModelArrayList);
timeAdapter = new TimeAdapter(this,timeModelArrayList,totalDuration,this);
// int overlapHeight = 60; // Set the height for overlap
// timeRecyclerView.addItemDecoration(new OverlappingItemDecoration(overlapHeight));
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
linearLayoutManager.setReverseLayout(true);
linearLayoutManager.setStackFromEnd(true);
timeRecyclerView.setLayoutManager(linearLayoutManager);
timeRecyclerView.setAdapter(timeAdapter);
}
Я хочу иметь возможность щелкнуть в любом месте наклейки и перетащить ее
Подробнее здесь: https://stackoverflow.com/questions/793 ... em-overlap
Мобильная версия