Questions tagged as 'android-fragment'

3
answers

return to the main activity in navigation draw

Good morning. When I launch my application, the first screen that shows me is the main container of the fragments that I have in the navigation draw. When selecting the items that take me to the different fragments I could not find a way to retu...
asked by 02.10.2017 / 16:28
1
answer

Fragments are created with a Gray background and not white as default

In my project, when I create a fragment, it creates them and the backgrounds instead of being White or Transparent creates it with a gray color, which at the time of executing any component of type gridLayout, for example, shows a gray color at...
asked by 19.05.2017 / 17:58
0
answers

Saving changes in Fragments through an Interface

I have recently arrived at the world of programming and I am with a project of Android . I have two Fragments in a Activity in one of them you have to be listening if there is any change in the data that the user enters, if s...
asked by 26.05.2017 / 14:00
2
answers

Webview does not load specific audios within the web

Good morning, I have a problem with my WebView, I use my mobile device I open any browser (Chrome, Firefox), I enter into the web that I want to load in my webview and I navigate without problems. I can even play audios that are inside the we...
asked by 07.04.2017 / 12:50
1
answer

ListView in Fragment type?

I have this to create a particular ListView: The problem is that it is a Fragment , and when you run the application and click on the Fragment , it stops and goes away, nothing is shown. What's wrong? "First_fragment.java" : public cl...
asked by 27.10.2016 / 21:57
2
answers

Define onClick on a BaseAdapter

This is a question that I have searched for on this page, but the solutions that I have been finding, I have implemented them, but they have not worked for me, and they will appear commented on in the code, to see if something escapes me or any...
asked by 30.10.2016 / 22:08
0
answers

Swipe effect when closing fragment

I have a fragment that I show with a button. What I want to do is that to close it and move to the activity from where I call it, I mean to go back, it can be done using swipe from the left side. I have searched but I only find examples w...
asked by 21.10.2016 / 22:43
1
answer

When making requests to the server

I have a problem, which I consider easy, but due to my little experience in Android I can not solve. You see, I'm developing an app that gets the data from a server, that is, I make requests to get the data to be displayed Ejm: list of produc...
asked by 23.06.2017 / 17:48
2
answers

How to read a text file in a Fragment Android Studio

Good afternoon community, I wanted to ask the question, it turns out that I try to read a text file from a fragment but when I open it in the application I jump that the application stopped working, so I wanted to know if they could give me a ha...
asked by 10.01.2018 / 17:42
2
answers

how to go from a Fragment to an Actvity

What I'm trying to do is that by clicking on an item of the ListView that is in a fragment it will take me to Activity . @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { supe...
asked by 13.06.2017 / 05:55