Overriding onOptionsItemSelected from SherlockFragmentActivity

前端 未结 2 1154
南旧
南旧 2021-02-07 01:47

Yesterday, I found a great library that allowed me to have a \"facebook menu\" with a button on the top left of an action bar which, when pressed, would slide in a menu of items

2条回答
  •  我在风中等你
    2021-02-07 02:22

    Change import android.view.MenuItem; to import com.actionbarsherlock.view.MenuItem;. Otherwise, you're just using an entirely different MenuItem than the one you're importing.

提交回复
热议问题