Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid.widget.TextView cannot be cast to android.view.ViewGroup
    primarykey
    data
    text
    <p>So I don't see where it is casting it into <code>android.view.ViewGroup</code> 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. </p> <pre><code>&lt;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" &gt; &lt;TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" android:stretchColumns="1" &gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="1.0dp" android:background="@drawable/list_divider_holo_light" /&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; </code></pre> <p>Here I tired to make a style with these elements and it wouldn't accept it. </p> <pre><code> &lt;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" /&gt; &lt;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" /&gt; &lt;/TableRow&gt; &lt;Button android:id="@+id/bSetAlarm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" /&gt; &lt;TextView android:id="@+id/textView2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Small Text" &gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="2.0dp" android:background="@drawable/list_divider_holo_light" /&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingTop="10dp" &gt; &lt;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" /&gt; &lt;/TableRow&gt; &lt;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" /&gt; &lt;/TextView&gt; &lt;/TableLayout&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload