Back to project page Qachee.
The source code is released under:
Apache License
If you think the Android project Qachee 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.qachee.sample.view; /*www . j av a2s . c o m*/ import android.content.Context; import android.util.AttributeSet; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.qachee.sample.R; /** * CharacterItemView */ public class CharacterItemView extends LinearLayout { private ImageView image; private TextView title; public CharacterItemView(Context context) { super(context); init(); } public CharacterItemView(Context context, AttributeSet attrs) { super(context, attrs); init(); } public CharacterItemView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); init(); } private void init() { inflate(getContext(), R.layout.character_item_view, this); image = (ImageView) findViewById(R.id.character_item_view_image); title = (TextView) findViewById(R.id.character_item_view_title); } public void loadData(com.qachee.sample.domain.Character character) { image.setImageResource(character.getImageResId()); title.setText(character.getName()); } }