안드로이드 개발 질문/답변
(글 수 45,052)
몇개월만에 다시 안드로이드 잡고 복습겸 계산기 하나 만들어볼라고 하는데요
레이아웃때문에 문제네요...
쉽게 하자면 엡솔루트 쓰면 만사 오케이인데..
또 그러기는 싫어서...
가로모드나 세로모드나 똑같은 비율의 이쁜 계산기 한번 해보고자..
리니어+테이블
테이블+리니어
리니어+리니어
해봤는데..잘 안되네요...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<EditText
android:text=""
android:id="@+id/f1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:id="@+id/one"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:text="1"/>
<Button
android:id="@+id/two"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:text="2"/>
<Button
android:id="@+id/three"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:text="3"/>
<Button
android:id="@+id/plus"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1.0"
android:text="+"/>
</LinearLayout>
</LinearLayout>
이렇게 하면 위에 데이트 텍스트 나오고
밑줄에 버튼 4개가 이쁘장 하게 나옵니다..
리니어 다시 만들어줘서 넣으면 2번째 줄에 다 겹쳐버리네요..
한칸 내리는 방법 없을까요...ㅡ.ㅡ;;이거때문에 몇시간을 해메는건지...지자스 입니다.ㅠ..ㅠ



