I am developing an Android application consisting of 4 tabs. On the first tab I have a button, which again calls an Activity called ActivityA.
When my ActiviyA is started, the tab control is not shown anymore.
Can anybody provide solution for this.
...
Hello all,
I have a auto-complete textbox in which the user makes a selection. From here I want to load a tabbed layout which is based on the user selection. The problem is I cant figure out a clean way to pass that selection to each of the tabs. At the moment I can pass an intent to the 'tabhost' activity and then pass to each child ac...
I've a border set around a drawable using LinearLayout (bg: rounded rectangle).
The drawable and the border is used as a tab view. I'd like to change the border color of the tab when it is selected.
How can I do this?
Color state list doesn't seem to work as the view being selected is not the shape (i.e border) but the tab. Drawable s...
I have been reading a lot of comments on how it is more lightweight to use views instead of intents in setContent when using tabs.
Since I will be creating an app with tabs, I am trying to implement this instead of having intents inside setContent. However, I am having a difficult time looking for examples or straightforward tutorials o...
Hello,
I am trying to create smaller tabs in android -- but I can't seem to get it to work because all that happens when I create a smaller tab is that it shows the bigger tab -- but without a drawable.
This is my layout code for tabs now -- but the height isn't wrapping for some reason -- it just goes to Android's usual layout height...
I have an application with 4 tabs. By default every tab width is 1/4 of the screen width. How can I override this?
I need the tabs to have a different width for each one. Any ideas on how to accomplish that?
...
I am getting the following error when I try to launch an activity containing a tabhost.
08-25 16:51:42.551:
ERROR/AndroidRuntime(27863):
java.lang.RuntimeException: Unable to
start activity
ComponentInfo{com.paratransit/com.paratransit.jobDialog}:
java.lang.RuntimeException: Could not
create tab content because could no...
When I view the following xml file in the layout view (eclispse), I got NullPointerException:null message, but when I run the code, it works, can anyone explain this to me why?
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
...
I need to use my custom view for the indicators of my TabHost. IN Android api level >=4 no problem but in the Android api level <4 this method is not implemented. Any suggestion?
I was thinking to implement this method but unfortunately the TabHost class does not allow changes because has all attributes private and not protected.
Tha...
Hi,
Is there any simple way to close the current tab or single tab in androids?
I don't want to do clearing all tabs and adding the required tabs?
Please suggest me.
Thanks in advance.
With regards
Kavya
...
Hi all,
I'm trying to get my tabicon to change when a tab is pressed (i.e. when it changes color when you press the tab, but haven't released yet). I've created a selector as follows:
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Non focused states -->
<it...
I'm very new to Android (like 2 days), but I'm experienced with other layout toolkits. I'm trying to put an AdView below a TabHost, and it seems that I can either get the TabWidget or the AdView to display correctly, but never both.
First, here's an ASCII art version of what I'm trying to accomplish:
----------------------------------...
main.xml<TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content">
<FrameLayout android:id="@android:id/t...
Hey... i'm trying to create an activity with the layout structure like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TabHost android:id="@+i...
I am not using an image icon, only a (fixed size) text indicator. How do I set the tab height to its most efficient size?[wrap_content has no effect.]
...
Hello,
I have a TabHost activity with 2 child activities. My problem is that when I'm overriding the onTouchEvent method (for any of these two child activities) only the MotionEvent.ACTION_DOWN event is received. Any help would be appreciated.
...
My app has three tabs, A, B, C that have three distinct activities.
Tab A includes a list view. User can either select Tab B or scroll the list view in A, selecting a row will take him to Tab B with the position of the selected row.
How can I detect in Tab B that the user has selected a row or clicked on Tab B. Clicking on Tab B sele...
I'm writing an application that needs to work on a variety of Android devices, each with their own carrier-specific themeing.
Unfortunately, there's a problem in that the tab themes for each device are incompatible --- stock Android uses light-background, dark-foreground for the selected tab, but the HTC Desire uses dark-background, lig...
Hi, i want to make an IM application
which show a contact list as main page
and when i want to chat or do a
conference it opens a new tab. I have
looked in this web, but it all kind
get blurry. Do i need to use
LocalActivityManager, or ActivityGroup
? and if i need to use it, how can i
implement it the right way. Right...
Following situation:
I have TabActivity with e.g. three tabs, TabA, TabB, TabC.
There are a button in activity (Act_C_1) of TabC. So if the user clicks on that button, another activity (Act_C_2) should occur in TabC.
I thank you in advance for any suggestions / or ideas.
Mur
UPD:
Here is my code
TabActivity with three Activities:
...