Skip to content

Commit

Permalink
添加上下左右圆角属性
Browse files Browse the repository at this point in the history
  • Loading branch information
GoblinV committed May 27, 2021
1 parent 7386cbc commit 71906f5
Show file tree
Hide file tree
Showing 6 changed files with 878 additions and 861 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion androidx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {
implementation 'com.trello.rxlifecycle3:rxlifecycle-components:3.0.0'
implementation project(':libraryx')
// implementation 'com.noober.background:corex:1.5.4-ALPHA'
implementation 'com.github.JavaNoober.BackgroundLibrary:libraryx:1.6.9'
// implementation 'com.github.JavaNoober.BackgroundLibrary:libraryx:1.6.9'
}

repositories{
Expand Down
43 changes: 35 additions & 8 deletions androidx/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,35 @@
android:orientation="vertical"
android:padding="10dp"
tools:context=".MainActivity"
tools:ignore="MissingPrefix">
tools:ignore="MissingPrefix,HardcodedText">

<com.noober.background.view.BLTextView
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="5dp"
app:bl_corners_topRadius="15dp"
app:bl_solid_color="@color/colorAccent" />

<com.noober.background.view.BLTextView
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="5dp"
app:bl_corners_leftRadius="15dp"
app:bl_solid_color="@color/colorAccent" />

<com.noober.background.view.BLTextView
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="5dp"
app:bl_corners_bottomRadius="15dp"
app:bl_solid_color="@color/colorAccent" />

<com.noober.background.view.BLTextView
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="5dp"
app:bl_corners_rightRadius="15dp"
app:bl_solid_color="@color/colorAccent" />

<com.noober.background.view.BLTextView
android:layout_width="wrap_content"
Expand All @@ -22,10 +49,10 @@
android:gravity="center"
android:text="指定只显示左右下方的边框"
android:textSize="20sp"
app:bl_stroke_width="1dp"
app:bl_stroke_color="@android:color/black"
app:bl_solid_color="@android:color/white"
app:bl_stroke_position="left|bottom|right"/>
app:bl_stroke_color="@android:color/black"
app:bl_stroke_position="left|bottom|right"
app:bl_stroke_width="1dp" />

<com.noober.background.view.BLTextView
android:id="@+id/ttt"
Expand Down Expand Up @@ -74,11 +101,11 @@
android:textSize="18dp"
android:textStyle="bold"
app:bl_corners_radius="3dp"
app:bl_shape="rectangle"
app:bl_stroke_width="1dp"
app:bl_multi_selector1="-state_enabled,#9DD1F6"
app:bl_multi_selector2="state_pressed,#9DD1F6"
app:bl_multi_selector3="-state_pressed,#1B82D1"/>
app:bl_multi_selector3="-state_pressed,#1B82D1"
app:bl_shape="rectangle"
app:bl_stroke_width="1dp" />

<com.noober.background.view.BLButton
android:layout_width="300dp"
Expand All @@ -92,9 +119,9 @@
android:textSize="18dp"
android:textStyle="bold"
app:bl_corners_radius="3dp"
app:bl_pressed_drawable="#9DD1F6"
app:bl_shape="rectangle"
app:bl_stroke_width="1dp"
app:bl_pressed_drawable="#9DD1F6"
app:bl_unEnabled_drawable="#9DD1F6"
app:bl_unPressed_drawable="#1B82D1" />

Expand Down
Loading

0 comments on commit 71906f5

Please sign in to comment.