- 博客(14)
- 资源 (5)
- 收藏
- 关注
原创 Git操作手册
打tag:git tag name (调试:1.0.0-alpha 1.0.0-beta )忽略文件:git update-index --assume-unchanged XXX。提交文件:git commit -m '说明' ----no-verify。新建切换到分支:Git checkout -b '分支名'切换分支到自己的分支:git checkout name。推到远程:git push origin '分支名'删除本地分支: git branch -d name。合并分支:name 为分支名。
2023-07-07 17:08:07
78
1
原创 通过Proguard去除Log日志
-assumenosideeffects class android.util.Log { public static *** d(...); public static *** e(...); public static *** i(...); public static *** v(...); public s...
2019-09-23 21:24:07
997
原创 SVN相关
取消关联1,.idea文件夹,在该文件夹下找到vcs.xml文件<mapping directory="" vcs="svn" />把vcs="svn"替换成vcs=""2,使用终端进入当前项目目录,输入命令 find . -name "*.svn" | xargs rm -rf 即可添加忽略1,在项目的.idea/workspace.xml的文件...
2019-08-14 16:49:03
224
原创 Android Databinding 与 RecyclerView 完美结合
用了这个架构,让你的代码更简洁,更清晰。不废话,直接上代码。先上一个架构图。标记的5个文件是需要我们自己写的,其余都是封装好的部分。Activity代码如下:public class MainActivity extends AppCompatActivity { private RecyclerView recyclerView; p
2017-10-24 17:35:32
2054
原创 子view可以自动换行的父容器
import android.content.Context;import android.content.res.TypedArray;import android.util.AttributeSet;import android.view.View;import android.view.ViewGroup;import com.suteng.zzss480.R;import
2017-09-12 10:42:18
334
原创 html video 视频的播放与暂停
Play function play(){ var player = document.getElementById("player"); var time = document.getElementById("time"); if (player.paused) { player.play(); } else { player.pause(); }
2017-07-28 15:12:58
5190
原创 css常用属性
.c{-webkit-animation:leaf 0.6s ease 0.2s 1 normal both;//旋转中心点-webkit-transform-origin: 75% 85%;}//普通动画@-webkit-keyframes leaf{ 0% {opacity:1;transform: scale(1,1) translate(0,0) rotate(0deg);
2017-06-08 12:05:58
348
原创 Android EditText 格式化手机号 xxx xxxx xxxx
一晚上的工作成果。。。不废话,直接上代码!layout文件<EditText android:maxLength="13" android:id="@+id/mobileNum" android:layout_marginLeft="25dp" android:layout_gravity=
2017-06-06 12:00:19
2109
原创 Unity打包到android中屏蔽权限弹窗
在android 6.0及以上版本中,Unity打包到android工程后,打开Unity界面时,会有请求权限弹窗,有通讯录、照相机、麦克风等等。其中有些是不必要的,所以我们如何去掉这些权限弹窗呢?在AndroidManifest.xml中加入 就可以屏蔽弹窗了。然后自己在Unity的Activity中手动请求需要的权限。
2017-06-06 10:07:36
2802
转载 android zxing 扫描二维码 横屏转竖屏
Zxing 竖屏切换 Android在google上下载的ZxingDemo 为横屏状态 我简单的在Androidmanifest.xml把Activity换成竖屏android:screenOrientation="portrait"屏幕虽然正了 但是屏幕上显示的拍摄画面还是横着的 查了一些网上的资料 结合自己手工调试 在这里总结分享一下
2016-05-03 16:01:12
2287
转载 DIV叠加,点击时如何只激发顶层DIV的JS事件
function getEvent() { if (document.all) { return window.event; //如果是ie } func = getEvent.caller; while (func != null) { var arg0 = func.arguments[0]; if (arg0) {
2016-01-15 15:39:51
946
原创 JS UrlEncode UrlDecode
function str2asc(strstr){ return ("0"+strstr.charCodeAt(0).toString(16)).slice(-2);}function UrlEncode(str){ var ret=""; var strSpecial="!\"#$%&'()*+,/:;?[]^`{|}~%"; var tt= ""; for(var i=0;i<s
2015-11-18 15:33:39
513
原创 Android PopupWindow响应返回键最正确的实现方式
之前在网上找了很多文章,实现PopupWindow返回键的方式如下:popupWindow.setFocusable(true);ColorDrawable dw = new ColorDrawable(0x00000000);popupWindow.setBackgroundDrawable(dw);这样是实现了点击返回键关闭PopupWindow。但是,我们没办法在PopupW
2015-07-01 10:48:20
3149
转载 android:descendantFocusability用法简析
android:descendantFocusabilityDefines the relationship between the ViewGroup and its descendants when looking for a View to take focus.Must be one of the following constant values.
2015-05-22 11:47:46
494
Android Databinding 与 RecyclerView 完美结合
2017-10-24
最完整的table转csv&excel;&pdf; jquery插件
2017-10-19
基于jquery的html select完全自定义化插件
2017-09-25
Android SuperSwiperRefreshLayout 自定义下拉刷洗和上拉加载
2017-06-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人