Giter VIP home page Giter VIP logo

audioclips's Introduction

AudioClips

音频剪辑工具,能自定义许多元素

使用

dependencies { compile 'com.luowei.warmheart:audioclip:+' }

配置

    <com.luowei.audioclip.ClipsFrameLayout
        android:id="@+id/clipsFrameLayout"
        android:layout_width="match_parent"
        android:layout_height="210dp"
        app:clip_background="@drawable/bg_clips"
        app:clip_clipsMinSecond="10"
        app:clip_endId="@+id/cmtvEnd"
        app:clip_progressHeight="180dp"
        app:clip_point_width="1dp"
        app:clip_startId="@+id/cmtvStart">

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:scaleType="fitXY"
            android:src="@drawable/img_graduation" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:text="0:00"
            android:textColor="#eee"
            android:textSize="14sp" />

        <TextView
            android:id="@+id/tvDuration"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right"
            android:layout_marginTop="10dp"
            android:text="3:00"
            android:textColor="#eee"
            android:textSize="14sp" />

        <com.luowei.audioclip.ClipsMarkerTextView
            android:id="@+id/cmtvStart"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:drawableTop="@drawable/ic_start_clips"
            android:gravity="bottom|center_horizontal"
            android:paddingLeft="5dp"
            android:paddingRight="5dp"
            android:paddingTop="170dp"
            android:textColor="#888"
            android:textSize="14sp" />

        <com.luowei.audioclip.ClipsMarkerTextView
            android:id="@+id/cmtvEnd"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:drawableTop="@drawable/ic_end_clips"
            android:gravity="bottom|center_horizontal"
            android:paddingLeft="5dp"
            android:paddingRight="5dp"
            android:paddingTop="170dp"
            android:textColor="#888"
            android:textSize="14sp" />
    </com.luowei.audioclip.ClipsFrameLayout>

####标签属性说明

  • clip_progressHeight: 播放进度条高度
  • clip_startId: 剪辑开始标记的资源Id
  • clip_endId: 剪辑结束标记的资源Id
  • clip_background: 剪辑的背景图标
  • clip_clipsOverColor: 剪辑的覆盖颜色
  • clip_clipsMinSecond: 剪辑的最小时间
  • clip_point_width: 播放进度条的指定的宽度
  • clip_point_color: 播放进度条的颜色

audioclips's People

Contributors

luoweii avatar

Watchers

Jack Leung 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.