Fork me on GitHub

07 2016 档案

摘要:一、自定义Dialog继承Dialog 二、为Dialog设置样式 在style中建立新样式继承 设置样式去掉边框 去掉标题 设置窗口透明 设置点击对话框外边可以消失等 设置动画 进入动画 退出 三、在构造方法中设置样式 四、设置布局 布局文件就是2个TextView 五、重写show方法,设置宽度 阅读全文
posted @ 2016-07-30 12:14 森林森 阅读(20416) 评论(0) 推荐(2) 编辑
摘要:Base接口 阅读全文
posted @ 2016-07-29 23:05 森林森 阅读(622) 评论(0) 推荐(1) 编辑
摘要:package liu.basedemo; import android.app.Activity; import android.app.Application; import java.lang.ref.WeakReference; import java.util.Stack; /** * MyApplication应用 基本 * Created by 刘楠 on 2016/7/... 阅读全文
posted @ 2016-07-29 23:04 森林森 阅读(3347) 评论(0) 推荐(0) 编辑
摘要:package liu.basedemo.base; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; i... 阅读全文
posted @ 2016-07-28 22:56 森林森 阅读(1709) 评论(0) 推荐(0) 编辑
摘要:第一参数为进入的动画 第二参数为退出的动画 进入的动画 slide_in_right.xml slide_out_left.xml 退出的动画 slide_in_left.xml slide_out_right.xml Translate动画的属性 android:fromXDelta:X轴的起始坐 阅读全文
posted @ 2016-07-28 22:22 森林森 阅读(625) 评论(0) 推荐(0) 编辑
摘要:1、form-data: 就是http请求中的multipart/form-data,它会将表单的数据处理为一条消息,以标签为单元,用分隔符分开。既可以上传键值对,也可以上传文件。当上传的字段是文件时,会有Content-Type来表名文件类型;content-disposition,用来说明字段的 阅读全文
posted @ 2016-07-27 11:20 森林森 阅读(14491) 评论(0) 推荐(2) 编辑
摘要:一、加入JAR包 第一感觉这个东东,好复杂,没ListView来的快,方便 在项目中加入android-support-v7-recyclerview.jar包 这个包在extras\android\support\v7\recyclerview\libs这个目录下。在studio中加入依赖 二、在 阅读全文
posted @ 2016-07-17 10:59 森林森 阅读(5794) 评论(1) 推荐(0) 编辑