MCPcopy Create free account
hub / github.com/Kevinsu917/Dynamic / initView

Method initView

src/com/example/dynamicdemo/MainActivity.java:55–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54
55 private void initView()
56 {
57 prvDynamicList = (PullToRefreshScrollBarListView) findViewById(R.id.prvDynamicList);
58
59 myBar = View.inflate(this, R.layout.view_mine_bar, null);
60 myBar.setLayoutParams(new AbsListView.LayoutParams(AbsListView.LayoutParams.MATCH_PARENT, MultiUtils.dipToPx(this, 192)));
61
62 prvDynamicList.getRefreshableView().addHeaderView(myBar);
63 ivMyAvater = (ImageView) myBar.findViewById(R.id.ivMyAvater);
64 ivMyAvater.setImageResource(MultiUtils.getAvaterResource(userName));
65
66 tvMyName = (TextView) findViewById(R.id.tvMyName);
67 tvMyName.setText(userName);
68
69 edInput = (EditText) findViewById(R.id.etInput);
70 }
71
72 private void initData()
73 {

Callers 1

onCreateMethod · 0.95

Calls 2

dipToPxMethod · 0.95
getAvaterResourceMethod · 0.95

Tested by

no test coverage detected