Questions tagged as 'android-fragment'

0
answers

do I need to call a fragment detail, from a RecyclerView that is within a fragment

I have a TabLayout and a ViewPager with three fragment; each fragment has a RecyclerView; I want to select some option of the recyclerview and that this is shown in detail in another Fragment     
asked by 28.09.2018 / 22:53
0
answers

Incompatibility between android.app.Fragment and android.support.v4.app.Fragment

I do not know how to solve this problem, because I have to use both, but in different classes. In the MainActivity I have two menus with: import android.support.v4.app.Fragment; ….. …. private class PagerAdapter extends FragmentPagerAdapter...
asked by 25.09.2018 / 19:01
0
answers

Run sequentially Fragments-Android operations?

I have a question, I hope you can help me, I have a graphical interface that works with a library that loads several fragments simultaneously more or less of this type, that is, it does not wait for the click event to load the "tabs" th...
asked by 26.09.2018 / 00:09
0
answers

Get data from USSD

I am trying to obtain data from a popup window of the USSD protocol, since my application, I can call the code in this almost * 144 # without any problem, but nevertheless, I have dealt with imnumerable codes found on the internet without obtain...
asked by 25.09.2018 / 02:58
0
answers

Load Data in a fragment in Android

I'm doing an app in Android Studio to answer forms, the app generates a PageView with the number of categories that are in a table and each time a "page" is generated you should print the name of the category in which it is, until...
asked by 20.09.2018 / 13:23
1
answer

Problem with the fragments in android

Good afternoon friends, get to the point: public class MainActivity extends AppCompatActivity { Fragment currentFragment; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContent...
asked by 15.09.2018 / 22:40
2
answers

How to invoke a fragment from another activity?

I have MainActivity 2 fragments, when I go to SecondActivity from there I want to go back to the fragment2 of MainActivity by passing some data to it. But I get an overflow error trying to get the fragment from MainActivity: getSupportFragm...
asked by 13.09.2018 / 21:01
0
answers

Use Recyclerview in fragments with data from a BD

I am new to programming, I have a project in which I have been trying for a long time to "inflate" a recyclerview in fragments with Sql data. I appreciate your help ... I will try to detail as best as possible: I work with an activity of a libra...
asked by 30.08.2018 / 02:00
1
answer

Spinner on white

I have two Spinners in a fragmentLayout , both work but I can not see them in the fragmentLayout , they appear in white. p> This is the fragment: This is a Spinner that you can not see: Fragment XML: <?xml ver...
asked by 04.09.2018 / 19:57
0
answers

Show backspace icon in actionbar using Fragment

I am using the main activity to call my fragment but I need the icon to be implemented in actionbar of backspace. call fragment: getSupportFragmentManager() .beginTransaction() .replace(R.id.fra...
asked by 30.08.2018 / 23:21