Questions tagged as 'android-fragment'

1
answer

How to create a class with a NavigationDrawer to use in various Activities?

I started studying Android development a short time ago, I saw that to use a NavigationDrawer it is recommended to use fragments to change a FrameLayout in the main Activity, but in the new activities that I create, I did not want to have to put...
asked by 15.12.2015 / 14:12
1
answer

How popular is AlertDialog in Android Studio?

I'm taking a hit here from Java and Android Studio. I've already created an Activity + DialogFragment, the location information does not change from the Activity screen to the DialogFragment! Now I'm trying to make an AlertDialog within...
asked by 14.06.2017 / 20:10
1
answer

How to call a method in the fragment through the listview adapter

I have a fragment that has a listView inside it and inside the lisview has a button. The button has to delete the listview item I've already done a method within the onactivitycreated, but it gives error of "Java lang null pointer" frag...
asked by 30.05.2017 / 02:21
1
answer

getView is not being called but getCount has items in ListView

I'm having a problem with a ListView that is not loading the values. This is my situation: I have an application that at one point opens a TabBar with 2 Fragments and inside one of these Fragments I have a ListView that I am trying to populat...
asked by 31.03.2017 / 21:00
1
answer

Static Objects in Activities with View Pagers

I have an activity with a view pager, and this controls 3 fragments, f1, f2, f3. Fragment f1 shows items added by the user, fragment f2 loads all items from an external server, showing them in a list, and finally fragment f3 shows the items that...
asked by 14.09.2016 / 15:27
1
answer

Catch data from 3 fragments

Good afternoon, I'm developing an android application and I have an activity with 3 fragments (tabs), where each one contains a part of a form and the last one I have a save button. My difficulty is in how to get the data from the 3 fragments th...
asked by 17.05.2016 / 20:07
1
answer

Activity field values are deleted after event in DialogFragment

I have an Activity that has some text fields. Two of them open a FragmentDialog when clicked. The dialogs display a list of values that are taken to the Activity via intent when selected. When this happens the fields that have already been fille...
asked by 04.08.2016 / 02:32
0
answers

Fragment does not appear in a Toolbar with TabLayout

I'm trying to show 2 list layouts in the same activity using ViewPager, but for some reason the layouts are not being displayed on the application screen (they're blank), however, when debugging, the oncreateview lines are being read, that is, t...
asked by 14.03.2016 / 21:04
0
answers

Update UI during print screen process

I have Activity and several Fragments in it, and in Fragment , I have a list of images. I want a floating button to print all the images without having to change the image on the screen. I made the code below but it upd...
asked by 27.08.2015 / 14:47
0
answers

Android Layout complex using fragment [closed]

I'm having trouble creating a footer. The problem is in the horizontal position of the tablet where I have two framelayout and I need to include the skirting board occupying the whole bottom part (below the framelayout). My code looks like this:...
asked by 09.07.2015 / 04:33