Skip to content

Commit 71906f5

Browse files
committed
添加上下左右圆角属性
1 parent 7386cbc commit 71906f5

File tree

6 files changed

+878
-861
lines changed

6 files changed

+878
-861
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

androidx/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies {
4242
implementation 'com.trello.rxlifecycle3:rxlifecycle-components:3.0.0'
4343
implementation project(':libraryx')
4444
// implementation 'com.noober.background:corex:1.5.4-ALPHA'
45-
implementation 'com.github.JavaNoober.BackgroundLibrary:libraryx:1.6.9'
45+
// implementation 'com.github.JavaNoober.BackgroundLibrary:libraryx:1.6.9'
4646
}
4747

4848
repositories{

androidx/src/main/res/layout/activity_main.xml

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,35 @@
1111
android:orientation="vertical"
1212
android:padding="10dp"
1313
tools:context=".MainActivity"
14-
tools:ignore="MissingPrefix">
14+
tools:ignore="MissingPrefix,HardcodedText">
1515

16+
<com.noober.background.view.BLTextView
17+
android:layout_width="match_parent"
18+
android:layout_height="50dp"
19+
android:layout_marginBottom="5dp"
20+
app:bl_corners_topRadius="15dp"
21+
app:bl_solid_color="@color/colorAccent" />
22+
23+
<com.noober.background.view.BLTextView
24+
android:layout_width="match_parent"
25+
android:layout_height="50dp"
26+
android:layout_marginBottom="5dp"
27+
app:bl_corners_leftRadius="15dp"
28+
app:bl_solid_color="@color/colorAccent" />
29+
30+
<com.noober.background.view.BLTextView
31+
android:layout_width="match_parent"
32+
android:layout_height="50dp"
33+
android:layout_marginBottom="5dp"
34+
app:bl_corners_bottomRadius="15dp"
35+
app:bl_solid_color="@color/colorAccent" />
36+
37+
<com.noober.background.view.BLTextView
38+
android:layout_width="match_parent"
39+
android:layout_height="50dp"
40+
android:layout_marginBottom="5dp"
41+
app:bl_corners_rightRadius="15dp"
42+
app:bl_solid_color="@color/colorAccent" />
1643

1744
<com.noober.background.view.BLTextView
1845
android:layout_width="wrap_content"
@@ -22,10 +49,10 @@
2249
android:gravity="center"
2350
android:text="指定只显示左右下方的边框"
2451
android:textSize="20sp"
25-
app:bl_stroke_width="1dp"
26-
app:bl_stroke_color="@android:color/black"
2752
app:bl_solid_color="@android:color/white"
28-
app:bl_stroke_position="left|bottom|right"/>
53+
app:bl_stroke_color="@android:color/black"
54+
app:bl_stroke_position="left|bottom|right"
55+
app:bl_stroke_width="1dp" />
2956

3057
<com.noober.background.view.BLTextView
3158
android:id="@+id/ttt"
@@ -74,11 +101,11 @@
74101
android:textSize="18dp"
75102
android:textStyle="bold"
76103
app:bl_corners_radius="3dp"
77-
app:bl_shape="rectangle"
78-
app:bl_stroke_width="1dp"
79104
app:bl_multi_selector1="-state_enabled,#9DD1F6"
80105
app:bl_multi_selector2="state_pressed,#9DD1F6"
81-
app:bl_multi_selector3="-state_pressed,#1B82D1"/>
106+
app:bl_multi_selector3="-state_pressed,#1B82D1"
107+
app:bl_shape="rectangle"
108+
app:bl_stroke_width="1dp" />
82109

83110
<com.noober.background.view.BLButton
84111
android:layout_width="300dp"
@@ -92,9 +119,9 @@
92119
android:textSize="18dp"
93120
android:textStyle="bold"
94121
app:bl_corners_radius="3dp"
122+
app:bl_pressed_drawable="#9DD1F6"
95123
app:bl_shape="rectangle"
96124
app:bl_stroke_width="1dp"
97-
app:bl_pressed_drawable="#9DD1F6"
98125
app:bl_unEnabled_drawable="#9DD1F6"
99126
app:bl_unPressed_drawable="#1B82D1" />
100127

0 commit comments

Comments
 (0)