Questions tagged as 'android-fragment'

2
answers

Return to a previous Fragment from any Fragment

I have a main activity in which some fragments are called: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_listas); FragmentManager fm = getSuppor...
asked by 29.04.2018 / 16:11
0
answers

Array Adapter is not initialized in android

Good evening!    I have a problem when trying to call a DialogFragment that presents me with a list already with the fixed values in a String [] array, but when I run the app Fragment is simply not instantiated and the getView method is not call...
asked by 26.04.2018 / 02:37
2
answers

Placing MapActivity in a Fragment

So, I have a MapActivity, but I'd like the map to be in a Fragment. How can I do this? I created a Fragment, implemented the MapActivity methods created by Android Studio, but I run into an error. The getSupportFragment () method turns red an...
asked by 20.04.2018 / 11:58
1
answer

Change visibility

How do I change the visibility of a layout that is in another activity? I want to do this by clicking on an image .. I know how to use the onClick method. it just lacks the imagination of how to change visibility at runtime. I've tried: a...
asked by 01.04.2018 / 02:29
0
answers

I can not add objects after ViewPager (image slider)

Hello, I'm trying to make a page like this but I can not add anything else after the ViewPager (I made the slider with viewpager), I tried to put the viewpager in a fragment and use scrollview in the main activity but it did not work. Brief...
asked by 08.03.2018 / 22:19
0
answers

Load fragments on part of the screen?

I wonder if it's possible to type a Tablayout system only on part of the screen. ex: Where the green, blue and orange colors would be the buttons of the Tabs, and the red part would be the Fragment loaded, so by clicking on each of the...
asked by 07.03.2018 / 01:40
0
answers

Implementation of interface in activity

Hello! I have the following problem: A user register, inside an activity that has a ViewPager with 3 fragments that each collects specific user data to save them in the firebase. The idea is that when the user fills the data of the first fragmen...
asked by 11.02.2018 / 18:01
0
answers

Fragment problem

I have a class that uses fragment, but I'm having trouble calling one of these activity . When I do it for my App . I want to click on the MsgFragment fragment. Below is the main class and class I want to call. public class Pr...
asked by 09.02.2018 / 18:09
0
answers

ListView setOnItemClickListener in a fragment

My setOnItemClickListener does not work in the fragment, when I click the listview item in the app to work, I am using a custom adapter, it follows code: public void criarListagem() { List<Curso> cursos = todosOsCursos(); Adapter...
asked by 01.02.2018 / 19:31
0
answers

Search View within a Fragment

Is it possible to put a search view inside a fragment? In my project I'm using a bottom navigation activity that calls 3 fragments in the button exchange below. Inside main has this: if (position == 1) { bottomNavigation.se...
asked by 01.02.2018 / 14:12