"실행"과 "결과"라는 두 개의 버튼을 나란히두고 싶습니다. 그러나 나는별로 행운이 없다.XML - 두 개의 버튼을 나란히 놓는 방법?
나는 RelativeLayout
을 사용하고 두 버튼 모두에 layout_weight
을 추가하려고 시도했지만 화면이 사라지는 것처럼 보입니다.
누구나 내가 잘못하고있는 것을 지적하고 해결하기 위해 무엇을 할 수 있습니까?
<?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" >
<TextView
android:id="@+id/myLocationText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello" />
<TextView
android:id="@+id/resultsHomeTest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
<Button
android:id="@+id/btnRun"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Run" />
<Button
android:id="@+id/btnResults"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Results" />
<TextView
android:id="@+id/resultsTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:textAppearance="?android:attr/textAppearanceMedium" />
<com.google.android.maps.MapView
android:id="@+id/myMapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="02kgJwy0ijcQsVCaCzD9sFv69dOi4gXBEUjIbuQ"
/>
<!--
Desktop key: 02kgJwy0ijcTK7fd-wxv7OsPUFEveXTUt16lrRA
Laptop key : 02kgJwy0ijcQsVCaCzD9sFv69dOi4gXBEUjIbuQ
-->
</LinearLayout>
@csmit 안드로이드는 : 오리엔테이션 = "수평"문제 fixs 대답은, 당신이 그것을 받아 들여야 할 때 아, 당신에게 – Blackbelt
입니다. – MurphyApps
대단히 감사합니다 기본 – Blackbelt