- 博客(2)
- 收藏
- 关注
原创 JAVA截取两个字符之间的字符
public static String cutString(String str, String start, String end) { String reg= start + "(.*)" + end; Pattern pattern = Pattern.compile(reg); Matcher matcher = pattern.matcher(str); while (matcher.find()) {
2022-11-04 23:45:39 1842 1
原创 android控件与悬浮窗的移动
对于一些控件想要做到控件随手指移动而移动就需要用到以下代码首先就是获取控件id,悬浮窗同理(控件类型)name = findViewById(R.id.id名字)建议再同一个方法里面,启用调用就行移动代码不想讲,自己放事例注意控件的类型已经id名字更改调用 移动();代码如下public void 移动(){ LinearLayout yd = findViewById(R.id.yd); yd.setOnTouchListener(new
2022-09-05 00:28:11 1245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人