Linked Questions

13 votes
3 answers
28k views

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 ...
KDeogharkar's user avatar
  • 10.9k
-1 votes
1 answer
1k views

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....
Shef's user avatar
  • 1,084
22 votes
5 answers
21k views

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 ...
Krzysztof Kozmic's user avatar
27 votes
3 answers
35k views

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?
fragon's user avatar
  • 3,471
12 votes
6 answers
5k views

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)...
Sterling Duchess's user avatar
8 votes
2 answers
5k views

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 ...
davnig's user avatar
  • 342
7 votes
1 answer
13k views

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 ...
Stephen's user avatar
  • 10.1k
9 votes
2 answers
4k views

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, ...
Rapunzel Van Winkle's user avatar
8 votes
2 answers
10k views

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 ...
Mostafa's user avatar
  • 115
3 votes
2 answers
4k views

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 ...
GalaxyVintage's user avatar
4 votes
2 answers
8k views

I'm using a Material Design 3 bottom navigation bar. <!-- activity_main.xml --> <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget....
Ryan Payne's user avatar
  • 6,471
3 votes
2 answers
1k views

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() ...
WebDucer's user avatar
  • 1,144
1 vote
3 answers
2k views

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 ...
Wenger's user avatar
  • 989
1 vote
3 answers
2k views

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()....
VINNUSAURUS's user avatar
  • 1,558
18 votes
1 answer
833 views

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 ...
Hardy's user avatar
  • 2,616

15 30 50 per page