Questions tagged as 'android-fragment'

1
answer

Android: Recharge fragment from the same fragment

, good to everyone. My question is this, I am using fragments to show the different views. I have a fragment that is CONFIGURATION, from the, I can among other things, change the language and I do it in the following way Configuration config...
asked by 16.08.2018 / 20:54
2
answers

setOnItemClickListener does not run in the fragment

I am using a GridView within a RelativeLayout that contains an image, a checkbox and a textview. I use an adapter to select or deselect the checkboxes. I use a fragment to show the GridView. The checkbox is selected / deselected by touching it o...
asked by 13.07.2018 / 00:18
1
answer

Where are the methods and actions placed in a fragment? Android Studio

I have a doubt, for example I have a menu where I manage three fragments, in one of them there is a simple form (To enter data), three EditText and obviously a button, but when I go to the fragment type file it is not logically Same structure as...
asked by 13.07.2018 / 01:23
1
answer

How to implement OnFragmentInteractionListener in android?

I'm trying to insert a fragment into a Navigation Drawer, but at the moment of executing it, it tells me the application that stopped and checking the errors tells me that the cause is:    Caused by: java.lang.RuntimeException:   com.example....
asked by 20.06.2018 / 04:53
1
answer

Go from a fragment of the Drawer Navegation to another activity [closed]

Goodbye everyone, I have a huge problem, I created a Drawer Navigation Activity with their respective fragment and what I want to do is move from a fragment to an activity through a button. Thanks     
asked by 24.11.2017 / 07:46
1
answer

Go back two fragments at a time

I have an activity with two FrameLayouts, each with a fragment. But when doing a backpress first the fragment returns to its previous state, and after another backpress the fragment returns to its previous state. I want to make backpress the...
asked by 25.10.2017 / 19:50
1
answer

Call database with (this) in fragment

I am trying to make a catalog by linking to a database that is in the folder assets, so that it is displayed in a recycleview. This activity already works on its own but now that I want to embed it in a fragment I can not (I'm new to this). Does...
asked by 17.10.2017 / 06:56
1
answer

Error Can not resolve symbol 'EventoOnItemClick'

I'm trying to put OnClickListener events to the items in a recyclerview, already in the previous question have oriented me with these steps , however I think that something is not right in the creation of the interface since it is giving...
asked by 18.10.2017 / 23:07
2
answers

How to go back once to a fragment?

I have a list which when clicking on an item shows me the detail in a fragment, and I have a button that allows me to add records, both load in the same container, the problem is generated when I start to open several items already the time I op...
asked by 09.09.2017 / 08:38
1
answer

Problems in Android Studio with the Fragment that starts by default

Good afternoon, I am creating an app that implements a NavigationDrawer, I have selected one of the fragments to be displayed by default ( Home ), it contains an ImageView, everything is fine, but the problem What I have is that when the applica...
asked by 04.07.2017 / 23:03