Questions tagged as 'android-fragment'

1
answer

Fragment using AppCompatActivity

I'm getting this error:    onPrepareOptionsMenu Menu in android.support.v4.app.Fragment clashes with onPrepareOptions Menu Menu in android.app.Activity attemping to use incompatible return type.     
asked by 23.10.2016 / 22:44
1
answer

Pass data from an Activity to a Fragment

I need to pass the String result that is in HomeActivity to MapsFragment, but I do not know how to do it, I'm a beginner and I do not understand much about it. HomeActivy package mundosenai.mundosenai.com.mundosenai; import android.Manifes...
asked by 25.09.2016 / 01:47
0
answers

Doubts TabLayout

I have 3 views that infl contents of recycler view. I put all of them extending from a BaseActivity.java to have some common functions like NavigationView (Sidebar) and also the Toolbar. Now, I wanted to make use of a TabLayout...
asked by 15.09.2016 / 06:52
0
answers

Error generating signed APK

When I sign the apk to send the Play Store, the following error message occurs:    Error: Fragments should be static such that they can be re-instantiated by the system, and anonymous classes are not static   [ValidFragment] Could...
asked by 14.07.2016 / 19:02
1
answer

Change fragment with click on button inside fragment [duplicate]

I have an activity that has an empty LinearLayout that serves only to 'host' the fragment. This LinearLayout (called layoutFund) is the FragmentTransaction argument to where one of several fragments created separately is 'hosted'. This happens...
asked by 28.06.2016 / 19:40
2
answers

Fragments Tabs update!

I have two Tabs in my Application, made up of fragments. The first is a form that saves the data in the database. The second is a list that retrieves this data. I would like to know how to update my List fragment, because after I save I need to...
asked by 06.07.2016 / 17:37
1
answer

Passing information between Framents on Android

Hello, Please, I'm in need of help. I'm trying to use the Android Studio template to make a simple application that in a Fragment (PegaValoresFragment) in the onCreateView method takes an option from a Spinner that will be used in the other Frag...
asked by 03.05.2016 / 14:25
0
answers

AsyncTask and Fragments

Hello, I'm a newbie in development and I have some questions. I have to implement a new layout, where: Converted activities that load data into fragments; In a new activity the graphic fragment is at the top and what loads the list is b...
asked by 31.03.2016 / 16:30
0
answers

Inflate Toolbar in Stepper

I need to create a Stepper in my application that got the library on GitHub link I was able to implement the application, however I want to put a Toolbar to inflate a menu and have the button go back into it, but I am not able to put it in...
asked by 13.02.2016 / 11:41
0
answers

Error with Fragments

I'm a beginner on Android programming and I'm having an error that I can not fix. I'm doing a project that uses fragments. I have a small layout that works perfectly when I do not put the fragment component, but when I put it, the parameter...
asked by 29.12.2015 / 18:25