Giter VIP home page Giter VIP logo

rclayout's People

Contributors

gcssloop avatar limuyang2 avatar xiandanin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rclayout's Issues

你好

这个做的很棒!,但是还不是真正的真正的自定义圆角layout,这本质上用的还是background,layout的边框还是矩形,能不能做一个layout的边框变成矩形的控件呀

Android P 上圆角会有一像素内容

TopLeftRadius/TopRightRadius都为0,BottomLeftRadius/BottomRightRadius都为尺寸一半时,右边会有1像素内容
image

如果手动补1像素就会没有,但是这样不能解决根本问题,作者有什么好思路吗
image

image

大佬,华为8.0的图片不显示圆角。。。RCImageView

<com.gcssloop.widget.RCImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:background="@drawable/bg_750x750"
android:scaleType="fitXY"
app:round_corner="5dp"
app:clip_background="true"/>
预览 有效果的,运行在华为8.0就方了,小米6.0还是圆角

gradle构建失败

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.gcssloop.widget:rclayout:1.8.1.
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.gcssloop.widget:rclayout:1.8.1.
Show Details
Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.gcssloop.widget:rclayout:1.8.1.
Show Details
Affected Modules: app

9.0切背景导致白板

9.0切背景导致白板。感觉9.0不是很稳定,有个思路是判断下版本,9.0以后使用setOutlineProvider设置圆角

当view超过很长的话 view无法显示

布局如下
`

        <com.test.testandroid.test_round_corner.p2.RCRelativeLayout
            android:id="@+id/frame_container"
            android:layout_width="wrap_content"
            app:round_corner="14dp"
            android:layout_height="wrap_content">

            <ImageView
                android:id="@+id/img_default"
                android:layout_width="50dp"
                android:background="#0000ff"
                android:layout_height="3000dp"/>
        </com.test.testandroid.test_round_corner.p2.RCRelativeLayout>
    </LinearLayout>
</ScrollView>`

触摸事件处理优化

当RCLayout内部的子View有点击效果时,比如MD的水波纹效果,如果先按住子View然后一直按住滑动到RCLayout外再松手时,事件被消费了导致子View的水波纹效果没能消退。希望可以优化一下这点。

不设置背景色,无法预览到效果

            <com.gcssloop.widget.RCRelativeLayout
                android:layout_width="50dp"
                android:layout_height="50dp"
                app:round_as_circle="true"
                app:clip_background="true"
                >

                <ImageView
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:scaleType="fitXY"
                    android:src="@drawable/sample_bg" />
            </com.gcssloop.widget.RCRelativeLayout>

在android studio中无法预览,编译安装后有裁剪效果

RCRelativeLayout

用您这个控件,发现会和RecycleView item的长按事件冲突,就是你手指按着某个item上下滑动就会触达长按事件,而用普通的RelativeLayout则不会

性能问题

使用rcimageview列表大量图片时,直观感到卡顿不流畅

长按问题

我在RecyclerView的item中最外层使用RCRelativeLayout导致滑动时也会触发长按

请教

请问
mClipPath.moveTo(-mEdgeFix, -mEdgeFix); // 通过空操作让Path区域占满画布
mClipPath.moveTo(w + mEdgeFix, h + mEdgeFix);
这两端代码是什么意思呢

性能问题

使用RCRelativeLayout后,通过开发者工具--显示过渡绘制,发现会导致多出一次绘制次数

反映个问题,build.gradle中有阿里云的仓库会导致下载的jar代码不正确。

maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter/' }
我的仓库配置了上面这个地址,然后发现下载下来的RCHelper的代码和github下载的不一样。阿里云上的对应的地址是这个:http://maven.aliyun.com/nexus/content/repositories/jcenter/com/gcssloop/widget/rclayout/1.6.0/

这个问题会导致控件的一些效果不起作用。

我看readme这个库貌似只发布在私有仓库中,是不是被别人私自发阿里云上了。

三星 Galaxy S7Edge设置圆形边缘被切掉

image

三星 Galaxy S7Edge
Android 8.0.0 / Oreo / API 26
密度:560 dp / xxxhdpi / 3.5x
精确密度:537.882 * 532.983 dp
屏幕分辨率:1440 * 2560 px
屏幕尺寸:2.7" * 4.8" / 5.5 英寸

RCImageView和RCRelativeLayout,设置底部圆角的方法左下和右下弄反了

左下和右下弄反了,
之前是
mRCHelper.radii[4] = bottomLeftRadius;
mRCHelper.radii[5] = bottomLeftRadius;
改成
mRCHelper.radii[6] = bottomLeftRadius;
mRCHelper.radii[7] = bottomLeftRadius;

之前是
mRCHelper.radii[6] = bottomRightRadius;
mRCHelper.radii[7] = bottomRightRadius;
改成
mRCHelper.radii[4] = bottomRightRadius;
mRCHelper.radii[5] = bottomRightRadius;

1.8.1版本构建失败

Could not resolve com.gcssloop.widget:rclayout:1.8.1.
Required by:
project :app
Could not resolve com.gcssloop.widget:rclayout:1.8.1.
> Could not get resource 'http://lib.gcssloop.com:8081/repository/gcssloop-central/com/gcssloop/widget/rclayout/1.8.1/rclayout-1.8.1.pom'.
> Could not GET 'http://lib.gcssloop.com:8081/repository/gcssloop-central/com/gcssloop/widget/rclayout/1.8.1/rclayout-1.8.1.pom'.
> Connect to lib.gcssloop.com:8081 [lib.gcssloop.com/192.157.231.172] failed: Connection refused (Connection refused)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 9s

设置background导致的显示问题

给该布局添加background颜色,该布局还会直接显示直角矩形背景颜色,不过可以通过在该布局内部定义其他布局解决,这个能否直接定义background达到圆角矩形?

P版本失效

圆角和描边在P版本下失效,O版本可以工作,请帮忙看下,谢谢

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.