Questions tagged as 'android-fragment'

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
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

SnackBar is shown above what I need

I'm having a big problem with a snackbar, it turns out that I created a personalized follow-up of some tutorials I found on the internet, everything is perfect, until it has to be shown, I tell you a little more and I go to the error. From a...
asked by 27.10.2018 / 08:29
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

avoid restarting the activity Navigation Drawer when turning the mobile in android studio

I have an application that shows me a fragment, here the problem is that when turning the mobile, the Navigation Drawer is restarted, and it takes me out of the fragment that I have in view, some idea of how to turn the mobile do not restart the...
asked by 18.10.2018 / 18:19
1
answer

Fragment in focus

I have an application with several fragments, when I slide the screen horizontally they appear and each one has a background color, I want that when one is in focus, that a text appears (Toast), can this be?     
asked by 28.10.2018 / 01:51
1
answer

when replacing one fragment with another gives me error in the new fragment to insert

I have an activity that contains a fragment and a button outside of that fragment, I need to create an event that, by clicking on the button, replaces this fragment with another one. Here is a piece of code for you to see, the fragment " Fragmen...
asked by 11.10.2018 / 15:36
0
answers

Maps own Android Studio

I have a fragment that I am designing in my Google Maps application and I would like to know how to place a map that I design with a route and markers within the Maps option.     
asked by 02.10.2018 / 03:10
2
answers

EditText.getText () does not work

I try to do a CRUD in Android (java), the project is based on a navigation drawer as a menu and an Activity that works as a container for the fragments I use in the project for this crud. I have a single fragment in which I want to implement the...
asked by 27.09.2018 / 05:21