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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:45:48+00:00 2026-05-27T13:45:48+00:00

So I don’t see where it is casting it into android.view.ViewGroup I get this

  • 0

So I don’t see where it is casting it into android.view.ViewGroup I get this error message when I try to view my xml in the graphic view. I haven’t done anything to the actual java this pertains too.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffffff"
android:orientation="vertical" >

<TableLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_gravity="center"
    android:stretchColumns="1" >

    <TableRow
        android:layout_width="fill_parent"
        android:layout_height="1.0dp"
        android:background="@drawable/list_divider_holo_light" />

    <TableRow
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >

Here I tired to make a style with these elements and it wouldn’t accept it.

        <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginLeft="25dp"
            android:text="@string/add_alarm"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:textColor="#ff505050"
            android:textSize="18.0sp" />

        <Button
            android:id="@+id/bSetTimer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginLeft="100.0dp"
            android:text="Button" />
    </TableRow>

    <Button
        android:id="@+id/bSetAlarm"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button" />

    <TextView
        android:id="@+id/textView2"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="Small Text" >

        <TableRow
            android:layout_width="fill_parent"
            android:layout_height="2.0dp"
            android:background="@drawable/list_divider_holo_light" />

        <TableRow
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:paddingTop="10dp" >

            <TextView
                android:layout_height="20.0dp"
                android:layout_gravity="center_horizontal"
                android:layout_marginLeft="40.0dp"
                android:paddingLeft="25.0dip"
                android:text="@string/alarm_volume_title" />
        </TableRow>

        <SeekBar
            android:id="@+id/default_volume_seekbar"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="15.0dp"
            android:paddingTop="2.0dip" />
    </TextView>
</TableLayout>

  • 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-27T13:45:48+00:00Added an answer on May 27, 2026 at 1:45 pm

    The text view textView2 is not closed (it is just before closing the table layout), and the runtime is trying to cast it to a viewgroup in order to add the 2 table rows and seekbar.

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

Sidebar

Related Questions

(Don't know if this is strictly on-topic, but I don't see any better Stack
I don't understand why this code doesn't work: function Messages(type,text) { console.log(In function Message);
Don't have much to say, just can get into the event handler. XAML: <Grid>
Don't know what to do with this error. How to add data in SQL
Don't know why this conversion fails. SELECT CAST('32.999' AS INT) throws the error saying
Don't dismiss this as a newbie question! It's not, I'm not, I've tried everything,
I don't understand where the extra bits are coming from in this article about
Don't know if this has been asked before, so point me to another question
Don't know how to explain it better but i'm trying to get a response
I don't know how better to describe this. So take this example. var a

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.