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. Issue with adapter redrawing when GridView Item

I'm working on a program that generates dice, lots of dice. I finally
found out how to make an adapter to display an image dynamically, but
now I have a new problem. The dice that are generated/displayed by the
Adapter change if they scroll off the screen. Basically every time
each die image moves into view it is re-randomizing what die it needs
to show. I also need it to log the die results to a separate file, but
I don't know where to stick that code, seeing as it would add dice to
the list every time a die is re-drawn.  This is my current code:


public View getView(int position, View convertView, ViewGroup parent)
{
        ImageView imageView;
        if (convertView == null) {
            imageView = new ImageView(mContext);
            imageView.setLayoutParams(new GridView.LayoutParams(75,
75));
            imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
            imageView.setPadding(1, 1, 1, 1);
        } else {
            imageView = (ImageView) convertView;
        }
                Random RollDie = new Random();
            Die1 = RollDie.nextInt(6);
            Die1Copy = Die1;
            if(((Die1Copy += QuickShoot.BSFinal) < 6)) {
                Die1 += 6;
            }
                imageView.setImageResource(DieResult[Die1]);
                return imageView;
        }
    // references to our images
        private Integer[] DieResult = {
            R.drawable.die1, R.drawable.die2,
            R.drawable.die3, R.drawable.die4,
            R.drawable.die5, R.drawable.die6,
            R.drawable.die1under, R.drawable.die2under,
            R.drawable.die3under, R.drawable.die4under,
            R.drawable.die5under, R.drawable.die6under
    };
}

If anyone knows how I can make it generate a Die for a set position
and then not redraw please let me know you will save my life!

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

2. Computational cost of calling getReadableDatabase or getWriteableDatabase?

I am doing a batch insert for N items and I have to call
getWriteableDatabase method N times in my dbhelper method.
and I find that the insertion time is slow takes  ~9 secs for 50 rows with
~10 columns.
How to improve the speed of a batch insertion, or maybe calling
getWritebableDatabase is an expensive operation time-wise?

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

3. Peer-to-peer phone application?

4. ACTION_NEW_OUTGOING_CALL, abort

5. Notification of SMS messages: android.provider.Telephony.SMS_RECEIVED

6. Home Screen Detection

7. My issues with attempting to root my phone.