Questions tagged as 'android-fragment'

2
answers

When changing the fragment, the former is visible under the new

I'm using fragments instead of activity, but when I call the second fragment with the replace method, it does not completely overlap the previous fragment, it overlaps, but the drawing of the other fragment keeps popping up, how do I this does n...
asked by 23.03.2017 / 19:12
1
answer

Android ListView customized in a fragment

I have an application whose layout was done in tabs and in one of them I would like to implement ListView custom, but I could not because the tab JAVA class extends the fragment class % and to make the list I need to ex...
asked by 10.01.2017 / 11:30
1
answer

Change Fragment components through an Activity

I'm doing an application with NavigationDrawer , and to not always create another activity , I'm using fragments , where at every click I make replace in FrameLayout that I left set as main. How do I access the co...
asked by 30.08.2016 / 18:36
1
answer

How to change the Activity inside a fragment with Button?

I have a simple App, it has two areas, one with the Fragment and the other with a Button Group How to do so that by clicking the buttons I can change which Activity will be loaded in Fragment? And how to keep save the state of the las...
asked by 27.06.2016 / 09:28
1
answer

Save Fragment state?

In a simple app I have Fragments and need to save their status , So when the user returns from one fragment to another, is there still text typed, number chosen, check box marked, etc ... suggestions?     
asked by 28.06.2016 / 10:49
1
answer

How to reconstruct the XML of a Fragment layout, when it is expanded?

I have a screen with a fragment, which without being expanded, it just shows the username and password field and the button to register, and I wanted it when I expanded it, fields like name, date of birth, municipality, state, were inserted betw...
asked by 09.11.2015 / 19:22
1
answer

Method onCreateContextMenu of a Fragment calls the onContextItemSelected method of another Fragment

I have a FragmentActivity that calls its Fragments tabbed (ViewPager). In both of these fragments the onCreateContextMenu and onContextItemSelected methods were implemented. In the case, it happens that when I call the context menu fro...
asked by 29.10.2015 / 20:15
1
answer

How to adjust the screen according to the Android virtual keyboard?

I would like to know how to resize the screen according to the display of the Android Virtual keyboard, style the Evernote home screen, that when the keyboard appears the image decreases and when the keyboard turns off, the upper image expands a...
asked by 06.11.2015 / 15:48
1
answer

How to adapt an Activity for FragmentActivity

I'm doing NavigationDrawer , and so I have to make some adaptations, as I'm extending Fragment , but I need to use int's for Activity to work, I've tried calling OnCreateView FragmentActivity but it did not work very well....
asked by 23.12.2015 / 01:16
1
answer

Show an application A within the fragment of another application B

In my application, when the user clicks Add Contact I call the Contacts application using a Intent . But, instead, would it be possible to open a Fragment whose content would be the Contacts application itself, ie show the cont...
asked by 18.12.2015 / 12:03