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
1 answer

What is the shortcut for switching XML view?

Can anyone tell me how can I switch between these 3 tabs using keyboard shortcut? Earlier it was working with alt + shift + left/right arrow But now with android studio's new version, it is not working. I am using Ubuntu, but these shortcuts are…
Kishan Solanki
  • 13,761
  • 4
  • 85
  • 82
0
votes
0 answers
0
votes
1 answer

Custom view onTouch breaking onTouch in other views if added using XML layout

I'm developing a game, and I have a custom view Joystick which haves a onTouch event. I also have a ImageView which also haves onTouch for shooting. If I add the views programatically using java code to a main relative layout, the onTouch of the two…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0
votes
1 answer

How to I prevent squeeze of item inside layout during scale animation?

I am using scale animation in Android relative layout , where I have a button and need to scale it to small size at one end . I have used scale animation and it works fine , but it does have an icon which gets squeezed and its shape gets altered . I…
Yatin
  • 2,969
  • 9
  • 34
  • 68
0
votes
1 answer

Define view to be scrolled over in xml at start

I load a smiliar layout when my fragment starts:
roncsak
  • 618
  • 1
  • 8
  • 21
0
votes
1 answer

Google Blogger XML Layout Error For Designing Theme

I want to divide the Header area into two parts (No - Logo & No - Ad Area) using Google Blogger XML Layout. When I trying to save my XML codes the Blogger HTML Editor is showing an error -- The widget with id logo is not within a section (actual…
0
votes
1 answer

Custom shaped button in android

I want to create a custom shaped button like this: I'm able to achieve a similar thing by using a RelativeLayout and overlapping a rectangle and a circle. But that way, I have to add 2 onClickListaners, one for each shape. Is there a way in…
mrid
  • 5,782
  • 5
  • 28
  • 71
0
votes
1 answer

How to load large xml layouts faster in android

I have a xml layout that contains almost 60 TextViews, 30 EditText, 60 CheckBoxes and some background xml shapes for form designing. Now my Activity is taking 2-3 seconds to load on lollipop with 2 GB RAM. So far I didn't have implemented anything…
kamranbhatti585
  • 232
  • 2
  • 16
0
votes
0 answers

android studio migrated code binary xml issue coming

I have done successfully for eclipse code to android studio migration. for past two weeks. that code is working fine.but, suddenly, the home page( landing page, contains 10 menu options available with background image setted ) entered getting app…
harikrishnan
  • 1,985
  • 4
  • 32
  • 63
0
votes
1 answer

Android : onTouch event trigger movement of other object.

I am developing an android application with custom layout as below with a button on left hand side of the screen by default on load of the page. When user clicks swipe button from left to right. The application will display a custom layout as…
Chan Yoong Hon
  • 1,592
  • 7
  • 30
  • 71
0
votes
0 answers

Image look pixelated in recyclerview

I am trying to make a simple recyclerview with image on left and text on right so i gave image width and height of 70dp both and i used png image 1000x1000 exported from illustrator using export for screens(android), but it's showing edgy tried with…
Misterrai
  • 77
  • 1
  • 9
0
votes
2 answers

Android: Two-line list view with radio buttons, can’t select items

I would like to display a list of paired Bluetooth devices and let the user select one. I’m trying to create a two-line list view (one line for the friendly device name, the other for the MAC address) with radio buttons. To this end I have copied…
user149408
  • 5,385
  • 4
  • 33
  • 69
0
votes
1 answer

Layout preview and actual device do not match

I don't know why this is happening. I bet it's something real simple but I could not figure out why. I have a comment activity with a Relative Layout as a parent and a RecyclerView as well as a Linear Layout (with 2 children: an edit text and a…
0
votes
2 answers

ListView inside ScrollView in android

I'm having the listview inside the scrollview when I'm running the app list is scrolling limited to the first item. I think the Scrillview is overriding scrolling of listview here is my code:
Kunal Dudka
  • 467
  • 1
  • 6
  • 14