Android Open Source - android-bossweather My Image Card






From Project

Back to project page android-bossweather.

License

The source code is released under:

Apache License

If you think the Android project android-bossweather 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.michael.feng.tools;
/* w  w  w  .j av  a 2 s .  c  o m*/
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.fima.cardsui.objects.Card;
import com.michael.feng.bossweather.R;

public class MyImageCard extends Card {

  public MyImageCard(String title, int image){
    super(title, image);
  }

  @Override
  public View getCardContent(Context context) {
    View view = LayoutInflater.from(context).inflate(R.layout.card_picture, null);

    ((TextView) view.findViewById(R.id.title)).setText(title);
    ((ImageView) view.findViewById(R.id.imageView1)).setImageResource(image);
    
    return view;
  }

  
  
  
}




Java Source Code List

com.michael.feng.bossweather.AddActivity.java
com.michael.feng.bossweather.EditActivity.java
com.michael.feng.bossweather.MainActivity.java
com.michael.feng.model.City.java
com.michael.feng.tools.CityDAO.java
com.michael.feng.tools.ConvertUtil.java
com.michael.feng.tools.ImageUtils.java
com.michael.feng.tools.MyCard.java
com.michael.feng.tools.MyImageCard.java
com.michael.feng.tools.SQLiteHelper.java
com.michael.feng.utils.YahooWeather4a.ConditionDefinition.java
com.michael.feng.utils.YahooWeather4a.WOEIDUtils.java
com.michael.feng.utils.YahooWeather4a.WeatherInfo.java
com.michael.feng.utils.YahooWeather4a.YahooWeatherInfoListener.java
com.michael.feng.utils.YahooWeather4a.YahooWeatherUtils.java