Android Open Source - Qachee Character Item View






From Project

Back to project page Qachee.

License

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.

Java Source Code

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());
  }



}




Java Source Code List

com.qachee.ExpirationTime.java
com.qachee.QacheeManager.java
com.qachee.QacheeableObject.java
com.qachee.Qacheeable.java
com.qachee.sample.DemoLoader.java
com.qachee.sample.MainActivity.java
com.qachee.sample.adapter.CharacterAdapter.java
com.qachee.sample.domain.Character.java
com.qachee.sample.fragment.CharacterEditFragment.java
com.qachee.sample.fragment.CharacterListFragment.java
com.qachee.sample.task.SafeAsyncTask.java
com.qachee.sample.view.CharacterItemView.java