Questions tagged as 'android-fragment'

0
answers

I can only access the first fragment with tabs

After some time without updating my apps I have to change them to adapt to Admob 7.0.0. In two of them I use% w / w in tabs (one with two tabs and one with three tabs) and it always positions itself in the first one and always worked. Now...
asked by 19.01.2018 / 19:24
2
answers

Problem with BottonNavigationView

Asyoucansee,I'mhavingalayoutproblemwiththisformonAndroid,thisformisopenedinsideafragmentnormallywhereI'mgoingtosendthedata.1-Tomysurprise,EditTextdoesnotexpandtotheentirescreen.IalreadytriedusingLayoutParamssettingmatchparentbutnothinghappened....
asked by 11.01.2018 / 02:44
0
answers

How to print a custom ArrayAdapter in a fragment?

I'm using a Drawer menu in my Android application and I need to print a list in the fragment by clicking on the side menu item, how do I create a custom ArrayAdapter and how do I invoke it in the fragment?     
asked by 18.01.2018 / 12:38
0
answers

How to send data from an Activity to a Fragment

I'm trying to send my data from Activity CorridaEsteiraActivity to Fragment FragmentCorrida and save them to listview , but I did not succeed in my attempts, below follow the two classes: public class CorridaEsteiraActivity...
asked by 01.11.2017 / 12:24
1
answer

Recycler view does not load when the app opens for the first time

I have recycler view within fragment in tablayout , being the main tab. After logging in, it does not load the data, only loads if I change tabs and return, or close and open APP. Code: public class ContatosFragment exte...
asked by 19.10.2017 / 02:11
1
answer

AlertDialog with FragmentManager

public void mapaDialog(View view){ AlertDialog.Builder mBuilder = new AlertDialog.Builder(CadastroAbrigo.this); View mView = getLayoutInflater().inflate(R.layout.mapa_flutuante, null); FragmentManager fragmentManager; fragmentM...
asked by 02.10.2017 / 19:53
0
answers

Instantiate Fragments only once with navigationBotton

Good evening, I need a force, I'm implementing a navigation bot to navigate fragments, however in one of the fragments there will be a counter and when I navigate through the screens the counter will restart. Is there a way to save the status...
asked by 22.09.2017 / 00:22
1
answer

How to pass data from one Fragment to another (upQuest SQlite)?

I'm developing an app with SQLite, I want to get the data from a ListView (where I'm displaying the saved information) and I want to play to a Fragment to enable the user to edit it. I tried in several ways, but I can not pass t...
asked by 12.09.2017 / 01:02
0
answers

How to send data from an Activity to a Fragment?

1 I have a question a while ago. I want to pass a value from activity to fragment , however, from the error when opening fragment to be specific at the time of receiving this value, I believe. That's how hedge: estab =...
asked by 12.09.2017 / 21:46
1
answer

How to Run a Recicle View on Other Activities

How do I put a recycle view or a list view into some other activity? Example: I created a project with name X in it as soon as I put the layout as Empty activity and so it generates an activity_main layout and a standard MainActivity class,...
asked by 12.09.2017 / 15:46