Questions tagged as 'android-layout'

2
answers

How to use only the Android Studio Interface Editor?

I program for Android with Xamarin on Visual Studio , but I do not short anything its design editor, how can I use only the Android Studio editor when I need it? I changed the design extension from .axml to ....
asked by 03.11.2017 / 22:42
1
answer

Buttons added under ReciclerView do not appear

I'm using a LinearLayout with a ReciclerView and 3 buttons underneath it. I'm doing this, but ReciclerView takes up the entire screen and the buttons do not appear. <?xmlversion="1.0" encoding="utf-8"?> <LinearLayout xmlns:androi...
asked by 24.01.2017 / 22:37
2
answers

How to dynamically create the same layout several times?

I created a layout called with a "+" button at the end so I would like, by clicking the button, to add a new LinearLayout below the current layout with the same content, allowing the registration of more than one item without generating new scre...
asked by 10.03.2017 / 02:30
1
answer

How does IPR Layouts and Redimensions work?

Android there are so called " DPI ", which are densities per pixel . Each screen has its type of DPI such as:    Smartphones:       layout [?]    layout-ldpi [240x320 & 240x400]    layout-mdpi [320x480 & 480x854]  ...
asked by 31.05.2017 / 15:35
2
answers

LinearLayout dimensions, defined in java, do not maintain proportionality between resolutions

I have a View in which I am programmatically defining its width and width in this way: LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) linear.getLayoutParams(); params.height = 50; params.width = 50; linear.setLayoutParam...
asked by 25.11.2016 / 01:52
1
answer

Scroll View in Android Studio, Basic Question

I have a very basic question, how do I see the content that is below the ScrollView visible in the editor itself? Since content that exceeds the selected resolution does not appear?     
asked by 13.12.2016 / 20:52
5
answers

Change button background

How can I change the background of a Button by clicking on it? For example: I have shape01 and shape02 , for default the Button is with shape01 , when clicking it I need to change to shape02 , and click...
asked by 19.09.2016 / 14:36
1
answer

Separate clickable item in android layout

I have a ListView, and an adapter item layout that follows the basic image of it ProblemisthatwhenIclickonanyareaoftheiteminthelist,everycomponentis"selected" IwouldliketohavetheeffectofAction1,Action2andDescriptionseparated.Forexample:...
asked by 22.09.2016 / 16:15
1
answer

Use DatePicker in an Activity [closed]

Hello, I'm trying to make a datepicker part of the activity layout as shown below: I've been looking for the internet, but all the examples I'm talking about datePickerDialog, and that's not what I wanted. Any solution? Thanks!     
asked by 25.10.2016 / 22:27
2
answers

How could I make an image inside a ScroolView stay fixed and all content "scroll" down "from the image?

Hello, I would like to know how I could do to keep a still image and the information roll underneath it, with all of that inside a ScrollView, follows layout and XML print Code: <ScrollView xmlns:android="http://schemas.android.com/...
asked by 12.04.2016 / 21:36