youth5201314 / xframe Goto Github PK
View Code? Open in Web Editor NEWXFrame - Android快速开发框架:主要是封装有Http网络隔离框架、日志、缓存、加载等待、toast、页面状态布局管理、权限、自定义view等常用的集合框架,减少开发成本,提高软件体验!
License: Apache License 2.0
XFrame - Android快速开发框架:主要是封装有Http网络隔离框架、日志、缓存、加载等待、toast、页面状态布局管理、权限、自定义view等常用的集合框架,减少开发成本,提高软件体验!
License: Apache License 2.0
正常设置Toast可以显示,在网络请求回调中提示用户信息就不显示,是什么问题呢?
XToast 经常出现类型转换错误 imageView转换报错,但是重新安装一遍有时候会解决。。。
我google不让过,原来是你获取了短信权限,很好用,不过没事不要获取太多权限,权限越多越不好
baserecyclerview的onCreateViewHolder没有复用,调用了getItemCount次。数据50条。
很感谢!
如题,请求参数是一个数组怎么传?直接给忽略掉了。
公司需求,banner下方部分遮盖住banner,所以指示器被遮住了
我弄了三个解决方案:
第一,将你的banner.xml修改了marginBottom;
第二,将你的banner指示器废置,自己写了布局,设置为GONE,然后在监听banner的页面变化,再去动态改变指示器颜色;
第三,将你的项目修改后,当作本地库引进;
问题都可以解决,但是还是希望能将这个优秀的项目维护得更加完美,这样不是很好吗,你说呢
提交后才发现,走错片场了
兄弟你更新的频率有些低了~
@Override
public void post(String url, Map<String, Object> params, final HttpCallBack callBack) {
params.put("noncestr", getRandomStr());
params.put("sign", getSign(params));
RequestParams requestParams = new RequestParams();
for (String key : params.keySet()) {
requestParams.put(key, params.get(key));
}
// XLog.i("post token = " + RxSPTool.getString(BaseApp.getInstance(), BaseConfig.TOKEN)+ " \npost deviceInfo = " + getDeviceInfo());
// XLog.map(params);
client.post(url, requestParams, new AsyncHttpResponseHandler() {
@OverRide
public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
String result = new String(responseBody);
XLog.i("token = " + RxSPTool.getString(BaseApp.getInstance(), BaseConfig.TOKEN)+ " \n \ndeviceInfo = " + getDeviceInfo()+"\n\nURL = " + url+" \n\nparams = "+params +" \n\n"+result);
// Class<?> cls = XHttp.analysisClassInfo(callBack);
// //我这里使用的是fastjson,你也可以用gson,jackjson等
// XLog.json(result);
//
// callBack.onSuccess(new Gson().fromJson(result, cls));
callBack.onSuccess(result);
}
@Override
public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {
callBack.onFailed(error.toString());
}
});
}
DividerDecoration 在横向LinearLayoutManager 设置颜色为透明
setDrawLastItem(false)
最后一条仍显示
XOutdatedUtils 工具类的getColor在5.0系统下运行出错,更改为如下就可以了:
public static int getColor(@ColorRes int id) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
return ContextCompat.getColor(XFrame.getContext(), id);
else
return XFrame.getResources().getColor(id);
}
这start刷的稳的一逼,一出来就是一千起
加入依赖之后总是报下面的错误
Error:Execution failed for task ':homedemobyzhu:processDebugManifest'.
Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.0-alpha1) from [com.android.support:cardview-v7:26.0.0-alpha1] AndroidManifest.xml:24:9-38
is also present at [com.android.support:recyclerview-v7:25.3.1] AndroidManifest.xml:24:9-31 value=(25.3.1).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:22:5-24:41 to override.
大牛,我在使用RecyclerView 过程中发现,如果isLoadMore设置为true,会自动加载下一页数据,我看了下demo,也是自动加载下一页数据,怎么不自动加载呢
XRecyclerViewAdapter.addFooterView 底部布局无法居中
首先,很感谢你的开源项目,让我学到很多,我之前一直都只用你的banner,最近在整理所学知识点的时候发现了你的这个项目,受益匪浅,
bug:
1.XloadingDialog中弹出自定义文字(水平显示2)点击后无关闭,只能退出应用,这个小问题,我自己也可以处理,不知道是不是故意这样弄的
建议:
1.现在都喜欢仿iOS,各种仿造,就拿下拉刷新来说吧,我看很多APP都会做成iOS样式的下拉刷新,还有Dialog等.不知道你对这个趋势怎么看?是否也可以在你的这个框架里面添加点?
保持关注支持
很感谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.