格局中的控件显示不了,这样子写有错吗
布局中的控件显示不了,这样子写有错吗?
为什么上面的TextView控件显示不出来,布局哪里设置的有问题?
------解决方案--------------------
</FrameLayout>换成别的
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#11000000"
android:orientation="vertical" >
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp" >
<TextView
android:id="@+id/mygallery"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:background="#33112233"
android:spacing="20dp"
android:unselectedAlpha="128" />
<TextView
android:id="@+id/gallery_textview"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_marginTop="3dp"
android:layout_weight="1"
android:background="#33112233"
android:gravity="center"
android:text="杭州xx科技有限公司"
android:textColor="#000000"
android:textSize="20sp" />
</FrameLayout>
</LinearLayout>
为什么上面的TextView控件显示不出来,布局哪里设置的有问题?
------解决方案--------------------
</FrameLayout>换成别的