59,007 questions
1 vote
1 answer
67 views
Does View.getHeight/getWidth include padding?
I was under the impression that the value returned by View.getWidth() includes padding in it. I don't think I'm hallucinating things - a common line of code that Android developers write is something ...
0 votes
0 answers
46 views
How to make the lottie animation overflow?
I have a lottie Animation which i need to overflow outside the view. I have set clipChildren , clipToPadding, clipToOutilne as false for the view and its parents. But the lottie animation is still ...
0 votes
1 answer
64 views
So the nestedscrollview is scrolling before even the CollapsingToolbarLayout starts moving or collapsing
So where i write Textview or imageview are real items so when i scroll the nested scroll will start scrolling specially all my 3 recycles are there i tried many ways did not really solve my problem so ...
1 vote
1 answer
62 views
ConstraintLayout v 2.2.1 not filling screen
Yet another SO question about ConstraintLayout and positioning. I have been having trouble with a particular layout, so I decided to go back to the basics and see what I'm not understanding. Copied ...
Advice
0 votes
0 replies
18 views
Fill Parent pushes underlying elements outside of the screen
I'm new to Android and am making a simple app for personal use. The layout I want to get is a button on the top, followed by a scroll view, followed by 2 other buttons that are always locked at the ...
1 vote
0 answers
77 views
Why the inflation time for a custom view is so long in Android using java xml?
problem The time it takes to inflate is around 15ms ~ 8ms for a custom view, which is super long. long startTime = System.nanoTime(); LayoutInflater.from(context).inflate(R.layout.view_profile,...
2 votes
1 answer
73 views
How does VectorDrawable scaling affect rendering performance?
I’m trying to understand how VectorDrawable rendering works in Android in terms of performance. Suppose I have a vector resource defined like this: <vector xmlns:android="http://schemas....
0 votes
1 answer
49 views
WFF Condition Configuration Tag
I'm trying to configure a watch face I am working on. I can't seem to make the condition work. The Condition documentation is hard for me to understand - with lack of examples (online and in-...
0 votes
0 answers
53 views
Android BottomNavigationView overlaps list inside Fragment — how to add bottom spacing?
I’m having an issue with a Frame Layout inside a Fragment that also contains a Google Map and a BottomNavigationView. Here’s my setup: A BottomNavigationView is anchored to the bottom of the screen. ...
-1 votes
1 answer
53 views
Android Studio Multiline Text increase height or line when typing on new line
I want to increase Multiline Text height when user adding new line. Currently I use contraint layout and put 2 Multiline Text in it. The 2 Multiline Text is put on 2 rows with default 3 line size. I ...
0 votes
1 answer
87 views
Scrolling behaviour of AppBarLayout does not work with multiple inside layouts that show depending on bound data
I have a structure with a Toolbar, then an AppbarLayout containing a Tabbar and some additional area and below the AppbarLayout I use a Viewpager. The additional area should collapse when I scroll in ...
0 votes
1 answer
65 views
Buttons layout to be rearrange after hiding any one so fill the first row first
I have six button in two Linear Layouts, three in each linear layout. But If I hide any button from any Linear layout they are rearranged accordingly in the same linear layout. But I required the If I ...
0 votes
0 answers
64 views
Why does my Android EditText context menu display incorrectly?
My Android game (NativeActivity) opens a system dialog with an EditText field for text entry. The dialog opens fine and the text is editable, but when I select some text in order to cut/copy, the ...
0 votes
1 answer
25 views
Layout attributes styling via a theme not working for buttons
The following is in AndroidManifest.xml: <application android:theme="@style/FooAppThemeStyle" ... > In style.xml: <style name="FooAppThemeStyle&...
0 votes
0 answers
11 views
How do I override onPreferenceChange for a single item in a MultiSelectListPreference?
I'm modifying some code (which I didn't write) which uses a MultiSelectListPreference defined with xml (I would have done it with code) like this:- <MultiSelectListPreference ...