Search in sources :

Example 26 with Picasso

use of com.squareup.picasso.Picasso in project android-shape-imageview by siyamed.

the class SampleBubbleFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_chat_sample, container, false);
    final Picasso picasso = Picasso.with(getActivity());
    picasso.setLoggingEnabled(true);
    picasso.setIndicatorsEnabled(false);
    int listLayout1 = getArguments().getInt(ARG_LAYOUT_1);
    int listLayout2 = getArguments().getInt(ARG_LAYOUT_2);
    final ListView listView = (ListView) view.findViewById(R.id.list);
    Adapter adapter = new Adapter(getActivity(), picasso, listLayout1, listLayout2);
    listView.setAdapter(adapter);
    return view;
}
Also used : ListView(android.widget.ListView) Picasso(com.squareup.picasso.Picasso) ArrayAdapter(android.widget.ArrayAdapter) TextView(android.widget.TextView) ImageView(android.widget.ImageView) View(android.view.View) ListView(android.widget.ListView)

Aggregations

Picasso (com.squareup.picasso.Picasso)26 View (android.view.View)9 TextView (android.widget.TextView)7 RequestCreator (com.squareup.picasso.RequestCreator)7 ImageView (android.widget.ImageView)6 ArrayAdapter (android.widget.ArrayAdapter)5 ListView (android.widget.ListView)5 OkHttp3Downloader (com.jakewharton.picasso.OkHttp3Downloader)4 Bitmap (android.graphics.Bitmap)3 Drawable (android.graphics.drawable.Drawable)3 OkHttpDownloader (com.squareup.picasso.OkHttpDownloader)3 Target (com.squareup.picasso.Target)3 TargetApi (android.annotation.TargetApi)2 SharedPreferences (android.content.SharedPreferences)2 ViewTreeObserver (android.view.ViewTreeObserver)2 AbsListView (android.widget.AbsListView)2 AdapterView (android.widget.AdapterView)2 GridView (android.widget.GridView)2 Callback (com.squareup.picasso.Callback)2 LruCache (com.squareup.picasso.LruCache)2