- 博客(11)
- 收藏
- 关注
原创 新闻列表的样式表
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:padd.
2021-12-23 00:46:54
1389
原创 服务(教会你三分钟教学-易学)
1:全部服务的样式表 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="matc.
2021-12-22 23:59:37
773
原创 缓存(5分钟教学)
//缓存类 CacheUtils public class CacheUtils { //主页 public static HomeRotationMain homeRotationMain = null;//存主轮播图数据 public static HomeServices homeServices = null;//存应用服务数据 public static NewsInfo newsInfo = null;//存新闻数据 public static News.
2021-12-22 23:26:38
429
原创 keyuilt工具类
//键类 public class KeyUtils { public static final String TOKEN = "token"; public static final String USER_INFO = "userInfo"; public static final String VALUES = "values"; public static final String POSITION = "clickPosition";//点击的影片 pub.
2021-12-22 20:58:24
287
原创 个人界面(5分钟教学)
//个人界面的样式表 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match.
2021-12-22 20:55:31
607
原创 关于新闻内容的获取
NewsInfoActivity 1:新闻详细的样式表(activity_news_info) <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://sc.
2021-12-22 17:45:56
898
原创 适配器的设置
SuperBase (主要用于主页GridView的渲染) public abstract class SuperBase extends BaseAdapter { public SuperBase(int mList) { this.mList = mList; } private int mList; @Override public int getCount() { return mList; } ...
2021-12-22 17:42:47
231
原创 网络请求数据(Https)
initHomeHttp public class initHomeHttp { OkHttpClient client = new OkHttpClient(); private Handler mHandler; public initHomeHttp(Handler mHandler) { this.mHandler = mHandler; } //异步请求获取...
2021-12-22 17:33:11
405
原创 引导页面
1:首页样式表 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_.
2021-12-22 17:27:20
829
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人