View on Tabs in TabActivity

by Pankaj Deshpande » Thu, 22 Apr 2010 19:04:22 GMT


Sponsored Links
 Hi all,
I am working on a tab activity, and want images on each tab. I set
indicators as a view and set Image as background resource to each tab. For
each tab, I have started a new Activity and put a textview as a
setContentView in that. Up to my second last tab it works fine, but for lats
tab, all tabs cover my whole screen.
  Why is this happening?

 Thanks in Advance.

Pankaj Deshpande.
-- 
Android Application Developer
Pune.

--



View on Tabs in TabActivity

by Pankaj Deshpande » Thu, 22 Apr 2010 19:04:43 GMT


 Hi all,
I am working on a tab activity, and want images on each tab. I set
indicators as a view and set Image as background resource to each tab.
For each tab, I have started a new Activity and put a textview as a
setContentView in that. Up to my second last tab it works fine, but
for lats tab, all tabs cover my whole screen.
  Why is this happening?

 Thanks in Advance.

Pankaj Deshpande.
--
Android Application Developer
Pune.

--


Sponsored Links


View on Tabs in TabActivity

by pawan nimje » Thu, 22 Apr 2010 19:20:25 GMT


 Hey pankaj can you mail me your project .... i'll look into it n may i can
help you ..

-Pawan Nimje


On Thu, Apr 22, 2010 at 4:32 PM, Pankaj Deshpande



>



View on Tabs in TabActivity

by Sandeep Phansekar » Thu, 22 Apr 2010 21:59:12 GMT


 Hi

there r lots of example available for this solution
just googling u find the solution.

@Pankaj -- u working for which company ? actully i am serching the job in
pune for android position.

-- 
Regards
Sandeep







>>



Other Threads

1. Please help me in defining the style of my custom widget in my theme.

Hi,

I have tried everything thing I can thing of in defining the style of
my widget in my theme. But I still can't get it to work. I have posted
my questions to various forum/newgroup, I can't get my problem
resolved.  I appreciate if someone can help me.


I am tying to define the style of MyWidget in my theme.

I create a widget myself called 'MyWidget' and I want to define the
style of MyWidget in my theme.


And I have added this in my manifest file:

 <application android:label="@string/app_name" android:theme="@style/MyTheme">

This in my themes.xml file:
<resources>
 <style name="MyTheme">
  <item name="buttonStyleMyWidget">@style/MyWidget</item>
  </style>
</resources>

and this in my styles.xml file:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="MyWidget">
      <item name="android:background">@drawable/btn_mywidget_bg</item>
</style>
</resources>

But android did not pick up the style of 'MyWidget' unless I
specifically put 'style='@style/MyWidget'

In other words, in my main.xml, if i specified my 'style' attribute,
my background
drawable was displayed correctly.
 <test.MyWidget android:id="@+id/mywidget" style="@style/MyWidget" />

but if I just do this:
<test.MyWidget android:id="@+id/mywidget" /> , the background drawable
is not display correctly.

Can you please tell me what am I missing?

Thank you.

--~--~---------~--~----~------------~-------~--~----~

2. Restricting number of items AutoCompleteTextView displays.

You cannot control this feature.






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~

3. Programmatically get resource information

4. Margin-problem with changed layout for titlebar

5. How do I remove the default frame around each picture in Gallery?

6. Resize based on orientation.

7. Some bugs of WebView