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

Will 8K TVs become the mainstream in the market? The reasons are beyond words

For most users, 4K TV is still a novelty. However...

When the APP gold rush fades away, what will be the next era of wildflowers?

Many of the apps in your phone are rusty, right? ...

APP operation: How to improve user retention rate?

There is an important data indicator in the produ...

Why is it difficult for your solution to effectively solve the problem?

When you encounter any marketing problem, your ma...

Uber burns too much money in China, investors call for peace with Didi

Investors in ride-hailing service Uber have a mes...

Thunderbird is here, how far are TCL and LeTV from breaking up?

Multimedia COO Wang Cheng, successor to Master Bo...