次のような線形レイアウトがあります。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/linear_layout"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
tools:context=".activities.EnrolStudentFormActivity">
<include
layout="@layout/app_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:fitsSystemWindows="true" />
<ListView
android:id="@+id/list_view
android:layout_width="match_pare
android:layout_height="wrap_cont
android:divider="@null"
android:dividerHeight="0dp" />
</LinearLayout>
いくつかの
ImageView
で
s、
TextInputLayout
sおよび
TextInputEditText
間にあります。このレイアウトをスクロール可能にします。
ScrollView
でスクロール可能にしようとしましたおよび
NestedScrollView
、しかし両方とも
ListView
を台無しにしましたアップ。
私も
ListView
を変更していますコンテンツを動的に、私はいくつかの
TextInputEditText
を持っています
s内部
TextInputLayout
s
ListView
の中
。
ListView
のサイズ変更あまり役に立たず、
TextInputEditText
をクリックできません
ListView
の中
。どうやら
ScrollView
タッチ入力をキャプチャします。
ListView
を取得できる回避策はありますか
ScrollView
の中または、
TextInputEditText
を作成しながら、線形レイアウトをスクロール可能にします
ListView
の中使える?
関連した質問
- 電卓アプリでDecimalFormatのエラーを解決する方法
- GPIO制御にJavaクラスを使用して、AndroidOSで実行されるアプリケーションを作成する方法
- Android(Kotlin):オブザーバーのタイプの不一致
- Androidプロジェクトで使用されるJARからのロギング
- NordicThingy:52を使用したAndroid BluetoothGATTタイムアウト
- 応答を処理するKotlinRetrofit
- 作成中のスレッドがデーモンである場合に限り、Javaスレッドはデーモンですか?
- AlertDilogからMainActivtyにデータリターンを渡します
- RectFがCanvasの境界線から外れます
- (解決済み)デフォルトのandroid RecyclerView ViewHolder NPE shouldIgnore()
RecyclerView
を使用するListView
の代わりにNestedScrollView
を追加します 上に:最後に、コードに以下を追加します。