Skip to content

Commit b826993

Browse files
author
肖琪(融汇/产品技术中心)
committed
关闭BLAutoInjectController
1 parent 945b0ec commit b826993

3 files changed

Lines changed: 17 additions & 55 deletions

File tree

app/src/main/java/com/noober/backgroudlibrary/MainActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import android.widget.Button;
1515
import android.widget.TextView;
1616

17+
import com.noober.background.BackgroundLibrary;
1718
import com.noober.background.annotation.BLUsed;
1819
import com.noober.background.drawable.DrawableCreator;
1920

@@ -33,7 +34,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
3334
// findViewById(R.id.tv111).setSelected(true);
3435

3536
// findViewById(R.id.select_view).setSelected(true);
36-
37+
// findViewById(R.id.submit).setEnabled(false);
3738
Drawable drawable = new DrawableCreator.Builder().setCornersRadius(30)
3839
.setSolidColor(Color.parseColor("#FFFFFF"))
3940
.setStrokeColor(Color.parseColor("#FFFFFF"))

app/src/main/java/com/noober/backgroudlibrary/MyApplication.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,21 @@ public class MyApplication extends Application {
1313

1414

1515

16-
{
17-
BLAutoInjectController.setEnableAutoInject(false);
18-
}
19-
//或者
20-
static {
21-
BLAutoInjectController.setEnableAutoInject(false);
22-
}
23-
//或者
24-
@Override
25-
protected void attachBaseContext(Context base) {
26-
super.attachBaseContext(base);
27-
BLAutoInjectController.setEnableAutoInject(false);
28-
}
16+
// 控制是否需要自动进行inject
17+
18+
// {
19+
// BLAutoInjectController.setEnableAutoInject(false);
20+
// }
21+
// //或者
22+
// static {
23+
// BLAutoInjectController.setEnableAutoInject(false);
24+
// }
25+
// //或者
26+
// @Override
27+
// protected void attachBaseContext(Context base) {
28+
// super.attachBaseContext(base);
29+
// BLAutoInjectController.setEnableAutoInject(false);
30+
// }
2931

3032
@Override
3133
public void onCreate() {

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

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,6 @@
1313
tools:context=".MainActivity"
1414
tools:ignore="MissingPrefix">
1515

16-
17-
<TextView
18-
android:id="@+id/tv111"
19-
android:layout_width="wrap_content"
20-
android:layout_height="wrap_content"
21-
android:text="今日持仓"
22-
android:textSize="12sp"
23-
android:paddingLeft="6dp"
24-
android:paddingRight="6dp"
25-
android:paddingTop="2dp"
26-
android:paddingBottom="2dp"
27-
android:background="@drawable/test_sel3" />
28-
29-
30-
<com.noober.background.view.BLFrameLayout
31-
android:id="@+id/select_view"
32-
android:layout_width="match_parent"
33-
android:layout_height="30dp"
34-
app:bl_corners_radius="15dp"
35-
app:bl_solid_color="@android:color/darker_gray"
36-
app:bl_selected_solid_color="@android:color/holo_red_dark"
37-
app:bl_pressed_solid_color="@android:color/black">
38-
39-
</com.noober.background.view.BLFrameLayout>
40-
41-
<com.noober.background.view.BLRadioButton
42-
android:layout_width="wrap_content"
43-
android:layout_height="wrap_content"
44-
android:text="今日持仓"
45-
android:textSize="12sp"
46-
android:paddingLeft="6dp"
47-
android:paddingRight="6dp"
48-
android:paddingTop="2dp"
49-
android:paddingBottom="2dp"
50-
app:bl_checked_solid_color="@color/colorPrimaryDark"
51-
app:bl_unCheckable_solid_color="#F4F4F4"
52-
app:bl_checked_textColor="@android:color/white"
53-
app:bl_unChecked_textColor="@color/colorPrimaryDark"
54-
app:bl_corners_radius="10dp" />
55-
56-
5716
<com.noober.background.view.BLButton
5817
android:id="@+id/btn_login"
5918
style="?android:attr/borderlessButtonStyle"

0 commit comments

Comments
 (0)