Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android misc widgets面板问题_Android - Fatal编程技术网

Android misc widgets面板问题

Android misc widgets面板问题,android,Android,我的情况如下: 顶部面板和按钮面板包装了一个滚动查看器,在屏幕激活后,该查看器将充满数据。 顶部面板工作正常,但当我尝试打开底部面板时,我得到一个被零除的异常,原因是mContentHeight为0(内部面板代码) 有什么建议吗 <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content"

我的情况如下: 顶部面板和按钮面板包装了一个滚动查看器,在屏幕激活后,该查看器将充满数据。 顶部面板工作正常,但当我尝试打开底部面板时,我得到一个被零除的异常,原因是mContentHeight为0(内部面板代码) 有什么建议吗

<LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical" >

                <org.miscwidgets.widget.Panel
                    android:id="@+id/topPanel"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    panel:animationDuration="1000"
                    panel:content="@+id/top_content"
                    panel:handle="@+id/panelHandle"
                    panel:linearFlying="true"
                    android:paddingBottom="4dip"
                    panel:position="top" >

                    <Button
                        android:id="@+id/panelHandle"
                        android:layout_width="fill_parent"
                        android:layout_height="0.1dip" />

                    <LinearLayout
                        android:id="@+id/top_content"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal" >

                        <ImageView
                            android:id="@+id/imageView2"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:src="@drawable/logo" />
                    </LinearLayout>
                </org.miscwidgets.widget.Panel>

                <ScrollView
                    android:id="@+id/deal_box_streaps_scroller"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent" >

                    <LinearLayout
                        android:id="@+id/deal_box_streaps_container"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:orientation="vertical" >
                    </LinearLayout>
                </ScrollView>

                <org.miscwidgets.widget.Panel
                    android:id="@+id/buttomPanel"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    panel:animationDuration="1200"
                    panel:content="@+id/buttom_content"
                    panel:handle="@+id/panelHandle2"
                    android:paddingTop="4dip"
                    panel:position="bottom" >

                    <Button
                        android:id="@+id/panelHandle2"
                        android:layout_width="fill_parent"
                        android:layout_height="120dip" />

                    <LinearLayout
                        android:id="@+id/buttom_content"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal" >

                        <ImageView
                            android:id="@+id/imageView21"
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:src="@drawable/logo" />
                    </LinearLayout>
                </org.miscwidgets.widget.Panel>
            </LinearLayout>


人们怎么知道你的
面板小部件是什么?为什么只有在您指出代码中抛出了
异常时才发布布局?张贴你的跟踪。你没有给那些对你的问题有意见的人太多的合作机会。不要将高度设置为0。@aneal:这是一个miscwidget面板,一个开源@aneal:并且0的高度很好,我只是不希望手柄在我的屏幕上占据空间,我从另一个按钮打开面板。