menu

 override fun onCreateOptionsMenu(menu: Menu?): Boolean {
        menu?.add(Menu.NONE, 0, 0, "重新导入")
        return true
    }

    override fun onOptionsItemSelected(item: MenuItem?): Boolean {
        if (item?.itemId == 0) {
            MyLog.d("点击重新导入")
            return true
        }
        return super.onOptionsItemSelected(item)
    }

 

posted @ 2018-06-26 11:23  H_bolin  阅读(189)  评论(0编辑  收藏  举报