navigation-drawer

Android-like Navigation Drawer for iOS? [closed]

人盡茶涼 提交于 2019-12-03 02:02:57
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm looking for a way to implement in iOS something that works as closely as possible to the Android Navigation Drawer. That's basically a menu panel that slides in from the left and over the current view. I've looked at using ECSlidingViewController, MMDrawerController, etc. but I'd really want a drawer that

Android Navigation Drawer and windowActionBarOverlay = true

三世轮回 提交于 2019-12-03 01:58:41
问题 I'm trying to implement the new Android Navigation Drawer in my application. I have created a BaseActivity.java that handles the Drawer setup and listeners, and I have two subactivities that extend this base class. On the second activity, I plan to use a different action bar style, using the following attrs: <item name="android:windowActionBarOverlay">true</item> <item name="android:background">@android:color/transparent</item> to make the action bar transparent, and make content richer, as

Set Background Color of Navigation Drawer

泄露秘密 提交于 2019-12-03 01:03:11
I wanted to set the background color of my Navigation drawer in java but it seems as setBackgroundColor and all similar methods have no effect. Only the XML line android:background="@color/mycolor" is working. If remove the xml line and try one of the methods the drawer just stays transparent. Any ideas? In your activity_main.xml include the following <android.support.design.widget.NavigationView android:id="@+id/navigation_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" app:headerLayout="@layout/navigation_drawer_header" app:menu="

How to make background Activity smaller while opening the Navigation Drawer?

送分小仙女□ 提交于 2019-12-02 23:53:57
I want to make my background Activity a little bit smaller while opening the Navigation Drawer , Simulate the effect that exists in the Airbnb application. I guess the best explanation would be a screenshot: But the point is not to make the View just smaller, but to make it an animation that is synchronized to the Drawer Open/Close animation. So if you started to open the Drawer an in the middle decided to stop and go back, the background Activity scale will be affected accordingly. How can this be done using the build in DrawerLayout? Is there some implementation for this? You can perform

Background image dimension for Navigation Drawer header

 ̄綄美尐妖づ 提交于 2019-12-02 23:22:35
Basically I liked the background used by Mr. Jonathan Lee for Navigation Drawer header back ground in google official link http://www.google.com/design/spec/patterns/navigation-drawer.html#navigation-drawer-content So I wanted to reproduce something similar inspired by that. I believe that I need to make a similar design in photoshop and set it as the background image. But the question is, what should be the dimensions and pixels so that it matches different kind of devices? The above link has guidelines for icons and margins, but I haven't seen any dimensions mentioned for that background.

Navigation drawer forces app name and icon to appear shortly on startup

雨燕双飞 提交于 2019-12-02 23:17:19
问题 Each time I start the app, the application name and icon appears very shortly on the left side over the drawer icon. This ruins the look of the custom ActionBar style. How can I remove it? I already tried the top solution from StackOverflow, but they all refer to completely hiding the ActionBar . I don't want to hide it as I need it. I just don't know where to turn off this irritating display. Note: I've let the Android Studio create the Navigation Drawer project for me so all the code came

ActionBarDrawerToggle is not setting Drawer Indicator

可紊 提交于 2019-12-02 23:09:35
I am trying to add the navigation drawer in my app.. Everything is working fine But now I still got the arrow icon although I replaced it with the ic_drawer from Android? Here's my code: private ActionBarDrawerToggle mDrawerToggle; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); DrawerLayout mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); ExpandableListView mDrawerList = (ExpandableListView) findViewById(R.id.left_drawer); mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow,

How to select the first item in a navigation drawer and open a fragment on application start

时间秒杀一切 提交于 2019-12-02 22:56:19
I have created MainActivity with NavigationView . When Activity is opened I want to automatically select the first item in the navigation drawer and open Fragment under that item. I've searched a lot but didn't find any proper solutions. What is the proper way to do this ? Main Activity : public class MainActivity extends AppCompatActivity implements Config { private NavigationView navigationView; private DrawerLayout drawerLayout; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar =

Clicking hamburger icon on Toolbar does not open Navigation Drawer

大城市里の小女人 提交于 2019-12-02 21:51:19
I have a simple android.support.v7.widget.Toolbar and all I am trying to do is to open a NavigationDrawer by pressing the "hamburger" icon in the top left corner. The "hamburger" button is visible, and when I start to pull from the left I see the animation on the button but pressing the button does not open/close the NavigationDrawer as I expect. I have followed the [Google Documentation][1] and still am not able to figure this out. Sorry for any confusion, below is the simplified code I am currently attempting to use: public class MainActivity extends AppCompatActivity implements View

Drawer toggle not working as expected (icon remains the same)

烈酒焚心 提交于 2019-12-02 21:21:12
问题 I'm trying to implement an ActionBarDrawerToggle into my app but I can't make it. I've achieved to show the toggle in my toolbar, but the icon is the same always. This is toggle's icon when drawer is closed: http://i.stack.imgur.com/HTcom.png And this is when drawer is opened: http://i.stack.imgur.com/dX0Z2.png As you can see, it doesn't change from ic_drawer to back arrow. ic_drawer is never shown. So, here's my activity: @Override protected void onCreate(Bundle savedInstanceState) { super