Back to project page doubanbook4android.
The source code is released under:
Eclipse Public License - v 1.0 THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECI...
If you think the Android project doubanbook4android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.study.doubanbook_for_android.activity; // w w w .j a v a2s . com import android.os.Bundle; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import com.study.doubanbook_for_android.R; import com.study.doubanbook_for_android.model.Annotations; public class NoteAndUserDetailActivity extends BaseActivity { Annotations annotations; ImageView bigAvatar_iv; TextView userName_tv; TextView noteHome_tv; Button showQrCode_btn; TextView comment_tv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.a_note_user_detail); initDatas(); findViews(); initWidgets(); initListners(); } @Override void initDatas() { super.initDatas(); annotations = (Annotations) getIntent().getSerializableExtra( "annotations"); } @Override void findViews() { super.findViews(); bigAvatar_iv = (ImageView) findViewById(R.id.bigAvatar_iv); userName_tv = (TextView) findViewById(R.id.userName_tv); noteHome_tv = (TextView) findViewById(R.id.noteHome_tv); showQrCode_btn = (Button) findViewById(R.id.showQrCode_btn); comment_tv = (TextView) findViewById(R.id.comment_tv); } @Override void initWidgets() { super.initWidgets(); imageDownloader.download( annotations.getAuthor_user().getLarge_avatar(), bigAvatar_iv, null); userName_tv.setText(annotations.getAuthor_user().getName()); noteHome_tv.setText(annotations.getAuthor_user().getAlt()); comment_tv.setText(annotations.getContent()); } @Override void initListners() { super.initListners(); } }