Search in sources :

Example 1 with FABWrapper

use of com.farmerbb.taskbar.util.FABWrapper in project Taskbar by farmerbb.

the class HomeActivityDelegate method initDesktopIcons.

private void initDesktopIcons() {
    desktopIcons = new GridLayout(this);
    fab = new FABWrapper(this);
    updateMargins();
    refreshDesktopIcons();
    fab.setImageResource(R.drawable.tb_done);
    fab.view.setOnClickListener(v -> {
        iconArrangeMode = false;
        fab.hide();
        refreshDesktopIcons();
    });
    if (!iconArrangeMode)
        fab.hide();
    layout.addView(desktopIcons);
    layout.addView(fab.view);
}
Also used : GridLayout(android.widget.GridLayout) FABWrapper(com.farmerbb.taskbar.util.FABWrapper)

Aggregations

GridLayout (android.widget.GridLayout)1 FABWrapper (com.farmerbb.taskbar.util.FABWrapper)1