新手Android程序遇到问题,求解决

Katsu-S 2018-02-26 11:06:49
activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tableLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:stretchColumns="0.3">
<!-- 第一行 -->
<TabelRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:layout_width="wrap_content" />
<TextView
android:text="用户名:"
android:id="@+id/textView1"
android:textSize="24sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/editText1"
android:textSize="24sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="200dp" />
<TextView/>
</TabelRow>

<!-- 第2行 -->
<TabelRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView/>
<TextView
android:text="密 码:"
android:id="@+id/textView2"
android:textSize="24sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/editText2"
android:textSize="24sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="200dp" />
<TextView/>
</TabelRow>

<!-- 第3行 -->
<TabelRow
android:id="@+id/tableRow3"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView/>
<Button
android:text="登录"
android:id="@+id/button1"
android:textSize="24sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<Button
android:text="退出"
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView/>
</TabelRow>
</TableLayout>

其他文件都是创建工程时的默认代码,运行之后

求解决
...全文
669 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
usecf 2018-02-27
  • 打赏
  • 举报
回复
抓下adb log看下具体那块出错了
Katsu-S 2018-02-27
  • 打赏
  • 举报
回复
引用 2 楼 qq_31573123 的回复:
应该是<TableRow>,而不是<TabelRow>
好蠢啊我。。。。。。解决了,谢谢
樱花雨2377 2018-02-27
  • 打赏
  • 举报
回复
应该是<TableRow>,而不是<TabelRow>

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧