I am trying to set the JFeinstein10 sliding menu to eclipse.
What I tried:
file > import > from existing android.. > select the library of sliding menufile > import > from ex.. > select the example of sliding mefile > import > from ex.. > select actionbarsherlock librarymark slidingmenu lib and actionbarlib as libraryadd the library to example of sldingmenucleanup all
and then I get various errors (for example: jar mismatch, .. cannot be resolved to type, method .. type .. must redefine the superclass method), I parse them and use the cleanup and quick fix options. but i don't work.
I hope one of you knows a good textbook, or maybe you can write or know what to do.
I am new to Android development, all my previous applications are made in webview .
I also tried https://github.com/johnkil/SideNavigation (also didnโt work if someone knows how to configure this, great!) And grimbo a sliding menu (it worked, but thatโs not what I am looking for)
errors are in the library only in slidingmapactivity (shown below), and in the actibarsherlock library there are many files with errors (in almost any file in the src folder)
code in lib: slidingmapactivity: package com.slidingmenu.lib.app; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.ViewGroup.LayoutParams; import com.slidingmenu.lib.SlidingMenu; public abstract class SlidingMapActivity extends MapActivity implements SlidingActivityBase { private SlidingActivityHelper mHelper; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mHelper = new SlidingActivityHelper(this); mHelper.onCreate(savedInstanceState); } @Override public void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); mHelper.onPostCreate(savedInstanceState); } @Override public View findViewById(int id) { View v = super.findViewById(id); if (v != null) return v; return mHelper.findViewById(id); } @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); mHelper.onSaveInstanceState(outState); } @Override public void setContentView(int id) { setContentView(getLayoutInflater().inflate(id, null)); } @Override public void setContentView(View v) { setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); } @Override public void setContentView(View v, LayoutParams params) { super.setContentView(v, params); mHelper.registerAboveContentView(v, params); } @Override public void setBehindContentView(int id) { setBehindContentView(getLayoutInflater().inflate(id, null)); } @Override public void setBehindContentView(View v) { setBehindContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); } @Override public void setBehindContentView(View v, LayoutParams params) { mHelper.setBehindContentView(v, params); } @Override public SlidingMenu getSlidingMenu() { return mHelper.getSlidingMenu(); } @Override public void toggle() { mHelper.toggle(); } @Override public void showContent() { mHelper.showContent(); } @Override public void showMenu() { mHelper.showMenu(); } @Override public void showSecondaryMenu() { mHelper.showSecondaryMenu(); } @Override public void setSlidingActionBarEnabled(boolean b) { mHelper.setSlidingActionBarEnabled(b); } @Override public boolean onKeyUp(int keyCode, KeyEvent event) { boolean b = mHelper.onKeyUp(keyCode, event); if (b) return b; return super.onKeyUp(keyCode, event); }
}
source share