- 博客(5)
- 收藏
- 关注
转载 Android实现 通过手势随意缩放、移动ImageView图片
在这里,我对自己的笔记本全屏截图,然后当作自定义ImageView的src内容放在真机上运行。 可以看到这里的图片是可以移动和缩放的。 在这里先说清一点,如果在xml的控件上设置src,则需要在代码上通过getDrawable();获取,如果是通过setBackGround的,则通过getBackground();获取即可。 publicclassMyImageViewexten
2016-12-09 10:56:32
1325
1
原创 android版本更新
package com.hroot.www.utils; import android.app.Dialog; import android.app.DownloadManager; import android.app.Notification; import android.app.NotificationManager; import android.content.BroadcastRe
2016-07-06 16:53:22
425
转载 限制金额只能输入小数点后2位
editText.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChang
2016-07-06 09:27:28
1614
转载 限制金额输入小数点2位
editText.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChang
2016-07-06 09:20:51
576
原创 毛玻璃
package com.example.win.blurfastblur; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import andro
2016-04-11 14:33:10
356
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人