• 大小: 2.62M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-24
  • 语言: Java
  • 标签: 布局    

资源简介

实现一个弧形(或者圆形)布局,在这个布局的基础上还实现了path以及Tumblr的菜单效果

资源截图

代码片段和文件信息

package com.ogaclejapan.arclayout.demo;

import android.animation.PropertyValuesHolder;

public class AnimatorUtils {

    public static final String ROTATION = “rotation“;
    public static final String SCALE_X = “scaleX“;
    public static final String SCALE_Y = “scaleY“;
    public static final String TRANSLATION_X = “translationX“;
    public static final String TRANSLATION_Y = “translationY“;

    public static PropertyValuesHolder rotation(float... values) {
        return PropertyValuesHolder.ofFloat(ROTATION values);
    }

    public static PropertyValuesHolder translationX(float... values) {
        return PropertyValuesHolder.ofFloat(TRANSLATION_X values);
    }

    public static PropertyValuesHolder translationY(float... values) {
        return PropertyValuesHolder.ofFloat(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-04-29 08:25  ArcLayout-master\
     文件        1264  2015-04-29 08:25  ArcLayout-master\.gitignore
     文件         115  2015-04-29 08:25  ArcLayout-master\CHANGELOG.md
     文件       11346  2015-04-29 08:25  ArcLayout-master\LICENSE.txt
     文件        4342  2015-04-29 08:25  ArcLayout-master\README.md
     目录           0  2015-04-29 08:25  ArcLayout-master\art\
     文件       98688  2015-04-29 08:25  ArcLayout-master\art\attrs.png
     文件      248182  2015-04-29 08:25  ArcLayout-master\art\demo1.gif
     文件     2285808  2015-04-29 08:25  ArcLayout-master\art\demo2.gif
     文件        8026  2015-04-29 08:25  ArcLayout-master\art\icon.png
     文件         695  2015-04-29 08:25  ArcLayout-master\build.gradle
     目录           0  2015-04-29 08:25  ArcLayout-master\demo\
     文件        1170  2015-04-29 08:25  ArcLayout-master\demo\build.gradle
     文件         661  2015-04-29 08:25  ArcLayout-master\demo\proguard-rules.pro
     目录           0  2015-04-29 08:25  ArcLayout-master\demo\src\
     目录           0  2015-04-29 08:25  ArcLayout-master\demo\src\main\
     文件        1150  2015-04-29 08:25  ArcLayout-master\demo\src\main\AndroidManifest.xml
     目录           0  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\
     目录           0  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\
     目录           0  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\
     目录           0  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\
     目录           0  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\
     文件        1161  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\AnimatorUtils.java
     文件        2177  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\Demo.java
     文件        3288  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\DemoActivity.java
     文件        2993  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\DemoFreeAngleActivity.java
     文件        5477  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\DemoLikePathActivity.java
     文件        8131  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\DemoLikeTumblrActivity.java
     文件        1972  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\MainActivity.java
     目录           0  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\widget\
     文件        1648  2015-04-29 08:25  ArcLayout-master\demo\src\main\java\com\ogaclejapan\arclayout\demo\widget\ClipRevealframe.java
............此处省略86个文件信息

评论

共有 条评论