Linked Questions
27 questions linked to/from How to get the ActionBar height?
13 votes
3 answers
28k views
Get the Height of ActionBar [duplicate]
I am using Actionbar in my application.I want the Height of the ActionBar programatically hence I am using : ActionBar.getHeight(); But I am getting 0 value of Height. So How can I get the Height ...
-1 votes
1 answer
1k views
Android Action Bar Height returns 0 even though action bar is visible [duplicate]
I'm having an issue where no matter what I try getActionBar().getHeight() always returns 0. the action bar is clearly visible , so I don't know what might be causing the issue. System.out.println(lP....
22 votes
5 answers
21k views
Translucent system bars and content margin in KitKat
I'm trying to take advantage of the new KitKat translucent system bars, to get a full screen image in the background of my app. I'm having problems figuring out the right settings to get the ...
27 votes
3 answers
35k views
Android navigation bar size in xml
Is there any way to get the size of navigation bar in android in xml file similar to this? android:paddingTop="?android:attr/actionBarSize" where actionBarSize is navigation bar size?
12 votes
6 answers
5k views
Get real x and y coordinates of users touch
I need to map onTouch event's X, Y coordinates to the Bitmap X, Y coordinates inside the ImageView to do this I use the following approach. However this approach seems to only work when I either: a)...
8 votes
2 answers
5k views
PreferenceFragment overlaps toolbar
As the title, my PreferenceFragment overlaps my toolbar. I've already tryed different solutions but the problem persists. Hopes in any help. Here is my code. Activity import android.os.Bundle; import ...
7 votes
1 answer
13k views
Hide only the Action bar on Scroll not action bar tabs
I am getting an issue at trying to hide the action bar while scrolling down.Then while scrolling up,the action bar have to shown again. For Eg: I referred this Tutorial.Here you can see the output ...
9 votes
2 answers
4k views
Scrolling to last item of a recyclerview with a collapsing toolbar
I've got a CoordinatorLayout which contains a CollapsingToolbarLayout and a RecyclerView. Everything looks the way it's supposed to, except that when I try to scroll to the last item programmatically, ...
8 votes
2 answers
10k views
Set height of Toolbar half of attr/actionBarSize in xml
Is there anyway to set height of a "android.support.v7.widget.Toolbar" half of a predefined attr like "?android:attr/actionBarSize" in layout xml file? in fact I want the height of my toolbar be ...
3 votes
2 answers
4k views
Creating a textView below an action bar
I am quite new to android programming. As I follow the tutorials here,https://developer.android.com/training/basics/actionbar/overlaying.html.. I have a problem. When I enable the action bar overlay ...
4 votes
2 answers
8k views
How do I get the bottom navigation bar height for Material Design 3?
I'm using a Material Design 3 bottom navigation bar. <!-- activity_main.xml --> <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget....
3 votes
2 answers
1k views
Android: Split ActionBar real parent height
I use the action bar (origin android, not ABS) and position my views relatively on the root layout (RelativeLayout). To calculate the relative position on the screen I used the getParent().getHeight() ...
1 vote
3 answers
2k views
Actionbarsherlock getHeight() returns 0
I'm using Actionbarsherlock and I want to place a PopupWindow right below the action bar. Using the showAtLocation() takes an x and y offset, so ideally the y offset would be the height of the action ...
1 vote
3 answers
2k views
How to get Navigation bar Height in Xamarin Android?
how to get top navigation bar Height in Xamarin Android? below is the java code public static int getSceenHeight(Activity activity) { //obsolete now return activity.getWindowManager()....
18 votes
1 answer
833 views
Parallel animation in Imageview
I want to implement animation like the below image. I have already used ThreePhaseBottomLibrary and as per my experience animation should go parallel as per above image when I scroll it up! Below ...