Questions tagged as 'android-layout'

1
answer

HELP in Android Studio: "Rendering Problems: One or more layouts are missing the layout_width or layout_height attributes"

I was looking at a tutorial for a side menu, and at the time of making the layout of "navigation_header" I see this rendering error. I'm following the tutorial to the letter and I do not know why it happened. I'm in version 2.1.2. Here is t...
asked by 27.06.2018 / 22:22
0
answers

How to fill in expandableListView from room database

I am trying to fill a multi-level expandable ListView (three levels, for now), I can fill the first level (header), but only show the first item of the second level and none of the third level the queries I make to the database are: @...
asked by 25.06.2018 / 17:22
1
answer

How to correct the error in activity_main.xml design?

The present error is:    java.lang.ClassNotFoundException:   android.view.View $ OnUnhandledKeyEventListener at   org.jetbrains.android.uipreview.ModuleClassLoader.load (ModuleClassLoader.java:180)     at   com.android.tools.idea.rendering.Re...
asked by 03.07.2018 / 21:06
1
answer

Go to another Activity

I'm trying to move to another activity that I name (RegistroActivity) with a button, but when I try it, it leaves me in the main activity, I did a test passed to other Activitys and if it allows it without problem, I do not know why it does not...
asked by 27.05.2018 / 05:30
0
answers

The option 'android.enableAapt2' is deprecated and should not be used anymore

I'm doing a basic project in Android Studio in its latest version that I downloaded in May 2018, when I try to compile the project I get the classic error of "AAPT2 error: check logs for details" which the whole Main class me marks errors in the...
asked by 20.05.2018 / 16:54
0
answers

How can I remove the legend that appears when using RecognizerIntent, because it did not appear before? Thank you

My question is how do I delete the legend "The audio to google is enraged to provide a voice recognition service, a transcript will be shared with this app.s Saving audio at [email protected]"     
asked by 02.05.2018 / 04:05
1
answer

How do I modify a textview (with settext) that is in another class?

My code does not show errors but what I need is not working, what I want is: that from the Roman class we call the method ToDecimal , which is in the class RomanTodecimal , and in that method I want to modify a textview found...
asked by 24.04.2018 / 21:33
1
answer

Background image on Android App

I want to put a background image, in fact I put it but it does not respect the proportion and it is very long. As the dimensions of mobile devices are very varied, I would like the image is not deformed and cut where the screen ends because the...
asked by 25.04.2018 / 17:41
0
answers

Get Fragment data in a ViewPager (Form)

I have a Activity that contains 5 Fragment with a ViewPager type form, what I want is to recover the information of each EditText of the Fragment as it happens with the swipe from one fragment to another, I d...
asked by 16.04.2018 / 22:13
0
answers

How to make a NumberPicker on Android that has 3 elements to select?

I need to make a NumberPicker that can be selected 3 numbers at a time, is thought to be to take the values of the blood glucose     
asked by 11.04.2018 / 03:24