質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Android

Androidは、Google社が開発したスマートフォンやタブレットなど携帯端末向けのプラットフォームです。 カーネル・ミドルウェア・ユーザーインターフェイス・ウェブブラウザ・電話帳などのアプリケーションやソフトウェアをひとつにまとめて構成。 カーネル・ライブラリ・ランタイムはほとんどがC言語/C++、アプリケーションなどはJavaSEのサブセットとAndroid環境で書かれています。

Eclipse

Eclipseは、IBM社で開発された統合開発環境のひとつです。2001年11月にオープンソース化されました。 たくさんのプラグインがあり自由に機能を追加をすることができるため、開発ツールにおける共通プラットフォームとして位置づけられています。 Eclipse自体は、Javaで実装されています。

Q&A

3回答

1952閲覧

タグの閉じ忘れ?

naia

総合スコア20

Android

Androidは、Google社が開発したスマートフォンやタブレットなど携帯端末向けのプラットフォームです。 カーネル・ミドルウェア・ユーザーインターフェイス・ウェブブラウザ・電話帳などのアプリケーションやソフトウェアをひとつにまとめて構成。 カーネル・ライブラリ・ランタイムはほとんどがC言語/C++、アプリケーションなどはJavaSEのサブセットとAndroid環境で書かれています。

Eclipse

Eclipseは、IBM社で開発された統合開発環境のひとつです。2001年11月にオープンソース化されました。 たくさんのプラグインがあり自由に機能を追加をすることができるため、開発ツールにおける共通プラットフォームとして位置づけられています。 Eclipse自体は、Javaで実装されています。

0グッド

0クリップ

投稿2015/01/08 03:29

昨日からソースコードを見直していますが、どうしてもエラーが見つけられません
ご指摘お願いします

lang

1 <LinearLayout 2 xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation="vertical" 4 android:layout_width="fill_parent" 5 android:layout_height="fill_parent"> 6 7 <TextView android:text="お申し込みフォーム" 8 android:textAppearance="?android:attr/textAppearanceLarge" 9 android:layout_width="fill_parent" 10 android:layout_height="wrap_content" > 11 <LinearLayout 12 android:orientation="horizontal" 13 android:layout_width="fill_parent" 14 android:layout_height="wrap_content" > 15 <TextView 16 android:text="お名前:" 17 android:layout_width="70sp" 18 android:layout_height="wrap_content" /> 19 <EditText 20 android:id="@+id/name" 21 android:layout_width="200dp" 22 android:layout_height="wrap_content" /> 23 </LinearLayout> 24 25 <LinearLayout 26 android:orientation="horizontal" 27 android:layout_width="fill_parent" 28 android:layout_height="wrap_content"> 29 <TextView 30 android:text="住所:" 31 android:layout_width="70sp" 32 android:layout_height="wrap_content" /> 33 <EditText 34 android:id="@+id/adress" 35 android:layout_width="200dp" 36 android:layout_height="wrap_content" /> 37 </LinearLayout> 38 39 <LinearLayout 40 41 android:orientation="horizontal" 42 android:_width="fill_parent" 43 android:layout_height="wrap_content" /> 44 <TextView 45 android:text="生年月日:" 46 android:layout_width="70sp" 47 android:layout_height="wrap_content" /> 48 49 <Spinner 50 android:id="@+id/month" 51 android:entries="@array/month" 52 android:layout_width="85dp" 53 android:layout_height="wrap_content" /> 54 <TextView 55 android:text="月" 56 android:layout_width="20sp" 57 android:layout_height="wrap_content" /> 58 <Spinner 59 android:id="@+id/day" 60 android:entries="@array/day" 61 android:layout_width="85dp" 62 android:layout_height="wrap_content" /> 63 <TextView 64 android:text="日" 65 android:layout_width="20sp" 66 android:layout_height="wrap_content" /> 67 68 69 <LinearLayout 70 71 android:orientation="horizontal" 72 android:layout_width="fill_parent" 73 android:layout_height="wrap_content"> 74 <TextView 75 android:text="性別:" 76 android:layout_marginTop="10dp" 77 android:layout_marginBottom="5dp" 78 android:layout_width="70sp" 79 android:layout_height="wrap_content" /> 80 <RadioGroup 81 android:layout_width="fill_parent" 82 android:layout_height="wrap_content" 83 android:orientation="horizonyal" > 84 <RadioButton 85 android:id="@+id/male" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:text="男" /> 89 <RadioButton 90 android:id="@+id/female" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 android:text="女" /> 94 </RadioGroup> 95 </LinearLayout> 96 97 <LinearLayout> 98 xmlns:android="http://schemas.android.com/apk/res/android" 99 android:orientation="horizontal" 100 android:background="#003399" 101 android:layout_marginLeft="50dp" 102 android:layout_marginRight="50dp" 103 android:layout_width="wrap_content" 104 android:layout_heiht="wrap_content"> 105 <TextView 106 android:text="希望商品" 107 android:layout_width="150sp" 108 android:layout_height="wrap_content" /> 109 <TextView 110 android:text="注文数量" 111 android:layout_width="wrap_content" 112 android:layout_height="wrap_content" /> 113 </LinearLayout> 114 115 <LinearLayout 116 117 android:orientation="horizontal" 118 android:layout_marginLeft="50dp" 119 android:layout_marginRight="50dp" 120 android:layout_width="wrap_content" 121 android:layout_height="wrap_content"> 122 <CheckBox 123 android:layout_width="50dp" 124 android:layout_height="wrap_content" /> 125 <TextView 126 android:text="りんご" 127 android:layout_width="110sp" 128 android:layout_height="wrap_content" /> 129 <EditText 130 android:id="@+id/apple" 131 android:layout_width="50dp" 132 android:layout_height="wrap_content" /> 133 </LinearLayout> 134 135 <LinearLayout 136 137 android:orientation="horizontal" 138 android:layout_marginLeft="50dp" 139 android:layout_marginRight="50dp" 140 android:layout_width="wrap_content" 141 android:layout_height="wrap_content"> 142 <CheckBox 143 android:layout_width="50dp" 144 android:layout_height="wrap_content" /> 145 <TextView 146 android:text="みかん" 147 android:layout_width="110sp" 148 android:layout_height="wrap_content" /> 149 <EditText 150 android:id="@+id/orange" 151 android:layout_width="50dp" 152 android:layout_height="wrap_content" /> 153 </LinearLayout> 154 155 <LinearLayout 156 157 android:orientation="horizontal" 158 android:layout_marginLeft="50dp" 159 android:layout_marginRight="50dp" 160 android:layout_width="wrap_content" 161 android:layout_height="wrap_content"> 162 <CheckBox 163 android:layout_width="50dp" 164 android:layout_height="wrap_content" /> 165 <TextView 166 android:text="もも" 167 android:layout_width="110" 168 android:layout_height="wrap_content" /> 169 <EditText 170 android:id="@+id/peach" 171 android:layout_width="50dp" 172 android:layout_height="wrap_content" /> 173 <Button android:id="@+id/button1" 174 android:layout_gravity="center_horizontal" 175 android:layout_width="180dp" 176 android:layout_height="wrap_content" 177 android:text="送信" /> 178 </LinearLayout> 179```1

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答3

0

・「お申込みフォーム」のTextViewが閉じられていない(yodatomatoさんの回答)
・「希望商品」の上のLinearLayoutが間違って閉じられている(utunさんの回答)
・同じLinearLayoutでxmlns:androidが余計に宣言されている(同上)
・「生年月日」の上のLinearLayoutが空のまま閉じられている
・最初のLinearLayoutに対応する終了タグがない(インデントを適切に入れるなどするとわかりますが<LinearLayout>に対して</LinearLayout>がひとつ足りません)←おそらく質問タイトルの主原因

ここまで直すと、私のEclipse上では「リソースがない」(リソースを入れていないので当然)とスペルミス("android:_width"や"horizonyal"など)のエラーのみになりました

コードベタ打ちして間違いを頻発してその間違いを見つけられないのであれば、レイアウトをグラフィカルに操作して配置する機能がEclipseにはあるので、それでおおまかに配置したあと適宜コードを修正する形にしたほうが良いかと思います。

投稿2015/01/10 13:14

swordone

総合スコア20651

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

yodatomatoさんの指摘に加えて、以下も間違っていると思われます。

lang

1 <LinearLayout> 2 xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation="horizontal" 4 android:background="#003399" 5 android:layout_marginLeft="50dp" 6 android:layout_marginRight="50dp" 7 android:layout_width="wrap_content" 8 android:layout_heiht="wrap_content">

インデントがガタガタなので、まずはそこを綺麗に書けば、間違いも見つけやすいと思いますよ。

投稿2015/01/08 05:11

utun

総合スコア384

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

lang

1 <TextView android:text="お申し込みフォーム" 2 android:textAppearance="?android:attr/textAppearanceLarge" 3 android:layout_width="fill_parent" 4 android:layout_height="wrap_content" >

ここですか

投稿2015/01/08 04:39

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問