日常笔记(不定时更新)

–>photoview依赖
compile ‘com.github.chrisbanes.photoview:library:+’
compile ‘com.github.chrisbanes:PhotoView:2.1.3’
在整个项目的gradle添加 maven {url “https://jitpack.io“}

–>安装apk
http://gdown.baidu.com/data/wisegame/f98d235e39e29031/baiduxinwen.apk
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
intent.setDataAndType(Uri.fromFile(file), “application/vnd.android.package-archive”);
startActivity(intent);

–>频道管理
1. 在app的gradle里面
compile ‘com.github.andyoom:draggrid:v1.0.1’

2.在项目的build.gradle中添加
    maven {url "https://jitpack.io"}

3.权限
    <!-- 在SDCard中创建与删除文件权限 -->
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
    <!-- 往SDCard写入数据权限 -->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <!-- 震动权限 -->
    <uses-permission android:name="android.permission.VIBRATE"/>

4.在Manifest中配置<activity android:name="com.andy.library.ChannelActivity" />

–>城市列表
1. 在app的gradle里面
compile ‘com.github.andyoom:citypicker:v1.0.4’
2.在项目的build.gradle中添加
maven {url “https://jitpack.io“}
CityListActivity.startCityActivityForResult(this);

–>textview设置最大行数 和省略号
android:maxLines=”3”
android:ellipsize=”end”
–>在AndroidManifest.xml中设置activity中的android:screenOrientation属性值来实现。
竖屏:android:screenOrientation=”portrait”
横屏:android:screenOrientation=”landscape”

<color name="background">#252a2e</color>
<color name="unablebtn">#dcdcdc</color>
<color name="dark_bg">#505050</color>
<color name="light">#ECECEC</color>
<color name="white">#FFFFFF</color>
<color name="black">#000000</color>
<color name="green">#05D992</color>
<color name="zise">#E5004F</color>
<color name="dark_bg1">#414141</color>
<color name="pink">#FF5877</color>
<color name="yellow">#FFFF00</color>
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值