私は私のリストビュー内の項目の高さを変更しようとしていますが、それはできません。どのように私はアンドロイドでListViewの項目の高さを変更することができます
以下あなたは自分のレイアウトでデフォルトなどArrayAdapterなどのアダプタではなく、カスタムアダプタを使用している場合は、私のactivity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.sagar.javainterviewquestion.MainActivity">
<!--<include layout="@layout/header"
android:id="@+id/include" />-->
<ListView
android:layout_width="wrap_content"
android:id="@+id/listView"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:background="#00a8a8"
android:backgroundTintMode="src_over"
android:clickable="false"
android:divider="#9f9b9b"
android:dividerHeight="3dp"
android:drawSelectorOnTop="false"
android:fastScrollAlwaysVisible="false"
android:fastScrollEnabled="false"
android:focusableInTouchMode="true"
android:longClickable="false"
android:nestedScrollingEnabled="false"
android:choiceMode="singleChoice"
android:layout_height="wrap_content" />
</RelativeLayout>
に言及修正simple_list_item_1 。 – Ironman