0

每个人都知道魔方是如何工作的。
是否有可能在 android 中做这样的事情:我有 5 对 5 个方形按钮。是否可以将它们旋转为魔方(2D)?如果我有这样的事情:

<ScrollView android:id="@+id/scrollView1"
            android:layout_width="fill_parent" android:layout_height="fill_parent"
            xmlns:android="http://schemas.android.com/apk/res/android">
    <LinearLayout android:id="@+id/linearLayout1"
                  android:layout_width="match_parent" android:layout_height="match_parent"
                  android:orientation="vertical">
        <HorizontalScrollView android:id="@+id/horizontalScrollView1"
                              android:layout_width="wrap_content" android:layout_height="wrap_content">
            <LinearLayout android:id="@+id/linearLayout2"
                          android:layout_width="match_parent" android:layout_height="match_parent"
                          android:orientation="horizontal">

            </LinearLayout>
        </HorizontalScrollView>
    </LinearLayout>
 </ScrollView>

可以垂直或水平滚动线条。但我想水平滚动对象,垂直滚动对象。我怎样才能做到这一点?

4

1 回答 1

0

不,它不会那样工作。滚动滚动在 Android 上效果不佳。为了做类似的事情,我建议你制作自己的类型ScrollView来查看滚动方向并根据输入滚动或不滚动。

于 2012-11-30T09:39:23.433 回答