Questions tagged as 'android-fragment'

0
answers

How to modify the Navigation Drawer to call an Activity

People I created a navigation drawer through the google gallery (Navigation Drawee Activity) and I would like to modify it for when I click the menu instead of calling an extent fragment file to call a normal Activity, the traditional way using...
asked by 18.12.2017 / 15:50
1
answer

Error calling getLayoutInflater () inside a fragment

I have a problem creating a custom window. The idea is to have a balloon that presents an image and some basic information about some location, with a link to another activity with a greater detail. The problem is that getLayoutInfl...
asked by 18.05.2017 / 22:09
1
answer

Fragment being used by two different activties

I have a fragment that is inflating a recycler view, so far so good. The problem is that this fragment needs to inflate in two different navigation drawer, and at the time of casting, I can only cast one. Is there any way to cast it, to ident...
asked by 31.08.2016 / 03:01
1
answer

Tabbed Error Activity

Hello, I'll be as objective as possible: I created a project in Android Studio for "Tabbed Activity" - Action Bar Tabs By the Options app (Mouse right) New - > Fragment - > Fragment Blank I created a Fragment named "Page" In t...
asked by 14.05.2016 / 03:53
0
answers

FragmentTransacion with Fragment Activity

I'm using the NavigationDrawer to display the page options, I've adapted one of them to FragmentActivity to call some functions to work. But when I declare the transaction of the screens, it does not allow this, only with the Fragment without th...
asked by 22.12.2015 / 01:18
0
answers

Not doing fragment replace

Hello, I have an app that, when it is accessed, loads a feed, initializing an AsyncTask, but if the user clicks on one of the drawer options before the task finishes, the app does not replace it and hangs, progressBar spinning and nothing happens...
asked by 01.12.2015 / 00:17
0
answers

How to destroy previous fragment?

In my Android project I navigate between fragments , in one of these fragments , there is a list that receives information from a json . There was a need to update this list every 1 minute, I'm using postDelayed(this, 60000...
asked by 02.11.2015 / 15:49
1
answer

I can not replace the fragments displayed in the ViewPager

I'm redoing the navigation of an application so that it works as follows: the application consists of a single activity that initially displays a ViewPager with three views (fragments), and in one of the views there is a button that repla...
asked by 04.06.2014 / 13:55
3
answers

How to instantiate an Activity with EditText fields without being automatically selected?

Developing an Android application, I came across a problem, I have an Activity where there are EditText fields in the xml, and when I instantiate it, the first EditText field is selected and the keyboard appears to fill, and I do not I wanted th...
asked by 30.10.2015 / 18:15
2
answers

Press the button on a screen that is a fragment and go to another fragment. How to do?

I have a class of type Fragment and I would like that when the user clicks on the button it would go to another screen that is fragment .. how can I do this? public class AlertaFragment extends Fragment { @Override public View o...
asked by 02.02.2017 / 14:17