Skip to content

Commit

Permalink
关闭BLAutoInjectController
Browse files Browse the repository at this point in the history
  • Loading branch information
肖琪(融汇/产品技术中心) committed Dec 4, 2020
1 parent 945b0ec commit b826993
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import android.widget.Button;
import android.widget.TextView;

import com.noober.background.BackgroundLibrary;
import com.noober.background.annotation.BLUsed;
import com.noober.background.drawable.DrawableCreator;

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

// findViewById(R.id.select_view).setSelected(true);

// findViewById(R.id.submit).setEnabled(false);
Drawable drawable = new DrawableCreator.Builder().setCornersRadius(30)
.setSolidColor(Color.parseColor("#FFFFFF"))
.setStrokeColor(Color.parseColor("#FFFFFF"))
Expand Down
28 changes: 15 additions & 13 deletions app/src/main/java/com/noober/backgroudlibrary/MyApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@ public class MyApplication extends Application {



{
BLAutoInjectController.setEnableAutoInject(false);
}
//或者
static {
BLAutoInjectController.setEnableAutoInject(false);
}
//或者
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
BLAutoInjectController.setEnableAutoInject(false);
}
// 控制是否需要自动进行inject

// {
// BLAutoInjectController.setEnableAutoInject(false);
// }
// //或者
// static {
// BLAutoInjectController.setEnableAutoInject(false);
// }
// //或者
// @Override
// protected void attachBaseContext(Context base) {
// super.attachBaseContext(base);
// BLAutoInjectController.setEnableAutoInject(false);
// }

@Override
public void onCreate() {
Expand Down
41 changes: 0 additions & 41 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,47 +13,6 @@
tools:context=".MainActivity"
tools:ignore="MissingPrefix">


<TextView
android:id="@+id/tv111"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="今日持仓"
android:textSize="12sp"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:paddingTop="2dp"
android:paddingBottom="2dp"
android:background="@drawable/test_sel3" />


<com.noober.background.view.BLFrameLayout
android:id="@+id/select_view"
android:layout_width="match_parent"
android:layout_height="30dp"
app:bl_corners_radius="15dp"
app:bl_solid_color="@android:color/darker_gray"
app:bl_selected_solid_color="@android:color/holo_red_dark"
app:bl_pressed_solid_color="@android:color/black">

</com.noober.background.view.BLFrameLayout>

<com.noober.background.view.BLRadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="今日持仓"
android:textSize="12sp"
android:paddingLeft="6dp"
android:paddingRight="6dp"
android:paddingTop="2dp"
android:paddingBottom="2dp"
app:bl_checked_solid_color="@color/colorPrimaryDark"
app:bl_unCheckable_solid_color="#F4F4F4"
app:bl_checked_textColor="@android:color/white"
app:bl_unChecked_textColor="@color/colorPrimaryDark"
app:bl_corners_radius="10dp" />


<com.noober.background.view.BLButton
android:id="@+id/btn_login"
style="?android:attr/borderlessButtonStyle"
Expand Down

0 comments on commit b826993

Please sign in to comment.