마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

레이아웃 짜는데 도움을 주세요!

0 추천

이렇게 레이아웃을 짜야합니다. listview 가 imageview 까지 덮어버려서 imageview를 가려버리네요...

제가 하고 싶은건 하단의 imageview 가 height를 75dp 를 자리잡고 나머지 남은 공간을 listview가 자리잡았으면 좋겠습니다. 고수 여러분 도와주세요... 몇시간 째 해메고 있습니다 ㅠㅠ

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:minWidth="25px"
    android:minHeight="25px">
    <ListView
        android:minWidth="25px"
        android:minHeight="25px"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/listView1" />
    <ImageView
        android:layout_width="match_parent"
        android:layout_height="75dp"
        android:src="@drawable/banner"
        android:id="@+id/ADview" />
</LinearLayout>
익명사용자 님이 2017년 3월 13일 질문

3개의 답변

0 추천
 
채택된 답변
relative layout 과 layout_above 를 검색 하세요
aucd29 (218,390 포인트) 님이 2017년 3월 13일 답변
0 추천
http://recipes4dev.tistory.com/89 의 글을 참고해 보세요.

리니어 레이아웃이 잘 설명되어 있네요.
배뽕냥 님이 2017년 3월 14일 답변
0 추천
<ListView
  .
  .
  android:layout_height="0dp"
  android:layout_weight="1"
  .
  ./>

 

쎄미 (162,410 포인트) 님이 2017년 3월 14일 답변
...