Questions tagged as 'android-fragment'

0
answers

Repeated items with different amounts in a ListView

I have a Listview ( lsvProduct ) with some items that come from a request and an EditText amount that the user can change (by default, I bring the value of 0). When I add this item, I send it to another ListView ( Carriage ) with a similar struc...
asked by 12.04.2017 / 16:32
1
answer

Error extracting data from EditText in fragment using a Helper class

I'm trying to get data from an EditText that is in a snippet with the help of a Helper class, to later save to the database, but the following error is shown in the AndroidStudio debugger: Although I have not yet been able to solve the root p...
asked by 02.03.2017 / 18:58
0
answers

Is it possible to receive a null object coming from another fragment in Android?

The problem is this: I have two fragments, the first one has a list, which if clicked, sends an object to be edited in fragment B. In fragment A there is also an include button that when clicked opens fragment B to record certain information. The...
asked by 18.03.2017 / 23:17
2
answers

GoogleApiClient in fragments

The app in question has one main activity and two fragments. There are two information panels, one contains the address list and another shows a map showing the addresses of the list. The list is displayed in RecyclerView , co...
asked by 30.01.2017 / 22:42
2
answers

Press the button on a screen that is a fragment and go to another fragment. How to do?

I have a class of type Fragment and I would like that when the user clicks on the button it would go to another screen that is fragment .. how can I do this? public class AlertaFragment extends Fragment { @Override public View o...
asked by 02.02.2017 / 14:17
1
answer

Android Studio Programming

Second public class error, what can I do ??? If anyone knows please say. Thank you. package com.example.hsantos_98.artofthefire; import android.app.Fragment; import android.os.Bundle; import android.support.annotation.Nullable; import a...
asked by 19.02.2017 / 18:27
0
answers

Error when trying to add a fragment to a project in android studio?

I created a project and did not put anything in it, it is zeroed, only with that textView "Hello World". The problem appeared when I tried to add a fragment (with a + 1 button) to the project: Igaverefreshandnothing.WhenItrytostarttheapp,its...
asked by 18.02.2017 / 22:23
1
answer

Fragment Android

I'm trying to make an app with the Navigation Drawer layout, but it uses Fragments, I can not call another screen using Fragments. Login fragment = new Login(); android.support.v4.app.FragmentTransaction fragmentTrans...
asked by 05.01.2017 / 19:04
0
answers

How to generate fragments automatically?

Hello, I'm developing a project where the user will ask questions in the backend, and I'll have to receive them through an API, generating them one per screen on android. What I need to know is if I can create fragments dynamically, since each u...
asked by 25.11.2016 / 12:28
1
answer

How to deal with location services in fragments

I am creating an app (Android) with two fragments, one with an address list and another with a map pointing to these addresses. In vertical, they are in tabs sliding and in the horizontal, they are side by side, that is, both are always active....
asked by 01.02.2017 / 05:14