slidingmenu

Slidemenu(侧滑)的使用(三种使用方式)及属性详解

旧街凉风 提交于 2019-11-29 06:01:11
1、初始化Slidemenu: SlidingMenu sm = getSlidingMenu(); 2、设置SlideMenu阴影: sm.setShadowWidthRes(R.dimen.shadow_width);//阴影宽度 sm.setShadowDrawable(R.drawable.shadow);//阴影Drawable 3、设置SlideMenu来开后离边框距离: sm.setBehindOffsetRes(R.dimen.slidingmenu_offset);//拉开后离边框距离 sm.setBehindWidth(int width); 4、设置渐变: sm.setFadeEnabled(true);/是否有渐变 sm.setFadeDegree(0.35f);//设置渐变比率 5、设置SlideMenu布局: setBehindContentView(R.layout.fr_slide_menu_right_frame); getSupportFragmentManager().beginTransaction().replace(R.id.fr_slide_menu_right_frame, new AddChannelFragment()).commit(); .FragmentTransaction类主要用于管理Fragment,有添加,替换

How to show the DrawerLayout when sliding from left to right, no matter where?

六眼飞鱼酱① 提交于 2019-11-29 04:23:10
background google has introduced the DrawerLayout, which shows a menu on the left area of the screen when you click on the "up" button of the action bar. because the library isn't supported yet on actionBarSherlock, there is already a way to overcome it using this project . it already has variants on many apps: currents, gmail, hangouts, youtube... the question on the "currents" app (and in youtube) , when the user slides the (most-left) page from left to right , the DrawerLayout appears, no matter where the finger has started the touch . how can i achieve the same effect? maybe i should use

sliding menu using jfeinstein10 library

拥有回忆 提交于 2019-11-29 03:45:03
问题 I created a sample application to test how sliding menu works. Shown below in the screenshot is what i get as of now. But when I click on the categories button (shown in image below) I should get a secondary menu as shown in the zomato app's screenshot below. How can I do this ? Am I proceeding in the correct way or not? my SlidingFragmentActivity : @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); con = this; setSlidingActionBarEnabled(false);

Facebook SDK + SlidingMenu SDK = Jar mismatch! Fix your dependencies

百般思念 提交于 2019-11-28 07:38:39
问题 So I have added the Facebook SDK and the SlidingMenu SDK into my Android project, however I am getting those nasty "Jar mismatch" errors. I have already removed the android-support-v4.jar file from my libs folder, yet the error persists. Any ideas on how to fix this? (I have also tried deleting the files from the folders, but I get the 'file not found' errors) Image: http://i.stack.imgur.com/9JOvg.png 回答1: Delete the android-support-v4.jar from the SlidingMenu library. And copy the android

SlidingMenu from jfeinstein10 without ActionBarSherlock example

那年仲夏 提交于 2019-11-28 06:17:40
问题 The last few days I've been searching for examples on how to make a sliding menu. I've found many ways and decided that jfeinstein10's solution should work best. But the example he has, uses ActionBarSherlock which I don't want, and is also too complicated for me. I tried to find a simple example with android's action Bar but couldn't find one. Could anyone help? 回答1: You have to extend SherlockActivity , and create a menu.xml wich is your menu layout. Then just add those few lines in your

no more allow open Drawer layout from right side in navigation drawer

人盡茶涼 提交于 2019-11-28 02:19:03
问题 I want to open drawer from right side, but when swite it works but when i click on toggle button in action bar it force close and give error that " No drawer view found with gravity LEFT " please help... I add layout like <ListView android:layout_gravity="right|end" android:id="@+id/left_drawer" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentTop="true" android:divider="#ccc" android:dividerHeight="1dp" /> Error: java.lang

How to import slidingmenu on Android Studio?

点点圈 提交于 2019-11-27 18:23:38
I'm using Android Studio, and as you know, importing libraries used in current IDE like Eclipse is not easy with Android Studio. I'm trying to import the slidingmenu lib into my project but I don't know how to do it well. I've tried as they said in this link How to import slidingmenu on Intellij Idea? But I failed again. So I hope someone can answer me and show me how it works. Just so everyone knows the file structure that I am referring to (which does work): In your APP's build.gradle file make sure you have: dependencies { // Your other dependencies go here compile project(':libraries

AndroidStudio - Module Dependencies in Gradle

拈花ヽ惹草 提交于 2019-11-27 00:38:06
I have a little problem compiling an android application using module dependencies in Android Studio. So, I want my application to use the library 'slidingmenu' (link here ). Here is my application tree: Application slidingmenu (source files) slidingmenu-maps-support (source files) Here is a link to see what I mean. This is the error I'm getting. Gradle: A problem occurred configuring project ':Application'. Failed to notify project evaluation listener. Configuration with name 'default' not found. How do I specify a module dependency and where do I put the modules (inside Application or inside

AndroidStudio - Module Dependencies in Gradle

这一生的挚爱 提交于 2019-11-26 09:23:27
问题 I have a little problem compiling an android application using module dependencies in Android Studio. So, I want my application to use the library \'slidingmenu\' (link here). Here is my application tree: Application slidingmenu (source files) slidingmenu-maps-support (source files) Here is a link to see what I mean. This is the error I\'m getting. Gradle: A problem occurred configuring project \':Application\'. Failed to notify project evaluation listener. Configuration with name \'default\'