正倒计时布局统一消除晃动;原因弹层适配输入法;已完成按钮位置固定;原因文案与暂停原因;科技蓝主色
This commit is contained in:
@@ -105,12 +105,14 @@ class TasksFragment : Fragment(R.layout.fragment_tasks) {
|
||||
tvCount.text = getString(R.string.task_count, pending.size)
|
||||
tvEmpty.setText(R.string.empty_tasks)
|
||||
if (done.isNotEmpty()) {
|
||||
if (expandedDone) done.forEach { rows.add(toRow(it, spans)) }
|
||||
// 按钮固定在未完成列表之后,展开的已完成项排在它下面,
|
||||
// 不管展开与否都在同一个位置,长列表也不用一路拉到底
|
||||
rows.add(
|
||||
TaskAdapter.Row.Footer(
|
||||
getString(if (expandedDone) R.string.hide_done else R.string.show_done)
|
||||
)
|
||||
)
|
||||
if (expandedDone) done.forEach { rows.add(toRow(it, spans)) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user