Questions tagged as 'android-layout'

1
answer

Problems with ScroolView in Android Studio

Good morning, I'm new to Android programming and I'm trying to create a program that based on a subject that the user chooses, will open a certain screen, everything I did was based on search in websites, videos and etc; but when compiling the p...
asked by 15.01.2018 / 18:04
2
answers

Problem with BottonNavigationView

Asyoucansee,I'mhavingalayoutproblemwiththisformonAndroid,thisformisopenedinsideafragmentnormallywhereI'mgoingtosendthedata.1-Tomysurprise,EditTextdoesnotexpandtotheentirescreen.IalreadytriedusingLayoutParamssettingmatchparentbutnothinghappened....
asked by 11.01.2018 / 02:44
1
answer

Why does not my recycleview respect Match Parent?

I have a cordinatorlayout that contains a recycleview, but it fills the whole screen, and everything is set to match_parent, including the recycleview card XML:<android.support.design.widget.CoordinatorLayoutxmlns:android="http://schemas.and...
asked by 10.01.2018 / 19:34
1
answer

EditTexts in wrong position

I'm creating a list of EditTexts programmatically. In all I give a margin of 20dp and put one below the other. The problem is that textbox2 always stays above 1, the other textboxes are in the perfect position. follows the code written to create...
asked by 11.01.2018 / 17:04
1
answer

Android - Method invocation 'setOnClickListener' may produce 'java.lang.NullPointerException'

I'm new to Android. Android Studio always warns me about this but I do not know what it means. Method invocation 'setOnClickListener' may produce 'java.lang.NullPointerException' I'd like to better understand what it's all about and what lo...
asked by 10.01.2018 / 02:35
0
answers

Undue space in layout! how to solve?

Anunduespaceappearedintheandroidproject...HowcanIsolveit?<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_...
asked by 22.12.2017 / 21:02
0
answers

Create xml elements within activity_controller

I have a program that has a dropdown with 3 options. (Option 1 has the value 1, Option 2 value 2 and option 3 value 3). Depending on the option selected, I need to create TextEdits below that dropdown. Example: If I select option 2 of Dropdown...
asked by 05.01.2018 / 16:53
1
answer

Remove gradient

In my% color% the coloration is set to side_nav_bar : <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:angle="135" android:centerColor="#009688" android:e...
asked by 07.12.2017 / 16:36
0
answers

I can not change the layout when I open the keyboard

I'm trying to "shrink" the layout when I open the keyboard, but I'm not getting it, it's inside a ScrollView and I noticed that it ignores the free space below the views (but there are no views) which is above them (here showing the layou...
asked by 02.12.2017 / 22:07
0
answers

two listview on the same screen but only one appears after the execution, help

I'm trying to make a screen for an app, where I want a text, a listview and then a text and a listview . I made the codes, but at the time of execution only only the two texts appear and the first listview , the second does no...
asked by 23.11.2017 / 01:21