xml-layout Questions
1
I'm trying to use some fragments within jetpack compose but I can not import AndroidViewBinding from (androidx.compose.ui.viewinterop) and it is always appearing as an unresolved name
how to import...
Laureen asked 22/12, 2022 at 7:37
2
Solved
I am getting this type of warning
@id/order_row_date can overlap @id/order_row_amout if
@id/order_row_date grows due to localized text expansion.
If relative layout has text or button items aligne...
Illustration asked 12/10, 2016 at 10:36
5
I thinks it's probably not possible for security reason but just want to be sure: is it possible to create layout in Android from an external XML file?
To be exactly: I'm creating XML output with ...
Andrel asked 4/7, 2011 at 20:52
8
I have a very simple shape that I want to set the width of:
<shape android:shape="rectangle">
<solid android:color="@color/orange"/>
<size android:width="2dp"/>
</shape>
...
Aubrey asked 3/5, 2012 at 15:27
1
Solved
I'm trying to place an icon top left of an image using Constraint Layout but it needs to be offset from the center of its sides. Like in the pictures:
This is what I've got so far:
This is the...
Tolle asked 12/1, 2019 at 15:31
1
Solved
I am unable to scroll nestedScrollView because of viewpager. So let me explain here is layout design that i want to create:
There is FrameLayout inside NestedScrollView and a viewpager with ta...
Laager asked 19/12, 2017 at 13:15
1
I have a layout that looks like this .
When i click on the editText the screen keyboard push up all the content.
I want the header (orange area) to stay fixed and shown in the top of the screen...
Spelter asked 21/10, 2017 at 11:55
5
Solved
I am working on some ListView I want to display a Button under it I am using the following code but that is not working.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:androi...
Berard asked 22/6, 2012 at 16:38
5
Solved
I have a fragment named HostFragment which nests one to four other fragments.
This is the layout of HostFragment:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http...
Flabbergast asked 17/9, 2015 at 1:45
3
Solved
I imagine this should be a fairly easy one to answer, if you understand XML Layouts better than I do that is. I don't seem to get what I was thinking I should when using the match_parent layout_hei...
Violaceous asked 18/8, 2013 at 13:27
11
My current simple XML is below, however i would like the 3 TextViews within it to be circular, rather than rectangular.
How can I change my code to do so?
<?xml version="1.0" encoding="utf-8"?...
Rhoea asked 8/8, 2014 at 12:26
4
Solved
In My android xml layout i am applying the border by using the borderframe.xml as a background.
borderframe.xml file is looks like below:
<?xml version="1.0" encoding="UTF-8"?>
<shape
...
Letourneau asked 6/12, 2011 at 11:57
2
Solved
I'm learning about custom components and i'm having some trouble with custom xml attributes.My custom component extends LinearLayout and in the constructor(public Custom(Context context, AttributeS...
Zeculon asked 19/9, 2011 at 14:24
1
I have written an custom ViewPager but it's not generating event for Continuous Action.Move. On touch it generate DOWN once and MOVE event 2-3 time and that's it. Then after it not generate MOVE ev...
Harcourt asked 19/2, 2015 at 12:3
4
Solved
I need two navigation buttons with their texts are < and >. However, the compiler doesn't allow me use those symbols, even if I use \< and \>.
Is there anyway to put these symbol into ...
Fancywork asked 25/5, 2011 at 13:24
2
Solved
I am facing a strange problem, I have added a Custom row in my ListView when I am removing the Button row is selectable, but as I add Button I am not able to click the row, please see the xml below...
Brabazon asked 20/4, 2013 at 11:10
2
Solved
I have one ImageView and a TextView in my xml layout. I want to show the text below that i got by webservice on the right side of the ImageView. Can i show that text by using that one TextView ?
...
Cyanate asked 23/11, 2012 at 10:14
1
Solved
We are writing an app targeting ICS+ and believe a GridLayout is the best layout paradigm, but it seems very little has been written about it, and we are having some alignment issues.
<GridLayo...
Laurentian asked 11/9, 2012 at 22:51
3
Solved
In the /res/values folder of my android project i have a string and that is referenced in a text view in my xml file, i want to change the string in my java file.
As you can see below in the code ...
Prevision asked 2/1, 2012 at 1:4
3
Solved
I included second layout to first layout like this:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/androi...
Underlaid asked 21/12, 2011 at 12:31
1
© 2022 - 2024 — McMap. All rights reserved.