Questions tagged as 'android-fragment'

1
answer

Problem in onClickListener with Button in Fragment to show data in Activity that contains the Fragment

I'm a rookie newbie on Android and I'm doing a project which contains: ActiviyMain.class ActivityMain.Layout Fragment.Class Fragment.layout It turns out that I have a button in the Fragment.layout that is inside the ActivityMain layout,...
asked by 22.05.2017 / 07:32
1
answer

Register and cancel BroadcastReceiver listening on a fragment of Android

I want to start detecting connectivity with a BroadcastReceiver I want to do it in a fragment when it's on screen. In what methods is it the best to record and in which to remove it but contemplating the following? Scenario where th...
asked by 10.05.2017 / 13:58
0
answers

Interface on Android

It's been a while since I've been developing on Android and consulting several tutorials I do not see a solution to my problem. It turns out that I need an interface with several tabs, which could be done with a TabLayout and its Fragm...
asked by 24.04.2017 / 09:21
1
answer

Navigation Drawer Activity with a Fragment that has a Button that brings data from a server

I created a project of type Navigation Drawer Activity as you will see in the image below: Where the Import - Gallery, etc sections treat each one as a fragment As you will see in the image above when clicking on Import in th...
asked by 13.02.2017 / 12:40
0
answers

I have a ListView in a fragmet and I want to go to another fragment

when I run the app it closes. This is the error:    01-18 12: 33: 01.371 5953-5953 / com.aguila0017.fruits E / AndroidRuntime:   FATAL EXCEPTION: main                                                                        Process: com.aguila0...
asked by 18.01.2017 / 18:40
0
answers

The fragment does not open full on the screen

My problem lies in the following, I have 3 listview in a fragment, which runs me pretty well, the question is that when I fill the ListView respectively, you notice that it loads everything but it does not look on my screen, a miniScroll...
asked by 28.11.2016 / 02:55
1
answer

You doubt when calling back the activity with a certain fragment from the notification bar

Good morning, I have an application that uses a layout in barra de notificaciones . Within the layout, I have a botón with an icon which if I put it is abre la aplicación with the main activity. The problem arises, because...
asked by 22.11.2016 / 14:32
3
answers

Android RecyclerView Firebase Fragment

Good afternoon, I am developing an app with tabs and fragments, The problem I have is that when I start the app the recyclerView that is inside a fragment does not show me anything at the beginning, but if I move to the last tabs and I go back t...
asked by 23.09.2016 / 17:26
1
answer

Pass data between two fragments [duplicate]

I'm doing Navigation Draw Activity , with fragments inside. The fact is that I have several fragments. It is a long form that I divided into several fragments, and I want to send the data I receive from editText of the firs...
asked by 06.12.2017 / 17:26
1
answer

I need to place a MenuItem by default checked

I would like the Agrocentro item to be by default and setChequed only at the beginning But I only get the item if it is by default but not checked in the drawer. DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); Acti...
asked by 04.06.2017 / 23:58