- 博客(6)
- 收藏
- 关注
转载 获取ListView点击的Item
final ListView lv = (ListView) findViewById(R.id.ListView01);lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView myAdapter, View myView, int myItemInt, lo
2016-06-03 21:49:15 544
转载 安卓volley框架基本使用
1.RequestQueue mQueue = Volley.newRequestQueue(context); 2.StringRequest stringRequest = new StringRequest("http://www.baidu.com", new Response.Listener() {
2016-06-03 20:54:27 448
转载 安卓实现随时获取Context(来自《第一行代码》)
首先,定义类:MyApplicationpackage app.coolwhether.com.zhihu_16_5_31;import android.app.Application;import android.content.Context;/** * Created by Administrator on 2016/6/3. */public class MyApp
2016-06-03 20:26:34 322
转载 关于什么是:xmlns:tools="http://schemas.android.com/tools"
It defines the XML namespace of the document. You should put it, otherwise tags like could be not recognied by the parser.Namespaces are a way for XML documents to include tags from various ven
2016-06-03 19:05:42 1395
转载 自定义AppBar
name="CustomAppBarTheme" parent="AppTheme"> name="android:actionBarStyle">@style/MyActionBarStylename="MyActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar"> name="android:b
2016-06-03 19:04:09 498
转载 使用gson解析URL
First you need to download the URL (as text):private static String readUrl(String urlString) throws Exception { BufferedReader reader = null; try { URL url = new URL(urlString);
2016-06-03 18:55:54 2065
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人