alexmofer / projectx Goto Github PK
View Code? Open in Web Editor NEWAndroid功能示例工程
License: Apache License 2.0
Android功能示例工程
License: Apache License 2.0
我看了源碼,PrinterWriter裡有一個 write指令
我試著用 write(PrintCommands.realTimeStatusTransmission(1));
但怎麼取得印表機狀態呢?? 謝謝
创建Socket失败
你好作者,我用了这个自定义的Textview在listview中使用点击第一次没反应,点击第二次才显示提示信息,并且有些点击直接跳到listivew顶部,我想问下这个自定义控件可以在带上拉下拉控件中使用吗?谢谢
使用的是printer项目,在小米note1说的项目上无法搜索到蓝牙设备。在nexus5x上可以正常使用
printer项目链接:https://github.com/AlexMofer/Printer
你好,有没有能过获取打印机信息的方法,能根据打印机宽度自动适配,而不是手动输入。
我现在有这么个需求,使用无驱打印或者蓝牙打印的时候,能够根据连接的设备自动适配宽度,判断是80mm还是58mm,不知道有没有好的解决方案
gradle拉取失败
edit:
直接import demo里面的module解决了,哈哈,的确很赞,超高配置性!
RecyclePagerAdapter 这个类挺好的,有效的实现了view的重复利用
但是也有一个问题,当onConfigurationChanged时由于重复利用了之前的view
导致之前的view属性没有重新map,会导致pager里面的view没有对齐的问题
@OverRide
public void onBindViewHolder(PagerViewHolder holder, int position) {
if (getItemViewType(position) == 1) {
((PhotoHolder) holder).bindData(position);
} else {
((VideoHolder) holder).bindData(position);
}
}
这里还是会报错,类型转换异常.
Gradienttabstrip默认选中的tab下标为0(即ViewPager中第一页),然后调用对应的Adapter.notifyDataSetChanged()后,Gradienttabstrip选中的tab变为第二个了,但是ViewPager里没有变为第二页。
复现方式:
在Demo里添加adapter.notifyDataSetChanged()即可。
tvTitle.postDelayed(new Runnable() { @Override public void run() { adapter.notifyDataSetChanged(); } },2000);
@Override
public void onBindViewHolder(PagerViewHolder holder, int position) {
if (getItemViewType(position) == 1) {
((PhotoHolder) holder).bindData(position);
} else {
((VideoHolder) holder).bindData(position);
}
}
直接崩溃,报错位置是这里,ClassCastException
test
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.