プロジェクト
GitHubで見る
DingMouRen/VideoWallpaper
概要
一句代码设置android手机桌面视频壁纸
デザイン・メディア計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルVideoWallpaper
VideoWallpaper可以将本地mp4文件设置成手机桌面,手机桌面原来可以如此炫酷。Enjoy it O(∩_∩)O

build.gralde中引入
compile 'com.dingmouren.videowallpaper:videowallpaper:1.0.1'
需要添加的权限
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
一句代码让你的手机更酷更炫
mVideoWallpaper.setToWallPaper(this,mFile.getAbsolutePath());
公共的方法
| 方法 | 描述 |
|---|---|
| public static void setVoiceSilence(Context context) | 设置手机桌面壁纸为静音状态 |
| public static void setVoiceNormal(Context context) | 设置手机桌面壁纸为有声状态 |
| public void setToWallPaper(Context context,String videoPath) | 设置手机桌面动态壁纸,videoPath是本地mp4文件的路径 |
注意:
- 视频文件必须是mp4格式
- mp4文件必须是本地文件
License
Copyright (C) 2017 WeyYe
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License
関連プロジェクトを探す
読み込み中…