android studioを使い始めたばかりの初心者です。
現状、ドットインストールなどでサンプルアプリを作成しながら、使い方を学んでいるのですが、画像のような2種類のエラーが出て困っています。
一応()内の場所を開いてみたり、Googleで検索してみたりしたのですが、どう対処すべきかわからず、ここで質問させていただきました。
回答よろしくお願いします。
android studioのバージョンは2.3です。
【コード】
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.websarva.wings.android.viewsample.ViewSampleActivity"> <LinearLayout android:layout_width="387dp" android:layout_height="514dp" android:background="#A1A9BA" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ffffff" android:text="@string/tv_msg" android:textSize="25sp" tools:layout_editor_absoluteY="0dp" tools:layout_editor_absoluteX="0dp" /> <EditText android:layout_width="0dp" android:layout_height="wrap_content" android:background="#ffffff" android:inputType="text" tools:layout_editor_absoluteX="8dp" tools:layout_editor_absoluteY="0dp" /> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:background="#df7401" android:orientation="horizontal" android:padding="5dp" tools:layout_editor_absoluteY="0dp" tools:layout_editor_absoluteX="8dp"> <CheckBox android:id="@+id/cbDrink" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="25dp" android:layout_marginRight="25dp" android:background="#ffffff" android:text="@string/cbDrink" /> <CheckBox android:id="@+id/cbFood" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="25dp" android:background="#ffffff" android:text="@string/cbFood" /> </LinearLayout> <RadioGroup android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#df7401" android:orientation="horizontal" android:padding="5dp" tools:layout_editor_absoluteY="0dp" tools:layout_editor_absoluteX="0dp"> <RadioButton android:id="@+id/rbMale" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="25dp" android:layout_marginRight="25dp" android:background="#ffffff" android:text="@string/rbMale" /> <RadioButton android:id="@+id/rbFemale" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ffffff" android:text="@string/rbFemale" /> </RadioGroup> <Spinner android:id="@+id/spCurryList" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#ffffff" android:entries="@array/sp_CurryList" android:paddingBottom="5dp" android:paddingtop="10dp" tools:layout_editor_absoluteY="0dp" tools:layout_editor_absoluteX="8dp"/> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/bt_msg" tools:layout_editor_absoluteY="0dp" tools:layout_editor_absoluteX="0dp" /> </LinearLayout> </android.support.constraint.ConstraintLayout> コード
回答2件
あなたの回答
tips
プレビュー