- 博客(13)
- 资源 (2)
- 问答 (2)
- 收藏
- 关注
原创 PullToRefreshScrollView+Banner+banner.Listview
activity_main.xml Banner:http://blog.csdn.net/qq_37454196/article/details/78328594 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.and
2017-10-25 08:38:57 225
原创 Banner无限轮播
在build.gradle中➕compile 'com.youth.banner:banner:1.4.9'权限:联网权限,ImagerLolder包布局文件 <com.youth.banner.Banner android:id="@+id/banner" android:layout_width="match_parent" andro...
2017-10-24 13:33:39 302
原创 DrawerLayout侧滑+ViewPager(n个网址)+XLIstView(左右滑动有数据)
主页面 xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-aut
2017-10-22 19:45:36 205
原创 ViewPager无线轮播(图片为n个网址)
activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:la
2017-10-22 18:08:11 226
原创 NetWorkUtil,解析Json,获取图片(封装类)
public class NetWorkUtil { private int responseCode; /** * 获取图片并返回; * @param urlString * @return */ public Bitmap getNetImage(String urlString){ try {
2017-10-20 11:29:10 309
原创 Fragment互相转换+textView变换
public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layo
2017-10-18 14:49:12 477
原创 侧滑,头条,XlistView
有XListView效果 //权限 //ImagetLolder name=“” <android.support.v4.widget.DrawerLayout > <LinearLayout android:layout_width="match_parent" android:layout_height=
2017-10-15 20:13:02 256
原创 TabLayout 资讯首页滑动
效果图:1文件:导包:compile 'com.android.support:design:26+' activity_main.xmlRelativeLayout布局 <android.support.design.widget.TabLayout android:layout_width="match_parent" android:layout_hei...
2017-10-13 16:17:42 262
原创 新ListView多条目加载 4个(重要)
Activaty_main.xml <ListView android:id="@+id/main_listview" android:layout_width="match_parent" android:layout_height="match_parent"/> 4个布局文件 private int TYTLE_ONLY =
2017-10-12 18:42:24 443
原创 ImagerLolder MyApplication.java
import android.app.Application; import com.nostra13.universalimageloader.cache.disc.impl.UnlimitedDiscCache; import com.nostra13.universalimageloader.cache.disc.naming.Md5FileNameGenerator; import co
2017-10-12 09:09:33 211
原创 HttpClient+HttpURLConnection02
MainActivity.java package animtest.com.example.e531.week1_09month; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log;
2017-10-08 19:26:58 169
原创 HttpClient+HttpURLConnection
Button btnClient = (Button) findViewById(R.id.btn_client); Button btnUrl = (Button) findViewById(R.id.btn_url); ListView listView = (ListView) findViewById(R.id.lv); btnClient
2017-10-08 18:29:58 152
原创 Android studio如何添加HttClient
Android studio如何添加HttClient 在build.gradle文件中添加 useLibrary 'org.apache.http.legacy' ,如下图示: 添加完之后,点击右上角按钮,进行编译 使用HttpClient访问 https://请求的协议,需要添加以下代码,在创建HttpClient之前 SSLSocketFactory.ge
2017-10-08 16:12:51 393
Android recyclerview 多条目 改如何判断使用哪个布局?
2019-01-24
NullPointerException
2019-01-10
TA创建的收藏夹 TA关注的收藏夹
TA关注的人