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

The Archive Base Latest Questions

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

In LunarLander sample game provided as android sample game, I have a confusion about

  • 0

In LunarLander sample game provided as android sample game, I have a confusion about the layout.

As far I know there are some default layouts like FrameLayout, RelativeLayout and so on.
But in the below given layout xml file (Copied from LunarLander ) in line 6 they used

<com.example.android.lunarlander.LunarView

Can any one please explain me about the line ?
If this is this is a layout then how can I manually declare or use this kind of layout ?

Here’s the full xml layout

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

<com.example.android.lunarlander.LunarView
  android:id="@+id/lunar"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"/>

<RelativeLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >
    <TextView
      android:id="@+id/text"
      android:text="@string/lunar_layout_text_text"
      android:visibility="visible"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerInParent="true"
      android:gravity="center_horizontal"
      android:textColor="#88ffffff"
      android:textSize="24sp"/>
 </RelativeLayout>

</FrameLayout>

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-29T23:28:55+00:00Added an answer on May 29, 2026 at 11:28 pm

    LinarView is a custom view ( IIC, derived from surface view ). And as it packed into frame layout, other silbing (RelativeLayout) is overlay over surface view. To use it in your application it has to be available as class. ( via jar, or you can develop it itself )

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

Sidebar

Related Questions

I have a game running on android. basically, it's structure is like lunarlander I
I'm trying to write a game engine in Android, but I don't have much
I've created a simple android game, based on the Lunar Lander sample, and I'm
I am studying the LunarLander example in the Android sample code: http://developer.android.com/resources/samples/LunarLander/index.html I am
I have been working on an Android game for the past 6 months or
I wrote a game used the android SDK sample lunar lander's template, but I
Ok, Just some background... I have a fully functioning game that uses the canvas
I have an Android app modeled after the LunarLander example by Google. I am
I am trying out the (latest) Android SDK, and noticed some strange behavior. I've
I'm working on my first game, and it works fine, but clearly needs some

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.