Questions tagged [android-tabbed-activity]

112 questions
1
vote
1 answer

Android: Saving form data on a swipe rather than from a button

I am very new to android and this is my second app. I am making a tabbed activity where the first fragment has a form to create a new task, the second fragment has the list of all the saved tasks, and the third fragment will show the comments on a…
Ishita Sinha
  • 2,168
  • 4
  • 25
  • 38
0
votes
0 answers

Tabbed Activity didn´t refresh the fragments data until I swipe down

I have a tabbed activity with three fragments and each fragment make a request to an API that shows the matches of the selected day in a date picker, the previous and the next one. When doing that, the entire title is not put on the tabs and to see…
0
votes
0 answers

Big text are being cut at bottom portion of tabbed activity in android

I am using android tabbed activity but, last few lines of big text are being cut at bottom portion of tabbed activity in android. This is the "activity_main.xml" file:-
0
votes
1 answer

Is it possible to put label textbox button with tabbed activity? Being specific i have added hand drawn design photo

Design Layout it shows the layout of app i am building Electricity Bill view app, in which there is tabbed activity on top of it there is textbox button. In textbox user will enter Consumer No when user clicks button then he/she is forwarded to…
0
votes
1 answer

OnScreenRotation with RecyclerView in tabbed Activity

I am using a tabbed Activity. In one of the tabs I have two buttons and a Recyclerview. In the RecyclerView I have two spinners and an edittext. The purpose of the first button is to add a new item in the RecyclerView and the second one is to save…
0
votes
0 answers

How do i put a tabbed layout in my bottom navigation view?

Ive tried using view pager code below but code crashes. I essentially need a tabbed activity in 5 of the bottom navigation. Can you also tell me how i would use the tabbed layout code in the fragments. Thankyou public class client_interface_start…
0
votes
1 answer

how to send data from popup window to a tabbed activity having fragments?

mainActivity has button. After button is clicked a popup message show having a button and a TextInputLayout. data is sent to a tabbed acticity having 2 fragments and the data is shown in textview of first fragment. Error is the data wont show in…
0
votes
0 answers

send data from popup to tabbed activity having fragments

mainActivity has button. After button is clicked a popup message show having a button and a TextInputLayout. data is sent to a tabbed acticity having 2 fragments and the data is shown in textview of first fragment. Error is the data wont show in…
0
votes
2 answers

Tabs are not coming in layout of android studio

I am trying to create tabs in my layout. But instead of showing tab it is showing the below screen in design: Below is the code: **activity_mail.xml**
shCoder
  • 35
  • 1
  • 1
  • 6
0
votes
0 answers

connection with sqlite database from fragments in the tabbed activity of android studio

I have successfully inserted data into sqlite database. But unable to display it in fragment, pls help.... This is my fragment code. public class abpos extends Fragment{ DataBaseHelper myDb; @Override public View…
0
votes
1 answer

Kotlin: setOnClickListener on Fragment Crashes app

I have a MainActivity with a button that calls on a tabbedActivity with FragmentOneActivity and fragment_one.xml. I have placed my button in the fragment_one.xml and perform a Toast on FragmentOneActivity. Here's my code: class Anct3bActivity :…
0
votes
1 answer

How to hide menu item at specific tab, tabbed activity, Kotlin

Assume different menuicons are to be displayed on the toolbar of a tabbed activity at different tabs. One solution is to build a distinct menu for each fragment/tab and inflate at the corresponding onCreateOptionsMenu() function. However, this…
Xfce4
  • 557
  • 5
  • 28
0
votes
1 answer

Questions about ActionBar, Toolbar and menu icons

Assume a tabbed activity with android:theme="@style/AppTheme.NoActionBar" Inside AppBarLayout there is the app title and some space to the right. Xml file is below. How can I add menuitems to this empty space near the Title? (Question 1) Changed…
0
votes
1 answer

RecyclerView: No adapter attached skipping layout (TabbedActivity + Firestore)

I am trying to retrieve data from firestore and display it as a RecyclerView within a TabbedActivity. The data is displaying in each tab/fragment, but sometimes if i swipe forwards through the tabs and then back the data disappears and the error "No…
0
votes
1 answer

I have multiple layout files but the app is only recognising 1?

I am trying to create tabs in an Android Studio project (I am following an online tutorial), and I have created fragment1/2/3_layout.xml files by creating the 1st one and then copy/pasting, but in my fragment1/2/3.java files it is only…