Java Android无法使用LinearLayout显示文本视图
我只是尝试创建一个布局,其中有多个文本视图(最终是一个EditText)垂直堆叠在活动中。但是,唯一显示的是我的顶部标题栏和第一个文本视图(带有“名称”文本)。为什么没有别的东西出现?这是我的密码:Java Android无法使用LinearLayout显示文本视图,java,android,text,layout,view,Java,Android,Text,Layout,View,我只是尝试创建一个布局,其中有多个文本视图(最终是一个EditText)垂直堆叠在活动中。但是,唯一显示的是我的顶部标题栏和第一个文本视图(带有“名称”文本)。为什么没有别的东西出现?这是我的密码: <?xml version="1.0" encoding="utf-8"?> 谢谢 文本视图的layout\u height必须是wrap\u content,而不是fill\u parent当然!布局可能很棘手。但你会习惯的! <LinearLayout andro
<?xml version="1.0" encoding="utf-8"?>
谢谢 文本视图的
layout\u height
必须是wrap\u content
,而不是fill\u parent
当然!布局可能很棘手。但你会习惯的!
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:layout_weight="1">
<TextView android:text="Name:" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:textColor="#4096cc"
android:paddingTop="15dip" android:paddingLeft="15dip"
android:textSize="20sp" />
<TextView
android:text="This is my little description."
android:layout_width="wrap_content" android:layout_height="fill_parent"
android:textColor="#333333" android:paddingTop="10dip"
android:paddingLeft="15dip" android:textSize="10sp" />
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>