
button把textview挡住了。。什么原因。。求大神解答~
<TextViewandroid:id="@+id/textView"android:layout_width="match_parent"android:layout_...
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FF0000"
android:text="0" />
<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="button"
/> 展开
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FF0000"
android:text="0" />
<Button
android:id="@+id/button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="button"
/> 展开
展开全部
布局不对。你把Button和TextView设置在同一位置了
追问
请问怎么改啊?我的就是默认的相对布局,应该会自动分开来排的啊。。
追答
相对布局不会自动帮你排的。你可以去搜索一下android 相对布局属性。网上有很多。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询