Questions tagged as 'android-fragment'

1
answer

Android ListView equal to Instagram

I'm developing a project in Android Studio, the screens of the project are all made in Fragment, I'm using Material Design followed the tutorial
asked by 24.05.2015 / 06:31
2
answers

Create button menu at the bottom in Google maps v2 android

How to create the Menu button equal the Maps App. Here is an example in the red square. Could someone pass an example?     
asked by 14.04.2015 / 04:04
2
answers

Error calling method on fragment

My code below was to do a simple task by clicking on the switch to another screen, but it is giving an error:    Can not make a static reference to the non-static method   callCast () from the type MainActivity I already changed the ch...
asked by 21.03.2014 / 21:04
1
answer

Insert Multiple Markers on Maps

I found a code here on the site, I put it in my project but it did not work, does anyone know how I can solve it? The method below is called in onViewCreated() Note: I'm using the Map within a fragment, can that be? public class Maps...
asked by 23.10.2018 / 01:09
1
answer

Problem with updating a Fragment

I'm learning Android and when trying to develop an application I came across the following situation: I have an Activity that has two Fragments: ReminderListFragment and FilterListFragment . The first fragment has a list of Remin...
asked by 21.05.2018 / 15:51
1
answer

NullPointerException when using setText for a TextView in the fragment

I'm creating a fragment where I have in one part the map and in another a Retrofit object, where I get the date and time of a server. The error occurs inside the onResponse call of Retrofit, where I try to set the TextView with the date and time...
asked by 16.04.2018 / 16:41
2
answers

How to call a method of a fragment in an activity?

I need to use a method of a fragment within an activity, but I can not pass a reference to this activity. Can someone help me? The idea is this: public class MinhaFragment extends Fragment{ ... @Override public void onC...
asked by 14.11.2017 / 23:31
2
answers

Keep focus of item BottomNavigationView clicked after rotating screen

I have a problem when I rotate the screen. I have the following structure: A HomeActivity that handles the clicks in the BottomNavigationView (there are 4 items) Each BottomNavigationView item loads a Fragment with different data How...
asked by 23.08.2017 / 14:13
1
answer

Call screen with fragment

I created a screen with a list view based on the native fragment of android studio, but I did not find a solution to "call" this screen from a button. public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item...
asked by 05.07.2017 / 21:10
1
answer

Change Fragos without loading the entire screen

I have a problem in my studies, when I change the Fragment and then I go back to the source Fragment the data is loaded all over again. And as the data comes from the web, it takes precious time and resources, I wanted a way that while the ap...
asked by 09.06.2017 / 06:46