Most voted "android-fragment" questions
It is one of the great novelties of the Android API, which emerged after the version Android 3.0 Honeycomb, thanks to the arrival of tablets in the market.
Learn more…321 questions
Sort by count of
-
0
votes1
answer94
viewsStart with Splash Screen
I have a project and use the Navigation Drawer Activity, and there was the need to put a Splash screen at the beginning of the project, I tried to put and now is giving an error when opening the…
android android-studio android-layout android-activity android-fragmentasked 5 years, 4 months ago Ari Melo 131 -
0
votes1
answer139
viewsConfigure Cardview in Recyclerview
I have a RecyclerView and use with CardView, the problem is that in one version of android the visualization is different from the other. I would like the visualization of android 9.0 to be the same…
android android-studio android-layout android-fragment android-adapterasked 5 years, 4 months ago Ari Melo 131 -
0
votes1
answer104
viewsConfiguration of the Notificationcompat
I have a simple app to send Notifications, vibrate, and tap on receipt. On my android 4.3 it works, on another my mobile with android 9 it just touch, does not show notification and neither…
-
0
votes1
answer278
viewsClose app upon checkout
Hello, I have an app, it comes down to: a Activity and a fragment. To activity calls the fragment through the onCreate: Code of Activivity who calls the fragment: @Override protected void…
android android-studio android-activity android-fragmentasked 5 years, 3 months ago Aristófanes Melo 89 -
0
votes1
answer65
viewsBack to the main Fragment from a button
Hi, I have an app that uses NavigationDrawer, I have a fragment that has a AlertDialog, and in it I have two send and cancel buttons, no cancel wish back to the desired main Fragment. I managed to…
android android-studio android-activity android-fragmentasked 5 years, 2 months ago Aristófanes Melo 89 -
0
votes1
answer116
viewsanuncio admob no Fragment android studio
I am trying to add banner ad in my app by Fragment, but I could not, nothing appears. What can I do to solve? fragment_inicio.xml <androidx.constraintlayout.widget.ConstraintLayout…
-
0
votes1
answer70
viewsCreate a node inside another in Firebase with Android Studio
I would like to create a node called "Posts" within each user, but I can only create outside the user. It could help me to create the node within the user? Here is an example of how I wanted the…
android-studio firebase android-fragment firebase-databaseasked 4 years, 7 months ago Joao Paulo 11 -
0
votes1
answer1040
viewsError android.view.Inflateexception: Binary XML file line
note the error message! 2020-01-03 16:37:48.091 27513-27513/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.resource.listfragment, PID: 27513 java.lang.RuntimeException: Unable to start…
-
0
votes0
answers21
viewsAdd Google Maps to the Android APP to pick up the user’s current location
I have an Android App, which I use as "Webview", interconnected to my map on the web, with restricted access to registered. In this case, in this APP, I need to take the CURRENT LOCATION OF THE USER…
-
-1
votes2
answers722
viewsReturn to Fragment without creating it again
I have a fragment that shows a Map, and in the app has a registration screen, the first fragment to be created is the Map, if the user wants to register will start another Fragment, after he…
-
-1
votes3
answers886
viewsFragment error "Unable to start Activity"
My error application when opening on a tablet and I can’t identify the error it informs that I have to enable: Unable to start Activity…
java android android-layout android-fragment android-activityasked 8 years, 1 month ago Everton de Freitas 41 -
-1
votes1
answer818
viewsSave an Arraylist<> to an SQLITE table
Speaks Galera, I’m wanting to save an array list in a table in SQLITE, can I do it? If yes, how? This is my table: db.execSQL("create table amc (_id integer primary key autoincrement,tipo text not…
-
-1
votes1
answer268
viewsHow to Set a Home Screen Fragment for Android App
I created an APP with a drawer menu, that menu drawable that appears as a template when creating a project in Android Studio. I managed to create the fragments and relate to the menu, is working…
android android-layout android-fragment android-activityasked 7 years, 2 months ago Thyago Dias 465 -
-1
votes1
answer109
viewsError while changing screen orientation using Fragments
While turning the screen orientation I get this error: Error android.view.Inflateexception: Binary XML file line #23: Binary XML file line #11: Error inflating class Fragment Question: What could be…
-
-1
votes2
answers761
viewsError - Binary XML file line #30: Binary XML file line #30: Error inflating class Fragment
I have an Fragment...class in which I am inflating an xml file. This Fragment is being called in Mainactivity...but when executed this error appears java.lang.Runtimeexception: Unable to start…
-
-1
votes1
answer131
viewsUse setSupportActionBar on Fragment
I have an app that uses NavigationDrawer, I need to change the name of toolbar for each fragment. My MainActivity extension of AppCompatActivity then I can change the fragment name using: toolbar =…
-
-1
votes1
answer104
viewsProblem with listview inside a Fragment
My problem is that when I click on some listview item the app does not return me any menu options. Option which, when clicked would call a new Activity. Code: @Override public View…
-
-1
votes1
answer168
viewsAndroid Studio Click a button inside a Fragment
Hello, I need to trigger the event click a button that is inside a Fragment. I was following the answer of this article, but (excuse my ignorance) it was too complicated for me to understand,…
-
-1
votes1
answer54
viewsAndroid Bottomappbar with Framelayout and Coordinatorlayout
I have a problem in Framelayout the working is correct, but Framelayout is with the starting position of Top above Appbarlayout, according to image: Below the code of Main, where the base is.…
-
-1
votes1
answer123
viewsRecyclerview inside another Recyclerview using Firebase Android data
I’m learning about android now, and putting into practice what I’m learning, but now I have a problem that I can not solve, or find exactly what I want My idea was to add a recyclerView in Vertical…
-
-2
votes1
answer224
viewsHow to implement the method onBackPressed() in a class it inherits from Fragment, Causing it to return to the previous Fragment?
Segue um trecho de código para exemplificar meu problema: public class DashboardFragment extends Fragment{ ... } @Override public void onBackPressed(){ //Aqui volta para o Fragment anterior... }…