different layout for different gridview in the tabslayout - android

I have a tablayout. In the first tab there is a gridview layout. On the last tab there is a button. On click of the button another tablayout screen is displayed. This tabbed screen in turn contains another gridview.
My problem is that the inner gridview layout is not loaded, instead even in the inner screens the homescreen gridview is visible. There is no error in the logcat.
Any ideas please?
Thanks,

Related

how to show a fragment layout on full screen and overlap all the layout of mainactivity.xml?

I am working on a application which has MainActivity and 3 fragments.
on Main activity xml file there is noActionBar but there is a Linear Layout for back Button and another layout for my fragments to show the contents of fragments.
Now I want to show two fragments on the desired layout of mainactivity which I am doing and working perfectly file and third fragment where I am showing a video but want to show full on screen and should overlap all the layouts of main activity including back button layout.
for this fragment video is showing below the back button layout.
how can I achieve full screen video play ?
NOte: Please dont ask me why I put back button layout.(this is my requirement)
You can set your "not-action-bar" layout's visibility to View.GONE.

how to block UI from coming up on softkeyboard display

I am using same activity for multiple fragments. every fragment there is a searchview. Except home fragment in all other fragment we display listviews. In home fragment i have linear layouts to display some buttons and footer view. And when i type something in searchview in the home fragment it will display listview.i want to resize my screen when keyboard is up. So i have used below mentioned tag in manifest file for the actvity.
android:windowSoftInputMode="adjustResize"
It is wokring fine in all the fragments except home fragment. In home fragment when i tap on searchview(before typing.ie still displaying the buttons) the screen including the footer view is up. No issues with layout contains buttons. becuase it is scrollable. But topmost layout is not visible fully. Is it possible to stop it from pushing the footer layout to top in this fragment?

ListView inside nested TabHost

I have 4 tabs at the bottom of the screen.
the second tab opens an activity which is having 3-7 tabs of its own.
all these tabs shows different lists.
I am able to navigate to list, but list view hides the bottom tabs.
How can I add listview inside tabhost child of another tabhost ?
I don't want any tab to hide.
make layout_marginBottom in your listView according your layout

TabsActivity leaves a vertical gap when adding a view next to tabs using Tabs Activity

I am trying to put a view horizontally on the right side of the tabs. If i put a view next to tabs, the activity displayed in tabs does not cover the region which is outside tabs thus it leaves a gap for that view. Does anyone know how to fix this.
Temporarily, I am using views instead of Tabs which made my layout very complex.

How to show small tab interfaces in ordinary activities (non-tabactivity)?

I wish to show tabs in an activity such that one of the tabs will be a comment form and the other tab will be a list of comments submitted by other users of the application.
I do not wish to implement it as a TabActivity - where the whole screen is occupied by the view, with the tabs at the top. I wish to show this tab interface below a image both of which will be in a <LinearLayout android:orientation="vertical">.
How do I accomplish this?
You can give a layout to TabActivity where you have LinearLayout on the top as you desired and then the tabs

Categories

Resources