Questions tagged [layout-xml]
16 questions
185
votes
6 answers
Difference between app:srcCompat and android:src in Android's layout XML
Whenever I create an ImageView with icon added using Android Studio's Vector Assets, I'm getting an error at the line app:srcCompat="@drawable/ic_play"
When I change the app:srcCompat with android:src, the error is gone but the icon looks pixelated.…

Zayid Mohammed
- 2,275
- 2
- 10
- 17
8
votes
7 answers
Magento - move block from right to left
Not sure why this is so difficult. If I understand THIS correctly, I should be able to swiftly accomplish my goals... But no joy.
So - I'm building my first theme, and still getting my head around layout...
I'm working specifically on the Catalog…

Bosworth99
- 4,206
- 5
- 37
- 52
6
votes
2 answers
Android: reference style parent
I want to write a custom style for a horizontal ProgressBar.
If you want to add a horizontal ProgressBar, it needs to reference the system style like this:

Terry
- 14,529
- 13
- 63
- 88
5
votes
1 answer
sharing template between frontend and backend (admin or adminhtml) in magento
I wish to reuse a certain frontend UI element on the backend (under "design/adminhtml"). This would mostly consist of reusing the template (phtml). However, referencing the frontend layout handle from the backend would seem even better. Does magento…

coriscus
- 53
- 2
- 3
3
votes
1 answer
Load external Javascript before skin Javascript in Magento
I'm trying to add the Google Maps Javascript API to my Magento module.
The problem I'm having is that the core/text block that I am including, that contains the external Javascript inclusion tag, only ever appears after all of the addJs…

Wildcard27
- 1,437
- 18
- 48
2
votes
2 answers
Which Magento Domain Objects Use Layout XML Updates?
Is there a canonical list (public or private-that-you're-willing-to-share) of Magento objects (and their database persistance tables) that allow you add Layout XML Updates to the system? I realize there's an almost infinite number with third party…

Alana Storm
- 164,128
- 91
- 395
- 599
1
vote
2 answers
Rendering issue /Found cyclical chain in one layout of project - Android Studio
I am working in Android Studio. It is android version 2.3.2, 7.0 (nougat) and API 25. For my layout/XML file I am getting Rendering Problem and also Found cyclical chain: activity_maps includes activity_maps.
I have looked at other StackOverflow…

Sal
- 15
- 7
1
vote
2 answers
Change listview layout if empty
I use an adapter to set the item layout and to populate a ListView from a JSON string. Sometimes this JSON is empty and there aren't any rows into the ListView and it's full blank.
In this case, I want to change the view and pass another layout…

Simone
- 311
- 4
- 16
1
vote
1 answer
Android, CustomView Layout not showing
I've done this before with no issue so i know my mistake is subtle.
picker_dialog_layout.xml:

Simon.
- 1,886
- 5
- 29
- 62
1
vote
1 answer
how to dynamically create xml layout multiple times inside getview() method in android?
I have already created xml-layout file which contain View like comment box. I want to create dynamically layout (comment box) multiple times inside getView() method. How can i create it dynamically inside getView() method?
Here inside getview()…

Malay
- 101
- 9
0
votes
2 answers
magento - layout update xml to add remove or modify element class names
I've been trying to figure out some layout update xml directives to add, remove or otherwise modify css attributes for elements. Something like:

Bosworth99
- 4,206
- 5
- 37
- 52
0
votes
1 answer
Magento - render phtml template file from layout update xml
I'm putting together my first Magento theme. Wee.
This site will have a large number of static pages, and I'm trying to determine the best method of getting that content into the system in an easily maintainable way. Ideally, this process can be…

Bosworth99
- 4,206
- 5
- 37
- 52
0
votes
1 answer
Error using addCustomView in CRM 2016
There are two entities in the CRM, 'Contacts' and a custom entity called 'Services', that are connected with a many-to-many relationship. On a separate form, in the entity 'Service Activity', there is a service field and a contact field. My goal is…

Carlos Farmer
- 67
- 11
0
votes
1 answer
Android :: Layout Weight and ImageView
PROBLEM
I want to adjust ImageView base on percentage or weight but it can't.
Main Layout consists of 2 Layout inside,they equivalent to 1st row and 2nd row.
In the 1st row there are another 4 layout inside each one have an ImageView.
I want these…

Jongz Puangput
- 5,527
- 10
- 58
- 96
0
votes
1 answer
How to use Layout Inflater with CardUI
I'm working with the CardUI found here.
I would like to inflate these cards with my own layout xml but I do not understand how to.
Here is code for the MainActivity creating the cards
MyCard facebookCard = new MyCard("Continue with…

Sammy Kumar
- 121
- 3
- 15