Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6789377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:35:48+00:00 2026-05-26T17:35:48+00:00

I have some buttons one is main, others are child, I want blinking effect

  • 0

I have some buttons one is main, others are child, I want blinking effect on main button when I touch child buttons.

I have used onTouchListener on all child buttons, in those listeners, I am calling a method which i used to blink the main button.

method.

   public void refreshMainButton() {
        Bitmap b1 = Bitmap.createBitmap(BitmapFactory.decodeResource(
                getResources(), R.drawable.tabouterover_one));
        Bitmap b2 = Bitmap.createBitmap(BitmapFactory.decodeResource(
                getResources(), R.drawable.tabouterover_two));
        Bitmap b3 = Bitmap.createBitmap(BitmapFactory.decodeResource(
                getResources(), R.drawable.tabouterover_three));
        Bitmap b = Bitmap.createBitmap(BitmapFactory.decodeResource(
                getResources(), R.drawable.tabmain_two));

        BitmapDrawable d1 = new BitmapDrawable(b1);
        outerImageViews[1].setBackgroundDrawable(d1);
        BitmapDrawable d2 = new BitmapDrawable(b2);
        outerImageViews[1].setBackgroundDrawable(d2);
        BitmapDrawable d3 = new BitmapDrawable(b3);
        outerImageViews[1].setBackgroundDrawable(d3);

        try {
            wait(1000);
        } catch (Exception e) {
        }
        BitmapDrawable d4 = new BitmapDrawable(b);
        outerImageViews[1].setBackgroundDrawable(d4);
    }

This is showing no effect on main button.

If any one has any idea, please help me.

Thanks in advance…!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:35:49+00:00Added an answer on May 26, 2026 at 5:35 pm

    I would recommend to use animations to archive this effect.

    Android has very harsh limits in the Activity – if the Activity does not respond within a certain time (I guess it was 5 seconds) the application shows a dialog to end it. Into this trap you will run (perhaps) with the wait construct.

    Now you might think of laying this out into a thread. But this won’t work, because the UI can only be manipulated from inside the activity.

    So just create an animation and start it. Android will do the reset 🙂
    I hope I could help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some filter and one grid.And grid have some buttons like modify/edit.I am
Lets say I have one row with three columns - some buttons on left
I have a FrameLayout view which contains one (MapView-like) control and some additional buttons
I have some dynamic buttons that look like this: <input type=button name=button id=button value=Click
I have some 10 buttons with different names each.On selecting each button I need
I have four textboxes one combobox and one button ( and some other controls)
I have some buttons I am trying to create, and when I try to
I have some buttons in an UIView. My problem is, that they get cut
I have some 10 buttons with image-text and hover states for each. What I
In my application I have some link buttons there but when I right click

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.