Questions tagged as 'android-fragment'

0
answers

Android - Views remain in the background of RecyclerView

I have an application that is basically a video player, in the gallery it happens that when I change the orientation of the screen or return of the player to the fragment the bottom of the RecyclerView gets "polluted": Asyoucansee,it'sasif...
asked by 14.12.2018 / 18:56
0
answers

Replace navigation drawer when opening fragment

This is my scenario, I have Activity with Navigation Drawer implemented, and in that Activity contains a container where Fragments is called. My problem is this: I want the Navigation Drawer burger icon to b...
asked by 28.11.2018 / 17:59
0
answers

CardView does not appear

I have a TabLayout , and within one of the tabs a Fragment , which has a RecyclerView , and each item is a CardView . I had just tested this part on a separate project and it worked perfectly, but when I went through t...
asked by 15.11.2018 / 02:14
0
answers

Any examples of how to implement a map in a fragment?

I can not add a map in a fragment, does anyone please have some example of how to implement it in an app with android 5.0 or higher? Map tab: has a map with some markers. Projects tab has a projects listview Button + add a project...
asked by 25.10.2018 / 17:25
0
answers

Transfer objects between fragments

Good evening .. I'm a beginner in Java Android and I'm developing an application to be used in the Gertec credit card machine. But my application will have other forms of payment besides card (money, check, term note). I'm doing the selling part...
asked by 18.10.2018 / 02:28
0
answers

dialog call fragment android studio

Good night, I'm having problems in calling a dialog fragment in android, with an activity that is encoded in Kotlin, calling a Java-encoded fragment dialog, the NPE error is happening in the line "datePicker = getActivity (). getLayoutInflater (...
asked by 15.10.2018 / 04:17
2
answers

How to override the OnItemSelected method of a Spinner?

I'm trying to overwrite the OnItemSelected method of a Spinner in my Fragment , just as I did with the Button , but it is not working ... How would I achieve the same result? Inside the OnCreate, the commented block works perfectly, bu...
asked by 09.10.2018 / 03:12
0
answers

How to inflate the fragments according to the screen rotation?

I have 2 layouts and the fragment classes, one layout is what should appear when the screen is vertical, and the other is for when the screen is horizontal. How do I "inflate" one and "deflate" the other for when the screen rotation occurs and...
asked by 21.08.2018 / 22:03
0
answers

Error opening project Android app

While opening the Android app project for a friend of mine on my PC, I came across these errors. How do I resolve this? screenshots: Grandle'scode(moduloapp): apply plugin: 'com.android.application' android { compileSdkVers...
asked by 25.08.2018 / 01:52
0
answers

Customizing android Fragments in this code

Well, I started studying java for android development this year and now I'm interested in browsing tabs that stay on the toolbar. Well, I was able to understand part of the code, but I could not change the content of the fragments. Could someone...
asked by 25.07.2018 / 01:49