今は単純なページを作成しています。しかし、最初のテキストビュー以外は何も出ない。グラフィックレイアウトと実行時の奇妙な問題
私はクリーン>プロジェクトを経由してきれいにしてみました。これは、このXMLでのみ起こったのは奇妙です。他はうまくいくようです。あなたは "match_parent" を持っているので
<?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" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Background Color: "/>
<Spinner
android:id="@+id/Spinner"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Size: " />
<RadioGroup
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<RadioButton
android:id="@+id/small"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Small"
/>
<RadioButton
android:id="@+id/medium"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Medium"
/>
<RadioButton
android:id="@+id/large"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Large"
/>
</RadioGroup>
</LinearLayout>
<Button
android:id="@+id/Make_Changes"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Confirm"/>
</LinearLayout>
申し訳ありませんが、みんなのLinearLayout親以外のすべてのためのlayout_width = "wrap_content" とlayout_height = "wrap_content"実際にこのような何かをstackoverflowに投稿するのが好きではありませんが、私は本当にアイデアがありません。 – wesdfgfgd