# Demo **Repository Path**: peterMark/Demo ## Basic Information - **Project Name**: Demo - **Description**: demo - **Primary Language**: Android - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-09-26 - **Last Updated**: 2021-06-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #这个demo是用来练习一些功能的 ##就是借用的人家的一些demo然后做的我自己的一些改变 *** ###沉浸式效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/沉浸式效果.gif) ###自定义view效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/custom.gif) ###英雄联盟效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/lengend.gif) ###Glide对图片的处理效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/glide.gif) ###天猫商品详情效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/tianmao.gif) ###表情输入效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/emoj.gif) ###购物车效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/car.gif) ###落叶进度条效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/leaf.gif) ###各种diaolog效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/dialog.gif) ###悬浮效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/xuanfu.gif) ###红包效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/hongbao.gif) ###GreenDao效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/greendao.gif) ###微信眼睛效果 ![image](https://git.oschina.net/peterMark/Demo/raw/master/image/weeye.gif) 1.滑动变化的关键代码 ``` @Override public void onScroll(int scrollY) { int percent=((int)((scrollY*1.0/leng)*255)); if(percent<=255){ Message message=new Message(); message.what=percent; LogUtil.e("perccent:====",""+percent); headView.setBackgroundColor(Color.argb(percent,63,81,181)); } } ```