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

  • SEARCH
  • Home
  • 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 7505039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:46:36+00:00 2026-05-29T21:46:36+00:00

When I open droid I don’t want any buttons I just want a sequence

  • 0

When I open droid I don’t want any buttons I just want a sequence of images to automatically show, each for a few seconds before it’s replaced with another image and once all the images are shown have it loop back to the first image. I am still new to droid development and I am obviously missing something. any help will be greatly appreciated.

my java file

public class Slidingpics2Activity extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    ImageView image = (ImageView) findViewById(R.id.treat);
    image.setBackgroundResource(R.drawable.theanime);

    AnimationDrawable Anime = (AnimationDrawable) image.getBackground();
    Anime.start();

}

}

I put theanime.xml file in the drawable folder

 <?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" 
android:oneshot="false">

    <item android:drawable="@drawable/image1" android:duration="1000" />
    <item android:drawable="@drawable/image2" android:duration="1000" />
    <item android:drawable="@drawable/image3" android:duration="1000" />
    <item android:drawable="@drawable/image4" android:duration="1000" />
</animation-list>

after that I mad my layout main.xml looks like this

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<ImageView
        android:id="@+id/treat" 
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        />

</LinearLayout>
  • 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-29T21:46:36+00:00Added an answer on May 29, 2026 at 9:46 pm

    Sound what you need is a ViewFlipper:

    Simple ViewAnimator that will animate between two or more views that
    have been added to it. Only one child is shown at a time. If
    requested, can automatically flip between each child at a regular
    interval

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

Sidebar

Related Questions

When open a perspective, i want to show two editors in different floders. But
Open up Apple's Calendar app. When you name a new appointment, it automatically capitalizes
Open up http://irule.at/quovadis , and it will show you a regular theme. The problem
Open ended question (be creative!) for a real use case. Essentially I want to
Open up this site in IE8: http://www.bavarianblue.com See the white background? Any ideas what
Open source implementation will be preferred.
Open up a Rails console and enter this: 2.weeks.ago.between? 2.weeks.ago, 1.week.ago Did it give
Open Ankh seems to be using Subversion 1.6.2 and Tortoise uses Subversion 1.6.0. After
The Open button on the open file dialog used in certain windows applications includes
The Open/Closed Principle states that software entities (classes, modules, etc.) should be open for

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.