Questions tagged as 'android-layout'

0
answers

ScrollView with CardView does not work

I want to use a ScrollView to put in a CardView and a vertical button, I made this XML and if it compiles, but when it is time to test it on a device, the app closes immediately. The device on which I am doing the test is API 22: <?xml vers...
asked by 03.12.2017 / 00:58
2
answers

Help with Android - Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText ()' on a null object reference [duplicate]

Dear, by pressing the button that should take me to the "Registration" Activity in order to create an account, android I get the following error: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Edita...
asked by 16.12.2017 / 04:19
1
answer

Set up a control within a parent LinearLayout

I have a LinearLayout parent that contains the property; android:gravity="center" with that all the controls within it will be centered, now I need some controls to be left for example. Any ideas? XML <TextView...
asked by 19.11.2017 / 22:50
0
answers

Why can not I see the layouts on android?

I am starting to work with android studio 3, but at the time of opening the layout, it sends me the following error: The layout stays loaded but shows nothing.     
asked by 10.11.2017 / 03:15
0
answers

How to make an EditText contain a Recyclerview?

I have a EditText and I need within the content to have a ReclycleView that are already separate     
asked by 07.11.2017 / 18:44
1
answer

Do I need to create a different string for each activity?

I am doing an exercise in which I entered Fahrenheit degrees and I convert them to Celsius. On the second screen the result appears, but I want to put a textView that says "The result is" and I do not get it. Do I need to create another x...
asked by 20.10.2017 / 22:21
1
answer

Show continuous months instead of month by month or show two months in Android CalendarView

I have tried everything and I can not show this CalendarView continuously. It shows me only one month and to see the other months I have to do Scroll down. In a mobile phone half of the screen is blank and gives the impression o...
asked by 17.10.2017 / 15:24
1
answer

I do not get the icons that I have in my items in the menu I created in my ToolBar

I do not get the icons that I have in my menu in the menu I created and I get the following error that I guess does not let me take them out on the visa, they come out on the right side of the Preview but when I run the app does not only...
asked by 13.10.2017 / 01:26
1
answer

Android studio: Avoid centering controls within a LinearLayout (Horizontal) when there is more than one

I have this scenario As you can see the control TextView with text Description is centered vertically with respect to the control Multiline Text . This happens automatically when I add the second control. My intention...
asked by 21.09.2017 / 20:53
0
answers

EditText keyboard modifies Layout

Good morning everyone! I'm working on a game for Android, which has a EditText numeric type. By touching it, the keyboard is displayed, and in doing so, it modifies the size of my layout parent, which is a RelativeLayout . The pr...
asked by 14.07.2017 / 03:36