![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Android 日常学习
Android日常学习遇到问题和解决方案汇总
weixin_43844823
这个作者很懒,什么都没留下…
展开
-
WindowManager背景透明
WindowManager背景透明使用windowmanager,发现圆角背景是黑色的//设置透明背景params.format= PixelFormat.RGBA_8888原创 2021-12-07 14:49:38 · 2187 阅读 · 0 评论 -
Android 蓝牙图片打印
//本地图路径public String path1 = Environment.getExternalStorageDirectory().getAbsolutePath()+"XXXX.png"; private void print(){ try { BluetoothDevice bluetoothDevice = deviceList.get(pos); if (bluetoothDevice.getBondState() == BluetoothDe原创 2021-02-25 16:46:07 · 549 阅读 · 0 评论 -
NineGridView找不到R.color.ic_default_bg_color
NineGridView找不到R.color.ic_default_bg_colorAndroid 3.5升级到4.0后,发现平时用着正常的GlideApp突然报错,说找不到符号于是我在app下的colors直接添加了‘ic_default_bg_color’,然后就能正常运行最开始以为是as版本的问题,可我降低as版本依然报错,ninegridview的版本也尝试过提高还是不行,就不太清楚究竟是什么原因了...原创 2020-07-21 11:06:37 · 111 阅读 · 0 评论 -
Android 手机低版本横屏问题
做手机签名的时候,发现手机会直接死机;以及SurfaceView横屏的时候也为无法正常播放。在 AndroidManifest 中 的节点中加入下列属性就可以正常运行了android:screenOrientation="landscape"android:configChanges="orientation|keyboardHidden|screenSize"landscape ...原创 2020-04-30 15:35:04 · 144 阅读 · 0 评论