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 3334162
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:52:29+00:00 2026-05-17T23:52:29+00:00

I am new in android development, and I need advice about structure.I want to

  • 0

I am new in android development, and I need advice about structure.I want to develop Tic tac toe game, and have 3 images: 1 – 3×3 grid 2 – circle 3- cross.

My idea:
I need some layout with background image(3×3 grid) and table 3 x 3 with ImageViews, after clicking on some position we load image(circle or cross) in our table.

Questions:

-First of all is my idea correct?

-I tried to set background with view.setBackgroundResource(res) but it looks not very good, grid(black colour) loading with background colour black ant is difficult to see something.

UPDATE: I found Tic tac toe game example in android sdk, ..\samples\android-8, maybe it helps to somebody

UPDATE: The best solutin is to use SurfaceView

update: If any body need it https://andoid-tictactoe.googlecode.com/

  • 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-17T23:52:30+00:00Added an answer on May 17, 2026 at 11:52 pm

    Your best bet is probably to use a Canvas and draw on it.

    There’s some great examples included with the SDK. Lunarlander, Jetboy, or maybe Snake.

    Edit:
    Yes, you can. Well kind of…Think of it this way, the order hierarchy of what is displayed is based on the order in which it is drawn. If you did the following, the drawable would be visible over the background:

    canvas.drawBitmap(yourBackgroundImage, 0, 0, null);
    yourDrawable.setBounds(yourRect);
    yourDrawable.draw(canvas);
    

    if you reversed them, the drawable may or may not be visible depending on the background images transparency and size.

    yourDrawable.setBounds(yourRect);
    yourDrawable.draw(canvas);
    canvas.drawBitmap(yourBackgroundImage, 0, 0, null);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am very new to the android development and i need to quickly develop
I'm new to android apps development and I have a basic sqlite question. What
I am new to Android Development. For my project, I need to use REST
I'm new in Android development and I have been making a tutorial for a
I'm new to Android development, so I might be missing something obvious. I want
=== about me === I'm new to android development and barely able to speak
I am new to android development and have a few questions. 1: Can I
I am new to Android development and I have a question regarding custom views
I am brand new to Android development and have gotten through these two resources
I am brand new to Android development and have gotten through these two resources

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.