上一页 1 2 3 4 5 6 7 8 9 ··· 38 下一页
摘要: 死锁产生条件:多线程,多个锁,锁嵌套(拿到资源1后还想要别人已经获取的资源2) package Thread; /* * 死锁产生条件:多线程,多个锁,锁嵌套*/ public class DeadLockDemo { public static void main(String[] args) { 阅读全文
posted @ 2022-10-22 21:50 野鸡码农 阅读(54) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_44194075/article/details/113850476 1.快速排序的思想​ 通过一趟排序将待排记录分隔成独立的两部分,其中一部分记录的关键字均比另一部分的关键字小,则可分别对这两部分记录继续进行排序,以达到整个序列有序。 2. 阅读全文
posted @ 2022-10-20 08:10 野鸡码农 阅读(141) 评论(0) 推荐(0)
摘要: //定义链表类 class Node{ int data; Node next; } void main(){ //第一步:新建链表 Node five = new Node(); five.data = 5; five.next = null; Node four = new Node(); fo 阅读全文
posted @ 2022-09-30 14:16 野鸡码农 阅读(76) 评论(0) 推荐(0)
摘要: 你的RecyclerView的adapter进行了两次初始化,并且这两次初始化时间间隔比较短,所以会闪。 解决办法: if (adapter == null) { adapter = ElectLetAdapter(context) binding.recyclerView.adapter = ad 阅读全文
posted @ 2022-09-22 19:06 野鸡码农 阅读(750) 评论(0) 推荐(0)
摘要: https://blog.51cto.com/u_14496797/5364085 方法1:使用约束布局 implementation 'androidx.constraintlayout:constraintlayout:2.0.4' <androidx.constraintlayout.widg 阅读全文
posted @ 2022-09-21 16:33 野鸡码农 阅读(623) 评论(0) 推荐(0)
摘要: 设置view的背景颜色,有两种方法,一种是通过代码写的形式,一种是通过写一个xml的形式 先说第一种,用代码实现view的背景渐变色: int colors[] = { 0xff2D0081 , 0xff8B3097, 0xffD14E7A }; GradientDrawable bg = new 阅读全文
posted @ 2022-09-19 10:16 野鸡码农 阅读(520) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-09-08 17:57 野鸡码农 阅读(19) 评论(0) 推荐(0)
摘要: //java class UIUtils { public static int getScreenWidthInPx(Context context) { DisplayMetrics dm = context.getApplicationContext().getResources().getD 阅读全文
posted @ 2022-05-13 18:13 野鸡码农 阅读(1742) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2022-04-13 16:08 野鸡码农 阅读(0) 评论(0) 推荐(0)
摘要: https://www.kancloud.cn/apachecn/programiz-zh/1951767 val num = 1.34567 var o = list.get(i).ori_price.toDouble()var p = list.get(i).price.toDouble()va 阅读全文
posted @ 2022-03-30 16:34 野鸡码农 阅读(1780) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 38 下一页