0
私は悪い問題があります。私は私のアプリにスクロールビューを使用する必要がありますが、これは起動時にeditextキーボードを開きます。 キーボードが開いている場合、スクロールビューは機能しますが、キーボードを閉じるとスクロールできません。 この問題を解決するにはどうすればよいですか?ScrollView私の編集テキストを開き、開いている場合にのみ動作します
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/taglio"
android:orientation="horizontal"
android:layout_weight="1">
<Button
android:text="+"
android:layout_width="0dp"
android:layout_height="match_parent"
android:id="@+id/piutagliodonna"
android:textStyle="normal|bold"
android:layout_weight="1"
android:alpha="0.70"
/>
<EditText
android:layout_width="0dp"
android:layout_height="match_parent"
android:inputType="numberDecimal"
android:ems="10"
android:id="@+id/editTexttagliodonna"
android:hint="0"
android:textAlignment="center"
android:layout_weight="1"/>
<Button
android:text="-"
android:layout_width="0dp"
android:layout_height="match_parent"
android:id="@+id/menotagliodonna"
android:layout_weight="1"
android:textStyle="normal|bold"
android:alpha="0.70"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
OK今の活動は、キーボードは近いですが、私のスクロールビューはいけない仕事起動したとき。最初のlinearlayoutにこのコードを追加しました: 'android:focusable =" true " アンドロイド:focusableInTouchMode =" true "' – Crowley91t