맨 아래쪽에 Button 두개를 두려고 합니다.
이 버튼 두개는 Webview 위에 올라가 있어야겠죠.
그래서...xml 로 열심히 삽질하다...포기하고 결국 구글에서..
아래 코드를 발견했습니다.
alignParentBottom 을 두개의 버튼에 적용하니..두개가 겹쳐서 보이는 현상이 보입니다.
일반 비주얼툴과는 달리...UI 디자인이 무척 삽질이네요...휴....
조언 부탁해요~~~
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:id="@+id/webviewbox"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
>
<WebView
android:id="@+id/webview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars="none"
/>
</RelativeLayout>
<Button
android:id="@+id/button1"
android:text="B1"
android:layout_height="wrap_content"
android:layout_width="100px"
android:layout_alignParentLeft="true"
/>
<Button
android:id="@+id/button2"
android:text="B2"
android:layout_height="wrap_content"
android:layout_width="100px"
android:layout_alignParentRight="true"
/>
설명이 정확히 이해는 안되지만..
<framelayout>
<webview/>
<linearlayout android:layout_gravity="bottom">
<button/>
<button/>
</linearlayout>
</framelayout>
하면 되지 않을지....?;