|
@@ -47,6 +47,7 @@ public class MainActivity extends Activity implements DeviceListAdapter.OnItemC
|
|
|
private PullRefreshListView mListView;
|
|
|
private DeviceListAdapter mAdapter;
|
|
|
private TextView mTvTitle;
|
|
|
+ private TextView tvVersion;
|
|
|
private ProgressBar pbar;
|
|
|
|
|
|
private List<SearchResult> mDevices;
|
|
@@ -84,6 +85,8 @@ public class MainActivity extends Activity implements DeviceListAdapter.OnItemC
|
|
|
mTvTitle = findViewById(R.id.title);
|
|
|
pbar = findViewById(R.id.mainpbar);
|
|
|
mRefreshLayout = findViewById(R.id.pulllayout);
|
|
|
+ tvVersion = findViewById(R.id.version);
|
|
|
+ tvVersion.setText("v" + BuildConfig.VERSION_NAME);
|
|
|
|
|
|
mListView = mRefreshLayout.getPullToRefreshListView();
|
|
|
mAdapter = new DeviceListAdapter(this);
|