- 博客(17)
- 收藏
- 关注
原创 错误:Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-beta2
我遇到的是在github上拉取代码时报的错,已经解决了。看的是这篇博客:https://stackoverflow.com/questions/45960633/failed-to-resolve-com-android-support-constraintconstraint-layout1-1-0-beta1allprojects {repositories {jcenter()g...
2019-10-30 10:51:07
3440
2
原创 在Web Storm 中React Native连接模拟器连接不上时怎么办?
一、React Native在运行时发生连接不上模拟器。1.首先使用adb命令查看 adb devices 会出现这么几种情况。命令查看 adb devices 显示下面(如果没有此命令)1.会出现(没有进程adb.exe):List of devices attacheddaemon not running; starting now at tcp:5037daemon sta...
2019-10-17 19:58:08
632
原创 在android studio运行打印不出okhttp接口数据解决办法
在android studio运行打印不出okhttp接口数据解决办法----有可能----是这样的你的编码错乱了,可以与别人的对照一下。1.打开Setting->Editor->File Encoding 进行编码设置看一下你的与别人的是否不一样 修改一下就行,我的是这样改好的,不妨一试。...
2019-07-17 09:24:09
730
1
原创 PopupWindow相机相册
public class MainActivity extends AppCompatActivity {private ImageView img;@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(...
2019-05-06 12:53:43
221
转载 XBanner无限轮播
https://blog.youkuaiyun.com/Mydtudysy/article/details/78837082
2019-03-18 16:46:00
149
原创 垂直与抛物线
绘制public class CustomView extends View {public CustomView(Context context, AttributeSet attrs, int defStyleAttr) {super(context, attrs, defStyleAttr);}public CustomView(Context context, Attribute...
2019-02-25 19:23:57
478
原创 自定义控件展示
依赖implementation ‘com.android.support:recyclerview-v7:28.+’implementation ‘com.squareup.okio:okio:1.5.0’implementation ‘com.squareup.okhttp3:okhttp:3.2.0’implementation ‘com.squareup.okhttp3:loggi...
2019-02-25 19:16:43
148
原创 登录
依赖implementation ‘com.android.support:recyclerview-v7:28.+’implementation ‘com.squareup.okio:okio:1.5.0’implementation ‘com.squareup.okhttp3:okhttp:3.2.0’implementation ‘com.squareup.okhttp3:loggi...
2019-02-25 18:55:40
223
原创 引导页
布局<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=“match_parent...
2019-01-20 09:19:38
136
原创 倒计时与动画
布局文件<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=“match_pare...
2019-01-20 09:00:25
153
原创 动态频道管理
频道管理1. 在app的gradle里面 implementation 'com.github.andyoom:draggrid:v1.0.1'2.在项目的build.gradle中添加 maven {url "https://jitpack.io"}3.权限<!-- 在SDCard中创建与删除文件权限 --><uses-permission android:...
2019-01-19 16:23:32
144
原创 静态频道管理
频道管理1. 在app的gradle里面 implementation 'com.github.andyoom:draggrid:v1.0.1'2.在项目的build.gradle中添加 maven {url "https://jitpack.io"}3.权限&lt;!-- 在SDCard中创建与删除文件权限 --&gt;&lt;uses-permission android:...
2019-01-19 16:01:08
161
原创 原生解析要点
这只是一些要点解析@Overrideprotected void onPostExecute(String s) {super.onPostExecute(s);Log.i(“xxx”,s); try { //获取s的时候看json解析最外面是{}还是[],{}的话就是JSONObject(s),[]的话就是JSONArray(s); ...
2019-01-19 15:41:29
141
原创 数据库和图片缓存,PullToRefreshListView上拉加载下拉刷新
//前往别忘记加载PullToRefreshListView文件夹//--------------------------------------------------------------------------------------------------网络连接状态管理器package com.xx.cache.utils;import android.content.Cont...
2019-01-19 15:33:06
208
1
原创 侧向滑动
//布局&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;android.support.v4.widget.DrawerLayout xmlns:android=“http://schemas.android.com/apk/res/android”xmlns:app=“http://schemas.android.com/apk
2019-01-13 17:24:58
260
原创 头部横向标签
//所需要的注解implementation ‘com.android.support:design:28.0.0-rc01’implementation project(’:xListView’)implementation ‘com.google.code.gson:gson:2.8.5’implementation’com.nostra13.universalimageloader:...
2019-01-13 17:12:33
192
原创 XListView和多条目应用
XListview和多条目应用//主页面//不要忘记权限////意图implementation project(’:xListView’)implementation ‘com.google.code.gson:gson:2.8.5’implementation’com.nostra13.universalimageloader:universal-image-loader:1.9...
2019-01-06 18:03:11
971
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人