I have created a slideMenu & when i press the button to show my menu it shows above the App Bar instead of below it. I changed some of my xml props to see if i can fix it but so far no result
app_bar
app_bar_part_2
I think i know whats the problem you are facing, still i cant be sure without seeing your code.
so please try as follow,
changes need to be done in your activity xml inside NavigationView tag
android:fitsSystemWindows="false"
And check if you are having your theme set to AppTheme.NoActionBar change it to AppTheme
Hopefully this will solve your problem.
Related
I'm new to Android Studio, and I am going through the tutorials on the website.
It shows buttons in the toolbar like, 'hide constraints' 'default margins', and 'autoconnect'. But I can't find these buttons in my Android Studio.
Can anyone help me find them and make them visible in the Toolbar.
Those are visible when you use a ConstrainedLayout in your Layout's xml file.
I have a default heading where there is the application name and a drop down menu of setting.
I am new to android so i was google on how to remove it, but i was unlucky to find a proper solution.
So how can i remove the top application name(AndroidAppOnTheWay) with drop down setting tab.
I tried removing some xml lines from mainactivity.xml file but whenever i build and run my program it crashes and gives an error.
You should use a Theme that doesn't contain ActionBar
For example:
android:theme="#android:style/Theme.Holo.Light.NoActionBar"
Just make the title tag in your manifest.xml empty. This worked for me every time i need it. I don't know if this is best practise.
I cant remove the blue line present in my android application that is found available in the snapshot ,aht the mouse points at.
Please tell me how can i remove it...
I am using action bar sherlock and fragment both in the app.So I used a Theme.Sherlock
Please help me
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); before
dialog.setContentView(R.layout.ur_layout);
It seems something you missed in use of sherlock library and once you are using that lib you dont need to apply theme to your xml file ,
you have not past your code so it would difficult to say what went wrong . here i can find the one answers related to your question https://stackoverflow.com/a/13640827/501483
I am now trying to implement viewpager with fragment. Everything is cool except i got error ViewPager has not been bound.
Exception details are logged in Window > Show View > Error Log in xml graphical layout.
And Here's a screenshot of my application.
Does anyone know why there is not showing indicator line below title ?
I did this project by referring this: https://github.com/JakeWharton/Android-ViewPagerIndicator.
Go through that sample project. It will really helps you to solve your problem.
For the records, hope it saves someone some time:
The Indicator needs to be bound to the ViewPager, something like indicator.setViewPager(viewpager)
Without a theme, the ViewPagerIndicator will not work. If you don't want to use the default style, set the ViewPagerIndicator style only as described here
Issue has been solved by myself. All i need is just to add theme style android:theme="#style/Theme.PageIndicatorDefaults" in project manifest file.
How do I remove the android emulator's Status Bar inside Eclipse's Graphical Layout? My application is set to run in full screen mode, but I'm having a hard time in layouting because the status bar is present in the graphical layout of Eclipse.
You can just change the theme in the drop-down list (or perhaps better said in Android terminology: Spinner :)) at the top right corner in the layout editor to one of the *.NoTitleBar.Fullscreen options.
Edit: added screenshot.
By the way, if you have a hard time creating layouts that properly scale with or without the titlebar/actionbar, you may have to rethink if you're going down the right path. If you're developing for a specific (number of) device(s), then I haven't said anything.
you can select the theme spinner and select the "Theme.NoTitleBar.Fullscreen".
Using code:-
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
above written code placed in oncreate method
I had the same problem. In debugging process, my graphical layout was perfect on the Eclipse but not correct on my phisycal device because of the statu bar at the bottom of the graphical layout on Eclipse.
I resolved this problem modifying the Theme of the layout inside eclipe and choosing "SearchBar", as shown in the pictures below. I hope to solve this question.
See the setting on Eclipse