Hello guys, this post will teach you how to add both Left and Right Navigation Drawers in your Android App. You may need one Nav Drawer on the right to give your users a different set of options, not to distract them from the main navigation items on the left. I have used Android Studio 1.5.1 Build 141.2456560 . So here we go. 1) Navigation Drawer Activity When creating a New Project, choose Navigation Drawer Activity. This makes things easy. If this option is not available, you can the simply choose Blank Activity and later make the project structure similar to Navigation Drawer Activity. See the layout files here . If you run the app at this point, you will see the Left Nav Drawer. 2) Navigation Views As you can see I have added 2 Navigati...
By : Developers of VIT Slate 1. Libraries: Well, the whole developer community will agree that without libraries our life would have been hell. But when it comes to using them, you have to customize the functionalities which the library gives you. I agree that the documentation with which a library comes is good. Still, using them will be an effort saving another effort. While developing VIT Slate, the greatest library that I came across is CardsLibrary [verify the name] by Gabriel. It was easy to customize but there were some libraries which literally gave me real pain !!! 2. Hardcoding: We just don’t hard code! Android comes in all shapes and sizes and that’s the reason never hard code any dimension for a UI element. I hard coded an image’s dimensions in VIT Slate and someone came and asked me why is this pic in team section so small. And I was saying to him, “Can you please move, I want to hit my head against the wall because I hard coded.” 3....
Comments
Post a Comment