android-layoutparams Questions
16
Getting Unknown attribute error on all android tag.
In layout XML, Auto suggestion is not showing all attributes (like layout_width, layout_height, orientation, orientation & all others andro...
Chasitychasm asked 10/2, 2016 at 6:57
5
Solved
I have a relative layout which I am creating programmatically:
RelativeLayout layout = new RelativeLayout( this );
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutPara...
Creationism asked 9/1, 2011 at 11:12
4
Solved
I have a CardView in my XML layout and I need to set margins to it programmatically (This is because I don't need margin at all times. Based on few conditions, I either set or remove the margin).
H...
Synder asked 28/5, 2017 at 3:15
4
Solved
I want to remove and add constraint programmatically based on some condition. Here are the screenshots:
and I want to remove it like this but in code:
so the same effect in want to achieve pr...
Polypus asked 21/6, 2017 at 20:35
1
According to the documentation:
The index of the horizontal keyline specified to the parent CoordinatorLayout that this child should align relative to.
Can anyone explain how the 'keyline' wor...
Resoluble asked 22/4, 2018 at 11:0
6
Solved
I trying to create a view that is above other applications:
WindowManager.LayoutParams paramsDirectorView = new WindowManager.LayoutParams(
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager...
Impresa asked 14/9, 2017 at 0:55
1
Solved
I am attempting to add a view I am generating via a service. The code I am using is based on Facebook Chatheads which are always visible, regardless of the apps state. They are also displayed above...
Requital asked 12/11, 2017 at 1:24
1
Solved
I can programmatically modify constraints of a view in a ConstraintLayout using ConstraintSet but before applying modifications, I want to test that it hasn't been done already. To do this I need t...
Nonessential asked 18/8, 2017 at 14:40
0
Is it possible to specify the z-order of each window ? in the image below each editText are in their own window added via WindowManager. as you can see i have a z-order problem
like you see on ...
Affettuoso asked 28/5, 2017 at 20:13
4
Solved
Full code here
Video of correct behavior in java and incorrect in react native here
I have modified a linear layout to respond to touch by resizing the left child while the right child takes up t...
Terranceterrane asked 13/8, 2016 at 16:33
1
You can add the app:layout_behavior="@string/appbar_scrolling_view_behavior" behavior to a LinearLayout in the XML declaration but I haven't found a way to do the same in code. With a CoordinatorLa...
Grime asked 22/7, 2016 at 15:26
2
I'm following nice repo which shows how to make custom behavior of collapsing toolbar WhatsApp-ProfileCollapsingToolbar.
What I don't like is when picture below toolbar (toolbar's font is white) i...
Binocular asked 13/5, 2016 at 13:57
0
I have read the standard Windows-related documentation and pawed through
a bunch of the source code in an attempt to understand how and when Android
Windows are created. I believe I have my arms ar...
Espresso asked 9/12, 2015 at 18:49
1
Solved
How to set android:layout_alignParentRight="false" programmatically? I can set it to true by this code but I want to set it to false programmatically:
RelativeLayout.Layoutparams params =
(R...
Artwork asked 5/4, 2013 at 19:19
1
© 2022 - 2024 — McMap. All rights reserved.