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

Displaying Deck of Cards on Android's Different Screen Sizes

I'd like to display a face up deck of 52 cards in an Android app. I have the png/svg/bitmap files and the xml layout. I'm unsure of the settings necessary that will cause the app to resize the images to fit the screen the images are being…
Auburnate
  • 437
  • 1
  • 4
  • 11
-1
votes
1 answer

Translating features from xml to java

Basically I'm trying to dynamically add buttons when I click another button When I click the "Add a Class" button I would like the "Math button to appear above it like so: Link , the "Math" button is just an example of what it should look like, it…
user3672888
  • 101
  • 3
-2
votes
2 answers

Layout overwriting

I have an arrow image in listview on right hand side. The text from other holders is overwriting on it. How can i keep a gap or space between arrow and justify all text. I was looking to configure it as no text should be aligned over…
user45678
  • 1,504
  • 6
  • 29
  • 58
-2
votes
3 answers

LinearLayout inside ScrollView not visible

I am having problem in attaching fragment to RelativeLayout when the RelativeLayout has been put inside ScrollView. Please see the xml code belove -
-2
votes
2 answers

My first LinearLayout onclick works while rest others not. why?

I am working on a big UI to show the detail of the user form. I want that if the user clicks on the LinearLayout containing the phone number TextView. I want to make a call intent. I have added the onClick() attribute to all the LinearLayouts. But…
donison24x7
  • 304
  • 1
  • 15
-2
votes
2 answers

Textview on top of tablelayout

How do i get the "Large Text" TextView above my TableLayout. (Red arrow) Also, how do i close the gap between the rows in my TableLayout. (Brown arrow)
psyko666
  • 43
  • 6
-4
votes
1 answer

Different layouts for single activity

I want to create different view states for error and success of login page. For that I want to create the singe activity (login), Which will have email and password fields. After submitting the data if I'm getting success/error then I want to…
Galaxy Patel
  • 154
  • 7
1 2 3
12
13