Blame view

app/src/main/java/com/sunvote/xpadapp/fragments/CommunicationTestFragment.java 751 Bytes
27983dbe   孙向锦   project init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  package com.sunvote.xpadapp.fragments;
  
  import com.sunvote.xpadapp.R;
  import com.sunvote.xpadapp.base.MyFragment;
  
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TextView;
  
  public class CommunicationTestFragment extends MyFragment {
  	public byte[] data;
  	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  		View view = inflater.inflate(R.layout.fragment_admin, container, false);
  		
  		 
  		TextView tvResutl = (TextView)view.findViewById(R.id.comm_test_tv_result);
  		tvResutl.setText(
  				getString(R.string.communication_test)+data[0]+"  "+ data[1] +"  "+ data[2] +"  "+ data[3]);		 
  		
  		return view;
  	}
  }