Questions tagged as 'fragment'

1
answer

android: NavigationDrawer, return to the main fragment and not to the previous activity

I'm doing an app which has a Login and then enters the activity with the NavigationDrawer , I've already defined a Fragment so that with the interface starts, however when I find myself in another Fragment of the navigation a...
asked by 29.07.2017 / 00:19
1
answer

Implement fragment method

I stopped programming long ago and well, now that I am developing I am in a mess. What happens is that I have an application with navigation drawer and that calls fragments. Now, I followed a tutorial to login with firebase and I want the logout...
asked by 30.11.2017 / 20:20
2
answers

ImageView button in Fragment does not work

I'm trying to make an ImageView within a fragment that when I clicked send you another Activity. The problem is that when clicking nothing happens, but I do not get any error to know what is happening. This is the code of the Fragment.java...
asked by 10.07.2017 / 01:39
3
answers

Like using buttons from a Fragmen like opening other Fragments

I have a Frangent class to which I am trying to put ImageButton buttons so that when choosing one of them I show another Fragment class This is the code with which I'm testing now, which does not do anything, well, when you click on the...
asked by 29.08.2018 / 20:51
1
answer

RecyclerView in Fragment

here with another question I am doing an Android application and the problem is that when calling the RecyclerView I get this error:    E / RecyclerView: No adapter attached; skipping layout But I do not know why I get this error and only...
asked by 06.03.2017 / 05:19
2
answers

Error trying to load google maps in a fragment? Android Studio:

Good morning, I'm doing the exercise of placing a map to my app, I already did an exercise that worked correctly for me using an activity, but now I'm doing it with Fragment in a navigation drawer and it shows me error in the line: Sho...
asked by 24.08.2017 / 16:26
2
answers

android fragment imports

I'm trying to load a map fragment and I have a problem with the imports: If in the map fragment I import android.support.v4.app.Fragment, in the fragment from which I launched it, I get an error in the .replace because an argument of type and...
asked by 25.05.2018 / 10:58
1
answer

Android getActivity () returns null in Fragment

In an app with a side menu, when I click on one of its items, I want to load the same as clicking on another button (also in a fragment) of the application. To do this I create an object of that class and call its corresponding method from onNav...
asked by 14.05.2018 / 17:47
1
answer

Fragment Volley

Why this code works properly for me if it is an activity and if it is a fragment, it does not give me errors or show me anything, is it just the progressbar? class FragJornadaActual1 : Fragment() { val TAG = "json_request" val URL = "...
asked by 17.01.2018 / 10:32
0
answers

It does not let me change from fragment to webfragment

I have an application which contains a list, a detail of the item in the list and a web of the item in the list. When I click on the first item in the list, it has to take me to the data of that item (detail class of the item) and inside that...
asked by 16.12.2018 / 16:44