Norway


We are very pleased to present FillMe, the library to fill literally every shape with color.

Enjoy! 🙂

-  - The Android Arsenal – Image Views   -  - The Android Arsenal – Image Views

Try now

-  - The Android Arsenal – Image Views

Add FillMe the same way like other Adroid .

        <com.patryk1007.fillme.FillMe
            :id="@+id/fill_me_view"
            android:layout_width="180dp"
            android:layout_height="180dp"
            android:layout_gravity="center"
            :fmAlphaLevel="5"
            app:fmConvexFigure="false"
            app:fmFillByTouch="vertical"
            app:fmFillColour="@android:color/holo_red_light"
            app:fmFillHorizontalPercent="1"
            app:fmFillVerticalPercent="0.95"
            app:fmImage="@drawable/heart" />
compile 'com.patryk1007:fillme_lib:1.0'
attr description Default
fmImage Set drawable resource id, e.g. app:fmImage=”@drawable/my_super_
fmAlphaLevel Library detects a shape’s lines by checking alpha color, manage this value if your shape has shodows, value range: 0-255 122
fmFillHorizontalPercent Set the color horizontal fill in percents, value range: 0-1 0
fmFillVerticalPercent Set the color vertical fill in percents, value range: 0-1 0
fmFillByTouch Set changing fill percent by touch image, values: none; horizontal; vertical; both; none
fmConvexFigure Set true if shape is convex true
fmAsyncCalculation if the image is big and calculation takes some set the value to true to avoid problem with stop main thread ( Uses only if shape is concave) true
fmFillColour Set fill color as int value #00ff00
Copyright (C)  patryk1007

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here