小编kei*_*ith的帖子

我的Android"Hello World"应用程序没有说"你好"

我创建了一个Hello World应用程序,系统生成了下面的大部分Android语言.在没有System.out语句的情况下运行应用程序时,模拟器中没有显示"Hello".然后,使用Eclipse教程,我读到我可以将System.out.println语句添加到main.应用程序再次运行,但没有输出.

我在这里不理解什么?

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    System.out.println =" Hello world!" 
    />
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

android

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

android ×1