大佬们
我希望在安卓客户端
通过wifi模块
读取单片机小车传过来的温度湿度数据
并输出显示在屏幕
应该怎么写,已经能够传过来实时传输视频了
安卓,我想修改一下网上的这段代码,出了点问题
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
ziyejinwei1994 2017-04-11 06:18关注<?xml version="1.0" encoding="utf-8"?>
android:orientation="vertical"
android:padding="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:id="@+id/show"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="我是一个没有寿命的textview"
/>在代码里面引用就是
private TextView show;//声明个成员变量@Override protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
super.onCreate(savedInstanceState);
setContentView(R.layout.main_activity);
show= (TextView) findViewById(R.id.show);
}(main_activity是我的布局文件的名称)本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报