In the previous video tutorial, we introduced the ASP.NET intermediate tutorial. Today I will introduce to you the "Spread Zhike ASP.NET Advanced Series Video Tutorial". ASP.NET is an enterprise Web application development technology platform led by Microsoft. It is currently the One of the most popular web development technologies, it can develop a variety of functionally complex websites.
ASP.NET, also known as ASP+, is not just a simple upgrade of ASP, but a new generation scripting language launched by Microsoft. ASP.NET is a Web development platform based on the .NET Framework. It not only absorbs the greatest advantages of previous versions of ASP and adds many new features based on the development advantages of Java and VB languages, but also corrects the running errors of previous ASP versions.
Video playback address: //m.sbmmt.com/course/637.html
The difficulty of this video is Learning of ListVeiw:
The display of the list requires three elements:
1. ListVeiw View used to display lists.
2. Adapter is used to map data to the mediator on the ListView.
3. Data The specific string, image, or basic component that will be mapped.
According to the adapter type of the list, the list is divided into three types: ArrayAdapter, SimpleAdapter and SimpleCursorAdapter
Among them, ArrayAdapter is the simplest and can only display one line of words. SimpleAdapter has the best scalability and can customize various effects. SimpleCursorAdapter can be thought of as a simple combination of SimpleAdapter with the database, which can display the contents of the database in the form of a list.
We start with the simplest ListView:
/** * @author allin * */ public class MyListView extends Activity { private ListView listView; //private List<String> data = new ArrayList<String>(); @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); listView = new ListView(this); listView.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_expandable_list_item_1,getData())); setContentView(listView); }
private List<String> getData(){ List<String> data = new ArrayList<String>(); data.add("测试数据1"); data.add("测试数据2"); data.add("测试数据3"); data.add("测试数据4"); return data; } }
The above code uses ArrayAdapter(Context context, int textViewResourceId, List
The above is the detailed content of Spread Zhike ASP.NET Advanced Series Video Material Sharing. For more information, please follow other related articles on the PHP Chinese website!