![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
重点
文章平均质量分 74
sky的喵
这个作者很懒,什么都没留下…
展开
-
DrawerLayout(代码)
粗体为重点 代码一 点击侧滑菜单中的某一控件关 代码如下 xml <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xm原创 2017-11-15 20:07:22 · 188 阅读 · 0 评论 -
fragment(代码)
方法一 replace xml <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <RadioGroup android:id="@+id/main_rel_navigate"原创 2017-11-15 20:22:59 · 237 阅读 · 0 评论 -
TabLayout+ViewPager+Fragment(代码)
加粗重点 代码 xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:lay原创 2017-11-16 11:13:14 · 238 阅读 · 0 评论 -
PullToRefresh
PullToRefresh 在Studio中如何用:http://blog.csdn.net/L59_1/article/details/78283817······链接 代码示例 PullToRefreshScrollView 代码演示的是在页面上部是轮播图,下部是listview,而PullToRefresh在外面这是activity_main.xml <?xml version="1.0"原创 2017-10-24 13:25:28 · 203 阅读 · 0 评论 -
pulltoRefresh里面有轮播和listView(代码)
关于轮播部分的代码显示不全,若查看请点击此处 关于listview的详解:若查看请点击此处 xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:la原创 2017-11-16 15:58:33 · 192 阅读 · 0 评论 -
【viewPager实现轮播(代码)】
代码 xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ptr="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layou原创 2017-11-16 14:25:29 · 416 阅读 · 0 评论 -
XlistView(代码)
部分代码,若查看请点击此链接 xml <com.bwie.xlistviewlibrary.View.XListView android:id="@+id/three_xlv" android:layout_width="match_parent" android:layout_height="match_parent"原创 2017-11-16 18:37:30 · 166 阅读 · 0 评论 -
知识点-多条目加载(代码)
访问接口http://v.juhe.cn/toutiao/index?type=top&key=2f092bd9ce76c0257052d6d3c93c11b4,实现根据图片数量不同的多条目加载。 根据是否有thumbnail_pic_s,thumbnail_pic_s02,thumbnail_pic_s03来判断具体加载哪种类型import android.os.Bundle; import a原创 2017-11-09 13:58:58 · 596 阅读 · 2 评论 -
网络连接判断
//判断网络连接 ConnectivityManager cwjManager=(ConnectivityManager)this.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo info = cwjManager.getActiveNetworkInfo(); if (info != null && info.isAvail原创 2017-11-16 19:41:57 · 227 阅读 · 0 评论