Questions tagged [android-tabbed-activity]

112 questions
0
votes
1 answer

How to upload images to firebase storage from tabbed actvity?

I want my newfeed.java tab to allow users to choose an image from gallery and > upload it to the firebase storage. Also, how to retrieve these images and >display in a listview ? Newfeed.java import static android.app.Activity.RESULT_OK; …
0
votes
1 answer

How can I have a tabbed app in Android like Spotify does?

I'm totally new to Android development. I even don't know the name of components yet, something that make a bit harder to find how can I reach my goals. Now my main goal is to desing a screen with a bottom tabbed bar, where the user can click in the…
0
votes
0 answers

Tabbed Activity=>Binary XML file line : Error inflating class null

But another tabbed activity is running flawlessly which has similar code to this activity. Even changed layout files but same error message is displayed. import android.support.v4.app.Fragment; import android.os.Bundle; import…
0
votes
3 answers

Add button on tabbed activity

Hi. I have tabbed activity, i have 10 fragment in my project and i added "Add Button" button to fragment 1.When i clicked this button, new button has created in linear layout.İts ok, but i have a problem after this.for example, if i go to different…
0
votes
1 answer

Android Tabbed Layout is Scrollable?

I'm developing an activity with Tabbed Layout consisting of 2 fragment layout. The first fragment consisted of Listview and an EditText. The problem with my ui is my TabbedLayout is scrollable. I mean when I try to scroll on the toolbar , it's…
0
votes
4 answers

Android studio 2.2.3 back button activity

I have created a demo app which comprises menu drawer and the tabbed activity in a same window by using drawer layout.The problem is when i select the fragments in the drawer menu it redirects its relevant fragment page but when tap back button the…
0
votes
1 answer

Android-Firebase- java.lang.NullPointerException in recyclerView

I am making a tabbed activity with multiple fragments which populate themselves with RecyclerView and the data for this is being retrieved from Firebase Realtime database and Storage as backend. The error: E/AndroidRuntime: FATAL EXCEPTION: main …
0
votes
1 answer

How can a load to a specific tab / fragment in a Tablayout from a different activity using the Intent?

In activity A is a button. When you click the button in activity A it'll take you to TabbedActivity which has 5 tabs / fragments that show a list. Everytime I click on the button it will load to Tab1 by default. How can I make it load into Tab2…
0
votes
1 answer

Footer in Tabbed Activity

I am using Tabbed Activity and I have three tabs with corresponding fragments. Now I want to dispay a footer that displays on every fragment when I change the Tab. Is this possible?? Please give me an simple example
0
votes
1 answer

Using radio buttons in tabbed fragment

I have a tabbed activity and in one of the fragments I have a radio group with 3 radio buttons. I am trying to figure out how to determine which radio buttons is selected. I suspect I needed to make a java file for the fragment. I am not sure if…
0
votes
1 answer

Add a button for slide the page of a TabbedActivity - Android

I'm really new to Android and I just created a new Tabbed Activity from the gallery of Android Studio. Now i want to add a Button "Next" in the first screen that automatically slide to the second View of the Tabbed Activity. This is my code for…
GMX
  • 950
  • 1
  • 14
  • 29
0
votes
1 answer

Android system buttons are overlapping ListView

I have main activity with tabbed fragments .. in fragment I have listview, but when I scroll to last item on bottom, this item is covered by system buttons: screenshot here is my activity xml:
0
votes
3 answers

Executing AsyncTask from PlaceHolderFragment: "'com.example.Activity.this' cannot be referenced from a static context"

I created a tabbed activity called UserProfile.java. As many of you know, this kind of activity comes with a built-in class called PlaceholderFragment which is basically where the magic happens. Mine looks as follows: public static class…
0
votes
1 answer

why setCurrentItem() of viewPager works for next page and not for previous page?

I am using Tabbed Activity of Android Studio. I'm moving between the pages swiping but i added 2 views to move next and previous by onclick method but it doesn't work to go back only to go next. nextAbitudini.setOnClickListener(new…
alfo888_ibg
  • 1,847
  • 5
  • 25
  • 43
0
votes
3 answers

How to call a fragment method from an activity in android?

I'm having a tabbed View, and a Floating Action Button on my Main Activity. Whenever I click on the Floating Action Button, I want to call a method that is present in my fragment's code. I tried many things, but it is saying that Attempt to invoke…