linearlayoutに内包されているlinearlayoutが、
テキストビューの下に表示されません。
エラー invalid layout param in a linearlayout layout_below
the given layout_param is not defined.....
android:layout_below="@id/textView"
<LinearLayout 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" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context="com.example.tsuyoshiokaprofile.Main" tools:showIn="@layout/activity_main" android:orientation="horizontal" android:weightSum="1"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="サンプル" android:id="@+id/textView" android:textSize="40sp" android:gravity="center"/> <LinearLayout android:layout_width="394dp" android:layout_height="511dp" android:background="#e03131" android:layout_below="@id/textView"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="サンプル2" android:id="@+id/textView2" android:textSize="40sp" android:gravity="center"/> </LinearLayout> </LinearLayout>
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/25 08:38