Back to project page Test-SimpleTwitterClient.
The source code is released under:
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...
If you think the Android project Test-SimpleTwitterClient 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.example.Twitter_Android.Fragments.Adapters; /*from w w w.ja va 2 s. c o m*/ import android.app.Activity; import android.preference.PreferenceManager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.example.Twitter_Android.AppActivity.SettingsActivity; import com.example.Twitter_Android.AsynkTasks.ImageDownloader; import com.example.Twitter_Android.Logic.DataCache; import com.example.Twitter_Android.Logic.Tweet; import java.util.List; public class MessagesAdapter extends TimelineAdapter<Tweet> { private final LayoutInflater layoutInflater; private final DataCache cache; private final ImageDownloader imageDownloader; private Activity mainActivity; private static boolean isImagesLoadingAllowed; private static class Holder{ ImageView avatar; TextView name; } public MessagesAdapter(Activity activity, List<Tweet> newItems, String tag) { super(newItems, tag); layoutInflater = LayoutInflater.from(activity); cache = DataCache.getInstance(); imageDownloader = new ImageDownloader(); mainActivity = activity; isImagesLoadingAllowed = PreferenceManager.getDefaultSharedPreferences(activity) .getBoolean(SettingsActivity.ALLOW_IMAGE_LOADING, true); } @Override public View getView(int position, View convertView, ViewGroup parent) { if(convertView == null){ }else{ } return null; } @Override public void updateContext(Activity context) { } }