Code Monkey home page Code Monkey logo

simplecoverflow's Introduction

老外的自定义View面试题实现篇

欠大家一篇文章,这段时间事情较多常在外面跑来跑去的,其本上没什么时间静下来写代码。然后看到了不少的网友给我反馈,想看一下是如何实现这个效果的:

我看到有人通过RecyclerView来实现这个效果,其实也可以,只是背离了考查自定义UI开发的目的。这里我做了一个简单的实现,当然是不完整的,我希望大家自己动手来完善它,那样这个实例中涉及的知识才能真正转化成你自己的技能。

这里简单说一下实现步骤:

  1. 实现自定义的圆角带阴影的View
  1. 实现GroupView+Adapter完成布局
  2. 实现滑动

原面试题传送门

对Android开发和面试感兴趣的话可以关注我的微信公众号:Android面试启示录

simplecoverflow's People

Contributors

goeasyway avatar

Watchers

 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.