Back to project page smsAndCallFilter.
The source code is released under:
/* * Author: Hasib Al Muhaimin. * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the L...
If you think the Android project smsAndCallFilter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Author: Hasib Al Muhaimin.//from w w w .j a va 2 s .c o m * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * ***courtesy to Jelle Geerts*** * Author: Jelle Geerts * Usage of the works is permitted provided that this instrument is * retained with the works, so that any entity that uses the works is * notified of this instrument. * * DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY. */ package com.sadakhata.smsandcallfilter; import com.sadakhata.smsandcallfilter.R; import android.content.Context; import android.view.LayoutInflater; import android.widget.RelativeLayout; import android.widget.TextView; class SimpleListItem2 { public static RelativeLayout build(Context context, int id, String title, String summary) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); RelativeLayout v = (RelativeLayout) inflater.inflate(R.layout.simple_list_item_2, null); v.setId(id); TextView textView; textView = (TextView) v.findViewById(android.R.id.title); textView.setText(title); textView = (TextView) v.findViewById(android.R.id.summary); textView.setText(summary); return v; } }