Questions tagged [xml-layout]

Android uses xml files to layout its components on a window.

Android uses xml files to layout its components on a window.

187 questions
0
votes
0 answers

set Layout below CustomViewPager container

I want linear layout exactly below to CustomViewPager container. I have tried following code but doesn't work. Main parent Layout to this both is CoordinatorLayout.
H.P.
  • 1,181
  • 1
  • 13
  • 26
0
votes
1 answer

how to display all items in the listview

I'm trying to include a ListView on a screen that already exists in my app. My problem is that the ListView is displaying only the first item. I wish it were displayed all the list. Here is the my screen's xml:
0
votes
2 answers

Display passed parcelable data to xml layout in Android

Despite checking many questions in stackoverflow and google, i could not find the solution to this problem. Can someone post and explain a sample code how to use parcelable in Android with multiple data and how it will be passed and displayed in an…
0
votes
4 answers

Error after publish apk on Play Store

If i run the app direct of Android Studio to my smartphone the app works correctly but if downloaded my app on Play Store, the app stop and show me the follow errors: android.view.InflateException: Binary XML file line #25: Binary XML file line #25:…
0
votes
1 answer

width=wrap_content, height=wrap_content for the root element of layout in android

If i put android:layout_width="wrap_content" android:layout_height="wrap_content" for the root element of layout of activity and put a border around it. It works and the border is visible in API 19. Does it work in all apis ? What is the…
Shreyans jain
  • 559
  • 6
  • 18
0
votes
1 answer

How to edit android layout code template

When I edit layout.xml I input "<"Text and press Ctrl+Space, see TextView in a list and press Enter to add TextView-element on the file. IDE insert the following: How to edit this code…
ilyamuromets
  • 403
  • 1
  • 7
  • 18
0
votes
0 answers

place images around a circular image in android

I want to place images around a circular image and distributed equally and compatible for various screen sizes and i tried this link https://github.com/sababado/CircularView where as now i am facing problem which says Error:Execution failed for…
Naveen Kumar
  • 31
  • 10
0
votes
4 answers

LinearLayout doesn't show view

I'm using a LinearLayout that doesn't show every view. This is the xml-code:
Sebastian Schumann
  • 3,204
  • 19
  • 37
0
votes
1 answer

Form program generated layout to XML layout in android

Recently I studied code from android example, it is record audio example, and there are two custom classes extend button eg.RecordButton and PlayButton The code is like: public class AudioRecordTest extends Activity { private static final String…
user3538235
  • 1,991
  • 6
  • 27
  • 55
0
votes
1 answer

TextView over and exactly centered of an imageView. Results centered on some devices but in case of 4.4 , TextView is center_horizontal at upperside

Textview is only center_horizontal in case of v4.4 devices at upper side of single row and In case of v4.1 and v5.0, textView is exactly centered. I had checked these sorts of question in StackOverflow but no answer solved the issue. Please, check…
0
votes
1 answer

Layout weight within scrollview

I have a Scrollviewas my parent container which contains a map, and then some information below the map. It currently looks like the image below. I'm trying to make it so that the map takes up half of the screen using layout_weight but I've had no…
Rafa
  • 3,219
  • 4
  • 38
  • 70
0
votes
0 answers

AndroidGame - SurfaceView splitting? - BattleView

I am trying to create a game with a battleview like in Pokemon or Final Fantasy. Right now I got a SurfaceView, which handles all the overworld stuff, like running around, changing the location, etc. Should I create another SurfaceView and another…
Gooby
  • 1
  • 5
0
votes
3 answers

How to use RadioButtons instead of Checkbox in below expandable ListView

How to replace the checkbox in listview with radiobuttons that can be only selected one at a time. Any idea ? Below is my working code MainActivity.java public class MainActivity extends ExpandableListActivity { private static final String…
Christine
  • 329
  • 1
  • 4
  • 13
0
votes
1 answer

xml layout: distance between the components not even

I am trying to place my TextView items with the same distance between each others but the distance is not even. I used "android:layout_marginTop" to manage it but without success. I appreciate any help.
Mr Asker
  • 2,300
  • 11
  • 31
  • 56
0
votes
1 answer

Android Studio Beta 1.2 issue formatting xml-layout

Recently I’ve upgraded from Android Studio 1 to Android Studio Beta 1.2. And among other issues, it seems that the shortcut (Option + Command + L) for formatting the xml-layouts it doesn’t reorganice code any more. In the previous version of…
Víctor Albertos
  • 8,093
  • 5
  • 43
  • 71