Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried to open sample with Eclipse, does not work #10

Open
bitbitbit opened this issue Jan 11, 2013 · 1 comment
Open

Tried to open sample with Eclipse, does not work #10

bitbitbit opened this issue Jan 11, 2013 · 1 comment

Comments

@bitbitbit
Copy link

When importing the sample into Eclipse and running it, there are errors in scr/com.darvds.ribbonmenu.sample/RibbonsampleActivity.java

@OverRide
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(com.darvds.ribbonmenu.sample.R.layout.main);

        rbmView = (RibbonMenuView) findViewById(R.id.ribbonMenuView1);
        rbmView.setMenuClickCallback(this);
        rbmView.setMenuItems(R.menu.ribbon_menu);

        getActionBar().setDisplayHomeAsUpEnabled(true);
    }

"R.layout.main" have to be changed to "com.darvds.ribbonmenu.sample.R.layout.main" in order to fix the error bugs

@lassana
Copy link

lassana commented Jan 20, 2013

Change import com.darvds.ribbonmenu.R; to import com.darvds.ribbonmenu.sample.R; in RibbonsampleActivity.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants