How do you create a context menu?

Nguyễn Hào

New member
How do you create a context menu?
Answer
Implementing the context menu is straightforward, and is a key ingredient in many applications.
  1. Step 1: Open or Create a Project.
  2. Step 2: Import the Android Resources.
  3. Step 3: Add a UI Element to Long-Press.
  4. Step 4: Create a Menu Resource.
  5. Step 5: Register for the Context Menu.
  6. Step 6: Use Your Menu Resource.
14 дек. 2011 г.
 

Tìm kiếm

Back
Top