Skip to content Skip to sidebar Skip to footer

Divide By Zero Error In .xml File

In my android application i created and xml file in \res\layout\admin.xml the layouts i used in it are : . . Component

Solution 1:

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>

Solution 2:

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"?>

Post a Comment for "Divide By Zero Error In .xml File"