Questions tagged as 'android-fragment'

2
answers

What is the difference between Activity, FragmentActivity and Fragment?

What are the differences in performance, performance, etc. in inherit from each of the classes in the controllers of views (XML) on Android?     
asked by 12.05.2016 / 15:54
3
answers

Doubt two player game, half screen upside down

I am creating a program to practice what I have learned so far and to learn more, but I have reached a stalemate. The question is: I'm creating a question and answer game for two players, each one stands on one side of the phone to play, the...
asked by 09.06.2016 / 02:16
1
answer

How do I assign an Activity to open when I click on the ActionBar Tab?

Context I have an application that contains a Activity called MapActivity (of which is a Map type activity that inherits from GoogleMaps api), and another Activity common that will serve as a search with filters to refine...
asked by 20.07.2015 / 16:16
1
answer

Make two different classes communicate

I'm making an Android application that uses time and date selectors (DatePicker and TimePicker), which are displayed in the form of fragments. When the user sets the desired time, I need it to be passed from the selector fragment to the main win...
asked by 23.04.2014 / 20:21
1
answer

Refresh TextView on onResume

package br.com.automaserv.stocserv.fragments; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextV...
asked by 08.09.2016 / 14:47
2
answers

Changing Screens in Navigation Drawer

The Navigation Drawer had some changes, where it was used the onNavigationItemSelected(int position, long itemId) method and now comes with the method onNavigationItemSelected(MenuItem item) . I tried to implement the old temp...
asked by 01.12.2015 / 03:43
1
answer

How to inflate a class on Android?

I needed to inflate a form on a tab, I always do the form in xml, but this time I did via code, does anyone know how I display my class instead of xml in a FragmentTab ? Code to inflate xml to View : if(this.getTag() == "formula...
asked by 23.06.2015 / 16:38
1
answer

Change icon action back with fragment

Good morning, I'm having trouble changing the back icon action
asked by 03.11.2015 / 14:34
1
answer

Creating Tabs Correctly on Android Currently

I'm trying to implement in the application that I'm creating Tabs, like this: But when I try to implement, I'm always faced with deprecated classes and methods, such as TabListener , ActionBarActivity and now I'm not...
asked by 03.09.2015 / 01:43
1
answer

Difference between calling the fragment call and a new instance

I'm working on a college project where I made an application that uses fragments. I've always been accustomed to creating a fragment in the following way: // imports ... public class LoginFragment extends Fragment { public LoginFragment(...
asked by 17.11.2014 / 19:22