Divide by zero error in .xml file

后端 未结 2 687
臣服心动
臣服心动 2020-12-17 01:17

In my android application i created and xml file in \\res\\layout\\admin.xml

the layouts i used in it are :


         


        
相关标签:
2条回答
  • 2020-12-17 02:06

    try including this at the top of your whole file. it fixed the issue for me!

    (without qoutes on the outside of the carrets)

    <?xml version="1.0" encoding="utf-8"?>
    
    0 讨论(0)
  • 2020-12-17 02:07

    I think its your 2nd table layout, which doesn't have any columns in it, yet you're trying to stretch them all.

    <TableLayout android:layout_width="wrap_content"
                    android:layout_height="wrap_content" android:stretchColumns="*"
                    android:scrollbars="vertical"
                    android:scrollbarAlwaysDrawVerticalTrack="true" android:id="@+id/pinDetailsTable">
                    <TableRow>
                        <!-- <TextView android:text="" android:padding="3dip" style="@style/text_subheader_wh" 
                            /> <TextView android:text="" android:padding="3dip" style="@style/text_subheader_wh" 
                            /> <TextView android:text="" android:padding="3dip" style="@style/text_subheader_wh" 
                            /> <TextView android:text="" android:padding="3dip" style="@style/text_subheader_wh" 
                            /> <TextView android:text="" android:padding="3dip" style="@style/text_subheader_wh" 
                            /> -->
                    </TableRow>
                </TableLayout>
    
    0 讨论(0)
提交回复
热议问题