3
誰も私にどのようにして私に教えてもらえますか?ScrollView
同時に垂直と水平を使いたいのですか?Scrollview水平と垂直は同時に動作しません
誰も私にどのようにして私に教えてもらえますか?ScrollView
同時に垂直と水平を使いたいのですか?Scrollview水平と垂直は同時に動作しません
ここをクリックして、問題の解決策を記述した人がいます。 些細なことはありませんが、便利な解決策だと思います。
あなたはそれが私のため
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<HorizontalScrollView
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TableLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TableRow android:id="@+id/first"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<Button android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="back"></Button>
</TableRow>
<TableRow android:id="@+id/second"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Hole
No./Pic"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Distance"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Par"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Stroke"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Player-1"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Player-2"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Player-3"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Player-4"></TextView>
</TableRow>
<TableRow android:id="@+id/third"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="1" android:textSize="24dp"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="222yrds" android:textSize="24dp"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="1" android:textSize="24dp"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="1" android:textSize="24dp"></TextView>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playra1"></EditText>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playrb1"></EditText>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playrc1"></EditText>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playrd1"></EditText>
</TableRow>
<TableRow android:id="@+id/third"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="2"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="1" android:textSize="24dp"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="1" android:textSize="24dp"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="1" android:textSize="24dp"></TextView>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playra2"></EditText>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playrb2"></EditText>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playrc2"></EditText>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playrd2"></EditText>
</TableRow>
<TableRow android:id="@+id/third"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="2"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="1" android:textSize="24dp"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="1" android:textSize="24dp"></TextView>
<TextView android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="1" android:textSize="24dp"></TextView>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playra3"></EditText>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playrb3"></EditText>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playrc3"></EditText>
<EditText android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text=" "
android:id="@+id/playrd3"></EditText>
</TableRow>
</TableLayout>
</HorizontalScrollView>
</ScrollView>
作品が、スクロール、この構築物中の奇数の作品、このように両方のスクロールビューを使用することができます。 1つのスクロールビューが他のスクロールバーをタッチします。斜めにスクロールしません。 –