Questions tagged as 'android-layout'

1
answer

What level of encapsulation do the attributes of the classes in which the logic of an activity in Android have been programmed?

I'm new to programming for Android in Java, I've been watching one or two tutorials to learn. I know that each activity is composed of an .xml file that describes the components that the activity will have and a class in Java where the logic of...
asked by 16.11.2018 / 18:28
0
answers

How to make the main class know which layout it is using (layout-small, layout-normal, layout-large or layout-xlarge)?

I'm making an application that suits multiple screen sizes so I have 4 types of layout: layout-sw360dp layout-sw600dp layout-sw720dp layout-sw800dp What I want to do is that the MainActivity knows what type of layout it is usi...
asked by 14.11.2018 / 15:52
0
answers

How to remove the hamburger icon and put the back icon [Android]

How can I remove the Hamburger icon from my NavigationView when I go to another fragment and then change it to a "back" icon? NavigationActivity.kt: package com.example.gonzalo.proyecto_android_2018.activities import android.support.v4.a...
asked by 09.11.2018 / 16:54
1
answer

Problems with ScrollView

I have implemented a scroll for my user registry layout, and when I run the app, the scroll does not work for me, it also generates a spacing below, like a margin_botom and it does not let me pull down my elements that are inside the Constraint_...
asked by 02.11.2018 / 23:08
0
answers

How to make a Slider with animations [Android]

I'm doing a Slider with animations instead of images, the problem is that I do not know what method to add to use an array of type "InputStream", I put this type of data since the animations are in the assets folder. I am also using the lottie l...
asked by 02.11.2018 / 05:53
1
answer

Android form with Android Studio [duplicated]

I'm making a form with a button and when I design the button I put it in the middle of the screen. On the other hand, when I run the application, it appears on the left side of the form. Does anyone know how to fix it? It happen...
asked by 04.11.2018 / 13:22
0
answers

How to calculate the sum of minutes in android studio

forgive the inexperience since I am new, I would like to know how I calculate the minutes better said add them to give me an hour of departure. What happens is that I want to perform an exercise of the income of patients in consultations, theref...
asked by 24.10.2018 / 18:47
0
answers

error: failed linking references

I am designing a bus app but at the time of compiling I get the error "error: failed linking references." I do not know what could have happened, before I had errors of the strings that had changed in the file "string" but I fixed it, now I got...
asked by 23.10.2018 / 01:19
1
answer

Type mismatch: inferred type is HomeFragment but Fragment was expected

I'm doing a NavigationView with its Fragments to change view and to do it I just create a method "setupFragment (fragment: Fragment)" with a parameter of type Fragment so that it can put all the fragments it creates, but after implementing it I...
asked by 29.10.2018 / 08:41
0
answers

Remove margin to Button. Android Studio

I have a Button defined <Button android:id="@+id/btnCuentaNueva" android:layout_width="match_parent" android:layout_height="@dimen/btn_height" android:text="No tenés una cuenta? Registrate" android:theme="@style/RButtonGris"...
asked by 19.10.2018 / 16:49