@@ -42,7 +42,7 @@ ShapeImageView|AlmightyShapeImageView
4242
4343``` gradle
4444 dependencies {
45- implementation 'com.github.FlyJingFish:ShapeImageView:1.4.2 '
45+ implementation 'com.github.FlyJingFish:ShapeImageView:1.4.3 '
4646 }
4747```
4848## The third step, instructions for use
@@ -85,45 +85,45 @@ ShapeImageView|AlmightyShapeImageView
8585
8686### List of properties
8787
88- | attr| format| description|
89- | ---| :---:| :---:|
90- | shape| enum| The picture is a rectangle/oval circle|
91- | shape_radius| dimension| The four corners of the image are rounded|
92- | shape_left_top_radius| dimension| The upper left corner of the image is rounded|
93- | shape_right_top_radius| dimension| Round corners in the upper right corner of the image|
94- | shape_right_bottom_radius| dimension| The bottom right corner of the image is rounded|
95- | shape_left_bottom_radius| dimension| The bottom left corner of the image is rounded|
96- | shape_start_top_radius| dimension| image top left (Rtl: top right) corner rounded|
97- | shape_end_top_radius| dimension| image top right (Rtl: top left) corner rounded|
98- | shape_end_bottom_radius| dimension| picture bottom right (Rtl: bottom left) corner rounded|
99- | shape_start_bottom_radius| dimension| picture bottom left (Rtl: bottom right) corner rounded|
100- | shape_border| enum| The background border drawing shape is none without drawing/rectangle rectangle/oval circle|
101- | shape_border_radius| dimension| The four corners of the background border are rounded|
102- | shape_border_left_top_radius| dimension| The top left corner of the background border is rounded|
103- | shape_border_right_top_radius| dimension| rounded corners in the upper right corner of the background border|
104- | shape_border_right_bottom_radius| dimension| The bottom right corner of the background border is rounded|
105- | shape_border_left_bottom_radius| dimension| The bottom left corner of the background border is rounded|
106- | shape_border_start_top_radius| dimension| background border top left (Rtl: top right) corner rounded|
107- | shape_border_end_top_radius| dimension| background border top right (Rtl: top left) corner rounded|
108- | shape_border_end_bottom_radius| dimension| background border bottom right (Rtl: bottom left) corner rounded|
109- | shape_border_start_bottom_radius| dimension| The bottom left (Rtl: bottom right) corner of the background border is rounded|
110- | shape_border_color| color| Background border drawing color|
111- | shape_border_gradient| boolean| Whether the background border is drawn in gradient color|
112- | shape_border_startColor| color| The background border draw gradient color start color|
113- | shape_border_centerColor| color| The background border draws the gradient middle color|
114- | shape_border_endColor| color| The background border draws the gradient color end color|
115- | shape_border_angle| float| Start angle of background border drawing gradient color|
116- | shape_border_rtl_angle| boolean| Does the gradient start angle of the background border support mirror Rtl adaptation|
117- | shape_border_strokeWidth| dimension| width of background border drawing brush|
118- | autoCrop_height_width_ratio| float| The image aspect ratio is a multiple of the View aspect ratio|
119- | shapeScaleType| enum| If you set the new display mode to set this, the details are as follows:|
120-
121- | shapeScaleType| description|
122- | ---| : ---:|
123- | startCrop| Crop start top left|
124- | endCrop| Crop start bottom right|
125- | autoStartCenterCrop| Automatically switch between startCrop and centerCrop|
126- | autoEndCenterCrop| Automatically switch between endCrop and centerCrop|
88+ | attr | format | description |
89+ | ---------------------------------- | :--------- :| :---------------------------------------------------------------------------------------- ---:|
90+ | shape | enum | The picture is a rectangle/oval circle |
91+ | shape_radius | dimension | The four corners of the image are rounded |
92+ | shape_left_top_radius | dimension | The upper left corner of the image is rounded |
93+ | shape_right_top_radius | dimension | Round corners in the upper right corner of the image |
94+ | shape_right_bottom_radius | dimension | The bottom right corner of the image is rounded |
95+ | shape_left_bottom_radius | dimension | The bottom left corner of the image is rounded |
96+ | shape_start_top_radius | dimension | image top left (Rtl: top right) corner rounded |
97+ | shape_end_top_radius | dimension | image top right (Rtl: top left) corner rounded |
98+ | shape_end_bottom_radius | dimension | picture bottom right (Rtl: bottom left) corner rounded |
99+ | shape_start_bottom_radius | dimension | picture bottom left (Rtl: bottom right) corner rounded |
100+ | shape_border | enum | The background border drawing shape is none without drawing/rectangle rectangle/oval circle |
101+ | shape_border_radius | dimension | The four corners of the background border are rounded |
102+ | shape_border_left_top_radius | dimension | The top left corner of the background border is rounded |
103+ | shape_border_right_top_radius | dimension | rounded corners in the upper right corner of the background border |
104+ | shape_border_right_bottom_radius | dimension | The bottom right corner of the background border is rounded |
105+ | shape_border_left_bottom_radius | dimension | The bottom left corner of the background border is rounded |
106+ | shape_border_start_top_radius | dimension | background border top left (Rtl: top right) corner rounded |
107+ | shape_border_end_top_radius | dimension | background border top right (Rtl: top left) corner rounded |
108+ | shape_border_end_bottom_radius | dimension | background border bottom right (Rtl: bottom left) corner rounded |
109+ | shape_border_start_bottom_radius | dimension | The bottom left (Rtl: bottom right) corner of the background border is rounded |
110+ | shape_border_color | color | Background border drawing color |
111+ | shape_border_gradient | boolean | Whether the background border is drawn in gradient color |
112+ | shape_border_startColor | color | The background border draw gradient color start color |
113+ | shape_border_centerColor | color | The background border draws the gradient middle color |
114+ | shape_border_endColor | color | The background border draws the gradient color end color |
115+ | shape_border_angle | float | Start angle of background border drawing gradient color |
116+ | shape_border_rtl_angle | boolean | Does the gradient start angle of the background border support mirror Rtl adaptation |
117+ | shape_border_strokeWidth | dimension | width of background border drawing brush |
118+ | autoCrop_height_width_ratio | float | The image aspect ratio is a multiple of the View aspect ratio |
119+ | shapeScaleType | enum | If you set the new display mode to set this, the details are as follows: |
120+
121+ | shapeScaleType | description |
122+ | --------------------- | :-------------------------------------------------- ---:|
123+ | startCrop | Crop start top left |
124+ | endCrop | Crop start bottom right |
125+ | autoStartCenterCrop | Automatically switch between startCrop and centerCrop |
126+ | autoEndCenterCrop | Automatically switch between endCrop and centerCrop |
127127
128128# 二、AlmightyShapeImageView Instructions for Use
129129
@@ -144,25 +144,25 @@ ShapeImageView|AlmightyShapeImageView
144144
145145### List of properties
146146
147- | attr| format| description |
148- | ---| :---:| :------------:|
149- | almighty_shape_resource| reference| Shape Resource |
150- | almighty_shape_scaleType| enum| The display type of the drawing resource |
147+ | attr | format | description |
148+ | -------------------------- | :--------- :| :---------------------------- ------------:|
149+ | almighty_shape_resource | reference | Shape Resource |
150+ | almighty_shape_scaleType | enum | The display type of the drawing resource |
151151
152152
153- | almighty_shape_scaleType| description |
154- | ---| : -----------------------------------------------------------------------:|
155- | followImageViewKeepResourceScale| The graphics resource follows the ImageView's ScaleType type and maintains the aspect ratio of the graphics resource |
156- | followImageViewFullImage| The graphics resource follows the ImageView's ScaleType but fills the width and height of the image (the graphics may be stretched relatively) |
157- | alwaysFixXY| The graphics resource will not follow the ScaleType of the ImageView, and always fill the ImageView container (setting this property to some ScaleType will cause the graphics to be incomplete) |
153+ | almighty_shape_scaleType | description |
154+ | ---------------------------------- | :------------------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------:|
155+ | followImageViewKeepResourceScale | The graphics resource follows the ImageView's ScaleType type and maintains the aspect ratio of the graphics resource |
156+ | followImageViewFullImage | The graphics resource follows the ImageView's ScaleType but fills the width and height of the image (the graphics may be stretched relatively) |
157+ | alwaysFixXY | The graphics resource will not follow the ScaleType of the ImageView, and always fill the ImageView container (setting this property to some ScaleType will cause the graphics to be incomplete) |
158158
159159### Method
160160
161- | method | type | description|
162- | -----------------| :-------------:| :---:|
163- | setShapeResource | Drawable | Shape Resource Drawable|
164- | setShapeResource | DrawableRes | Shape resource id|
165- | setShapeResource | ShapeScaleType | Sets the display type for drawing graphics resources|
161+ | method | type | description |
162+ | ------------------ | :-------------- :| :------------------------------------------------- ---:|
163+ | setShapeResource | Drawable | Shape Resource Drawable |
164+ | setShapeResource | DrawableRes | Shape resource id |
165+ | setShapeResource | ShapeScaleType | Sets the display type for drawing graphics resources |
166166
167167### Graphic resource setting prompt
168168
0 commit comments