Naomath / Myapp_for_app_contest_new

0 stars 0 forks source link

HOME画面に問題が #10

Open Naomath opened 7 years ago

Naomath commented 7 years ago

res/layout/activity_list.xml で、そのようにレイアウトをかくとlistVIew2のところ(自分で作成したものの)ところにitemをいくらか入れても全てを表示できない

halu5071 commented 7 years ago

@Naomath

遅くなってごめん。もう解決してるかな??

これは、listView2が囲われているRelativeLayoutlayout2の高さが固定になっているのが原因

<RelativeLayout
                android:id="@+id/layout2"
                android:layout_width="match_parent"
                android:layout_height="300sp">

                <TextView
                    android:id="@+id/textView5"
                    android:layout_width="wrap_content"
                    android:layout_height="70dp"
                    android:layout_marginLeft="16dp"

ここで、layout2layout_heightwrap_contentにすれば大丈夫のはず