안드로이드 개발 질문/답변
(글 수 45,052)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="242dp"
android:background="#ffffff"
android:orientation="vertical" >
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="dfsadfk"
android:text="EditText1" />
</LinearLayout>
</ScrollView>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
</ListView>
</LinearLayout>
<LinearLayout
style="@android:style/ButtonBar"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="Button" >
</Button>
</LinearLayout>
</LinearLayout>
이렇게 코딩을 하면은 리스트뷰가 밑에 다먹어서 button의 레이아웃을 안보여줍니다..
즉
edittext
listview
button보여주고싶은데..
listview때문에 button이 짤리는데..해결이안될까요;;;
weight로 넣었엇는데..
키보드위에 버튼이 뜨게할려고하거든요... weight는 버튼이 찌그러져서 나와서..요
안넣을려고합니다..
weight 넣은 뒤 다음을 수정하세요
<Button