navigation-drawer

Android Navigation View transparency

為{幸葍}努か 提交于 2019-12-11 03:01:34
问题 everyone. Is it possible to make Navigation View transparent? I have custom layout and try to set 50% transparent background for this layout, Navigation View or Drawer Layout . android:background="#80000000" but it doesn't give expected result. Anybody tried to do this? I would appreciate help. 回答1: you can try: navigationView.getBackground().setAlpha(122); Here you can set the opacity between 0 (fully transparent) to 255 (completely opaque). you can also use XML value alpha that takes double

Using DrawerLayout with Fragments and getting up navigation working

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 02:51:20
问题 I am using a DrawerLayout as the way to navigate the various screens of my app. I have a few different items in the drawer such as: News Photos Events Menu Each one of those is a Fragment (mostly ListFragment ), and then you can navigate deeper by tapping a row in the list to take you to another Fragment . E.g., seeing a list of photo galleries, then tapping one of them and it will show the photos. I am able to tap the drawer icon or slide from the left to show the drawer and choose any of

NavigationDrawer with Activities

依然范特西╮ 提交于 2019-12-11 02:37:12
问题 Currently in my application i have a navigation drawer. When i began working on it i discovered that many people used fragments instead of activities, however, i needed to work with activities as i realised you weren't able to put fragments within fragments which i would need later on in development. However, the issue is that by using activities, when i click on a new page from the navigation drawer there isn't a smooth animation as of course the activity has to load up again. Is there any

Programmatically Modify ActionBarDrawerToggle Drawable

我的梦境 提交于 2019-12-11 02:33:39
问题 Does anyone know a way to get the drawable that is used for the ActionBarDrawerToggle after setting it in the constructor by resource ID? I am using a navigation drawer and I want to apply a color filter to the icon programmatically, but I can't figure out how to access it as a drawable. Any help would be appreciated. Thanks! 回答1: As the framework's ID for that View is hidden, the only way I've found to access it is by walking through the hierarchy based on the Home View's position in it.

Add EditText on Navigation Drawer Android

风格不统一 提交于 2019-12-11 02:27:05
问题 Im working on a new app with Navigation Drawer (Using Android template). But I want replace the default listview with another views. SOLVED: I have to edit my .java code to modify the createView method to match with my layout. Thanks for all QUESTION: My class extends from ActionBarActivity and implements NavigationDrawerFragment.NavigationDrawerCallbacks I want make some like this: --------- EDITTEXT --------- (separator) (ListView with Links) Link 1 Link 2 --------(separator) (ListView with

How to lock navigation drawer?

扶醉桌前 提交于 2019-12-11 01:42:28
问题 In my application I am using navigation drawer and It works fine,but what I am trying to do is when Internet is not available user should not able to open navigation drawer,can any one help me how to solve this issue,the code for navigation drawer is given below.. public class MainActivity extends Activity { private DrawerLayout mDrawerLayout; private ListView mDrawerList; private ActionBarDrawerToggle mDrawerToggle; AlertDialogManager alert = new AlertDialogManager(); SessionManager session;

Navigation drawer is always inflated

六眼飞鱼酱① 提交于 2019-12-10 22:59:29
问题 I was trying to add 3 fixed tabs and a navigation drawer... But when i run the app the navigation drawer is always open and when i click on items of navigation drawer it force closes the app with following error java.lang.IllegalArgumentException: No drawer view found with gravity LEFT Mainactivity.java public class MainActivity extends AppCompatActivity implements FragmentDrawer.FragmentDrawerListener { private static String TAG = MainActivity.class.getSimpleName(); private Toolbar mToolbar;

Navigation Drawer Below Transparent Actionbar

天大地大妈咪最大 提交于 2019-12-10 22:29:34
问题 I'm getting a transparent Actionbar by using the following code that @GunnarKarlsson shows here: Transparent Actionbar: custom tabcolor getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY); ActionBar actionBar = getActionBar(); actionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("#330000ff"))); actionBar.setStackedBackgroundDrawable(new ColorDrawable(Color.parseColor("#550000ff"))); It works pretty much perfectly with the exception of how it affects the navigation

How to navigate to different activities through the navigation drawer

こ雲淡風輕ζ 提交于 2019-12-10 22:27:04
问题 I have a problem in which I know how to add a navigation drawer. However, I do not know how to link my activities with it e.g. if I click the help button on my navigation drawer how do I take it to the help page? This is my MainActivity: public class MainActivity extends ActionBarActivity implements NavigationDrawerFragment.NavigationDrawerCallbacks { /** * Fragment managing the behaviours, interactions and presentation of the * navigation drawer. */ private NavigationDrawerFragment

How to set transparency of Navigation drawer background?

半世苍凉 提交于 2019-12-10 21:33:27
问题 I need to be able to set the background as completely transparent. Seems no one has tried it before . Please help. If Im correct we need to make framelayout backgrund totally transparent . But no effect taking place on doing it. Thanks for all your reponses , but none ofthem seems to be working so far. To clarify further , I need to make the background below the listview to be transparent. That is, when the drawer is opened completely .There is a partial screen from the below activity that is