会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
打赏
张学涛
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
21
下一页
2020年12月25日
android ScrollView 里面有一个文本TextView需要超出限度后滚动
摘要: tv1.setMovementMethod(ScrollingMovementMethod.getInstance()); tv1.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(Vie
阅读全文
posted @ 2020-12-25 17:46 张学涛
阅读(495)
评论(0)
推荐(0)
2020年12月19日
记录一下 小游戏模板里面遇到ANR
摘要: 如图:打印日志 E/HsmCoreServiceImpl: onTransact in code is: 103 2020-12-19 22:23:29.078 629-13102/? E/uniperf server: uniPerfEvent doParse failed, cmdId=4400
阅读全文
posted @ 2020-12-19 22:11 张学涛
阅读(958)
评论(0)
推荐(0)
Android使用MediaPlayer实现音乐播放
摘要: ******* if(mode == REPEAT1) { if(!mPlayer.isLooping()) { mPlayer.setLooping(true); //打开app当前无音乐播放时,setLooping会无作用,先记录在播放时重新setLooping if(!mPlayer.isLo
阅读全文
posted @ 2020-12-19 21:54 张学涛
阅读(763)
评论(0)
推荐(0)
2020年12月12日
Android TextView
摘要: Android TextView <TextView android:id="@+id/tv_name" android:layout_width="wrap_content" android:layout_height="wrap_content" /> 设置显示文本单行显示 android:si
阅读全文
posted @ 2020-12-12 13:54 张学涛
阅读(165)
评论(0)
推荐(0)
2020年12月11日
android 欢迎界面延迟3秒跳转
摘要: welcome.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://sche
阅读全文
posted @ 2020-12-11 17:31 张学涛
阅读(693)
评论(0)
推荐(0)
android 隐藏状态栏
摘要: // ImmersionBar.with(this) // .hideBar(BarHide.FLAG_HIDE_NAVIGATION_BAR) // .init();
阅读全文
posted @ 2020-12-11 17:22 张学涛
阅读(309)
评论(0)
推荐(0)
android Activity之间专场效果
摘要: 第一种:自己编写进出效果 然后给activity加上就ok了 例如:(首先要在res文件夹下建立anim文件夹,然后把动画效果xml文件放到里面去) 1.放大进入, zoomin.xml: <?xml version="1.0" encoding="utf-8"?> <set xmlns:andro
阅读全文
posted @ 2020-12-11 16:49 张学涛
阅读(212)
评论(0)
推荐(0)
2020年12月9日
Android 获取ImageView中的图片 赋值给另外一个ImageView
摘要: Drawable drawable = 你的ImageView.getDrawable(); Bitmap bitmap = null; if (null!=drawable) { bitmap = ((BitmapDrawable)drawable).getBitmap(); } if (null
阅读全文
posted @ 2020-12-09 09:01 张学涛
阅读(787)
评论(0)
推荐(0)
2020年11月16日
android约束布局动态添加控件或者动态修改布局 记录笔记
摘要: ConstraintSet constraintSet =new ConstraintSet(); // 第一个按钮 View ivLeft = getLayoutInflater().inflate(R.layout.item_262, null); TextView tvText = ivLef
阅读全文
posted @ 2020-11-16 14:01 张学涛
阅读(2665)
评论(0)
推荐(0)
2020年11月12日
替换字符串中的内容 (把每个,,,的地方换行)
摘要: tv1.setText(bean.getName().replace(",,,", "\n"));
阅读全文
posted @ 2020-11-12 10:19 张学涛
阅读(147)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
21
下一页
公告