每个人都知道魔方是如何工作的。
是否有可能在 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>
可以垂直或水平滚动线条。但我想水平滚动对象,垂直滚动对象。我怎样才能做到这一点?