日期:2014-05-20  浏览次数:20693 次

大神们在哪里?解决一个滑动切屏的问题!!
现在我把一个屏都放成了TextView控件,发现,我用ViewFlipper实现滑动时,居然在上面不起作用!


<ViewFlipper
            android:id="@+id/viewflipper"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="2"
            android:flipInterval="3000"
            android:inAnimation="@anim/push_left_in"
            android:outAnimation="@anim/push_left_out"
            android:persistentDrawingCache="animation" >
   <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:orientation="horizontal" >

                <!-- 自定义的控件 -->

                <com.microsenstech.ucarerg.ui.ResultStatGraphView
                    android:id="@+id/rslt_stat_graph"
                    android:layout_width="0dip"
                    android:layout_height="fill_parent"
                    android:layout_weight="2" >
                </com.microsenstech.ucarerg.ui.ResultStatGraphView>
            </LinearLayout>

  <TableLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:padding="3dip"
                    android:stretchColumns="*" >

                    <!-- android:orientation="vertical" -->

                    <TableRow>

                        <TextView
                            android:id="@+id/rslt_act_duration"