Code Monkey home page Code Monkey logo

bubblelayout's Introduction

BubbleLayout

Android 实现气泡布局

Demo:

图片名称

用法

  1. 复制BubbleLayout到项目中,
  2. 将以下熟悉复制到res/values/attrs中,
    <declare-styleable name="BubbleLayout">
        <attr name="background_color" format="color" />
        <attr name="shadow_color" format="color" />
        <attr name="shadow_size" format="dimension" />
        <attr name="radius" format="dimension" />
        <attr name="direction" format="enum">
            <enum name="left" value="1" />
            <enum name="top" value="2" />
            <enum name="right" value="3" />
            <enum name="bottom" value="4" />
        </attr>
        <attr name="offset" format="dimension" />
    </declare-styleable>

3.xml中使用,参考activity_main

    <me.wy.app.BubbleLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        //必须设置足够的padding才可以绘制三角形和阴影
        android:padding="16dp"
        //背景颜色
        app:background_color="#FF4081"
        //三角形方向
        app:direction="left"
        //三角形相对偏移量
        app:offset="-40dp"
        //圆角大小
        app:radius="4dp"
        //阴影颜色
        app:shadow_color="#999999"
        //阴影大小
        app:shadow_size="4dp">

        ...
    </me.wy.app.BubbleLayout>

bubblelayout's People

Contributors

wangyiwy avatar

Stargazers

DPL avatar  avatar Charson.Cheng avatar  avatar JorgeLiang avatar  avatar 刘泓辰 avatar  avatar 江暮寒秋 avatar 杜育轩 avatar 大魔王 avatar JiChao avatar Warm Man avatar  avatar hxkdyw avatar Iroh avatar Andy avatar Jacky avatar 孙俊卿 avatar Vincent Zuo avatar Liarr avatar nbtang avatar ldoublem avatar  avatar JiangYue avatar  avatar LiaoZhongKai avatar atomtong avatar  avatar  avatar dong avatar  avatar  avatar 三七 avatar newYorkCity avatar GOO avatar  avatar hyl87 avatar  avatar  avatar  avatar Eric Hollis avatar chenfeng avatar DaYuan avatar  avatar  avatar wayne avatar  avatar wenjie.Li avatar  avatar Easy avatar 贾帅 avatar shlock_fan avatar Otway avatar 小米`s avatar Sogrey avatar Charming avatar cheny avatar 行一 avatar Zaaach avatar 弥哲 avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

bubblelayout's Issues

hello

hi,i am a chinese coder,我有一个和你同样苦恼的问题。

项目:wasabeef/richeditor-android,富文本编辑器
问题:
"how to cancel Blockquote tag? #73
Open wangyiwy opened this issue on 2 Aug 2016 · 1 comment"
这是您提出的一个疑问,请问后来有解决的方案么?有的话,请指教一下,万分感谢

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.