Context-Menu.Android

Context-Menu.Android

Source code introduction

Screenshot of excellent source code running on Git

Source code snippet

  1. protected   void onCreate(Bundle savedInstanceState) {
  2. super .onCreate(savedInstanceState);
  3. setContentView(R.layout.activity_main);
  4. fragmentManager = getSupportFragmentManager();
  5. initToolbar();
  6. mMenuDialogFragment = ContextMenuDialogFragment.newInstance(( int ) getResources().getDimension(R.dimen.tool_bar_height), getMenuObjects());
  7. addFragment( new MainFragment(), true , R.id.container);
  8. }

Source code link: http://download..com/data/1983058

<<:  Zxing scan code example

>>:  CircleList (arc-shaped ListView)

Recommend

110, happy holidays!

“I am a police officer” Anytime, Anywhere Hear th...

Analysis of Xiaohongshu’s category operations!

I have been dissecting Xiaohongshu accounts recen...

Xueersi Dynasty Songs 1~4 Collection

Course Catalog: ├──Dynasty 1 (SD) | ├──01 Three S...

8 tips for Facebook advertising!

Because I am not familiar with Facebook's adv...

Foxconn is no longer so obedient: Is it becoming a hidden danger for Apple?

Japanese media reported a few days ago that Sharp...

9 hidden features in Android Pie: some great tricks you might have missed

【51CTO.com Quick Translation】Android Pie is now a...

3.15 Know More | Uncover the Truth Behind “Free WiFi”

The 3.15 Gala exposed that the "free WiFi&qu...