Coder Social home page Coder Social logo

blogsamples's Introduction

BlogSamples

博客/笔记中的demo

[TOC]

VideoViewDemo

系统自带视频播放控件 VideoView的使用demo 包含特性: 获取帧视图作为封面,触摸滑动改变音量/亮度,全屏播放等

ExplandableListViewDemo

  1. 基本使用,点击事件,懒加载图片等;
  2. 将展开的group标题栏位置浮动在顶部,取自 这篇博客;
  3. 展开/收缩动画;
  4. 三级列表的写法:嵌套一个自定义的Expandable,重写onMeasure即可,不然会不显示;

WebViewDemo

webView的基础使用: js/java代码互调,返回键回退,页面适应手机屏幕,读取cookie,远端调试webView页面...

TextRelatedDemo

项目过程中碰到的相关问题汇总

  • 简单的图文混排实现(Html.fromHtml / span);
  • 自定义控件圆圈文字的实现(主要是text居中的实现);

SvgAnimationDemo

介绍了三种线条动画的写法

blogsamples's People

Watchers

James Cloos avatar 黄立 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.