Questions tagged as 'android-fragment'

1
answer

Pass value per PagerAdapter builder

I have several activities that call the same PagerAdapter to have a slidable layout in each of the activities that I call it. My intention is to pass a parameter to others that already happened. I added an element of type int to the constructor...
asked by 27.05.2017 / 21:12
2
answers

The app stops when trying to enter data into a database [closed]

I'm new to programming in android studio, I try to make an application that manages a database of SQLite however at the time of trying to record data the app stops. These are my codes: NOTE: I am working with fragments. XML fragment: <...
asked by 27.05.2017 / 02:49
1
answer

Put linearlayout at the end of the screen in a map activity

I want to set a layout on the screen, at the end of the whole. The activity is a map. This is my code of layout <LinearLayout android:layout_width="match_parent" android:layout_height="75sp" android:backgroun...
asked by 15.05.2017 / 11:14
1
answer

problem when going from one fragmet to another [closed]

Hello, the problem is that I'm trying to go from Fragment to another by a button but when I touch the button the other Fragment is positioned on top of the first one, that is, the two fragment are displayed on the screen...
asked by 28.04.2017 / 02:18
2
answers

How to generate a datepicker from a fragment?

I need to create a date picker from a fragment, the problem is that the datepicker that I have seen (examples) are generated from an Activity, and it turns out that for the fragment is not iggual, I need to store a period of time and in the frag...
asked by 21.01.2017 / 20:11
2
answers

Doubt with DrawerLayout and NavigationView when trying to open it from an ImageView

In the ActivityMain of my application, I have created a DrawerLayout and a NavigationView which works perfectly and within the menu that is displayed I have put several links to fragment that are changing as you click...
asked by 27.10.2016 / 16:45
1
answer

RecyclerView: No attached plugin; skipping layout with fragments

I have this error and I have not been able to solve it, I hope someone can help me. public class MainActivity extends AppCompatActivity { private ViewPager mPager; private SlidingTabLayout mTabs; private Toolbar toolbar; private RecyclerView r...
asked by 13.09.2016 / 04:35
1
answer

DialogFragment is not displayed

I am trying to display a DialogFragment with a button so that when I press it, the dialogue simply disappears. It should be shown when a PlainText has no text in it but I can not get it to be displayed. What am I doing wrong? At...
asked by 21.12.2018 / 18:31
0
answers

Insert Dynamic List in RecyclerViewAdapter

I am in the process of creating an app which has some questions, these questions have a response, a list attribute of the question class. since the answers are loaded from the bd. The thing is that I'm trying to load the questions into a spinner...
asked by 12.12.2018 / 08:33
0
answers

ListView shows 1 item only

Wenas People, I have a Fragment where the listView is. And I do not understand why it does not add to the list. I'm going to try to be as clear as possible in the code because I can not think of anything else anymore. When I debug it appears tha...
asked by 12.12.2018 / 04:57