导入方式:/build.gradlerepositories {maven {url "https://jitpack.io"} }/app/build.gradledependencies {compile ‘com.github.zzz40500:android-shapeLoadingView:1.0.3.2‘}使用方式:直接在xml布局文件上引入即可,动画会自动加载<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"android:layout_height="m...
1. 去网上搜索github.com的ip地址(ip138.com、ipaddress.com都可以只要是类似查ip的网站),复制解析ip的地址。 2. 将复制的ip地址写入hosts文件,这里有两种方法: a. 长按“访达”--点击前往文件夹--输入/etc/hosts,编辑hosts文件(不可直接操作,需要制作文件副本替换原文件) b. 通过控制台sudo vim /etc/hosts 进入编辑页面将 192.30.255.113 github.com添加至文件hosts内即可(具体添加命令可参考vim命令) 原文...
打开host文件进入目录C:\Windows\System32\drivers\etc,使用管理员身份打开hosts文件。解析Host进入网站输入地址,选择TTL值相对较低的IP,添加在Host文件末。这里查询下面几个地址即可raw.githubusercontent.com avatars0.githubusercontent.com avatars1.githubusercontent.com avatars2.githubusercontent.com avatars3.githubusercontent.com 如仍不生效,可以f12检查GIthub相应页面,查看network标签加载失败的资源,进行查询...
前言:本篇介绍UIScrollView 封装的一些用法。1、UIScrollView 特殊用法:分页、分页事件、批量加载图片。基本定义:interface UIScrollView (ST)//定义两个事件,上一页和下一页typedef void (^OnScrollPrePager)(UIScrollView *scrollView);//定义两个事件,上一页和下一页typedef void (^OnScrollNextPager)(UIScrollView *scrollView);//!上一页事件@property (nonatomic,copy)OnScrollPrePager onPrePager;//!下一页事件@prop...