Skip to content

Commit 178bd9b

Browse files
committed
update butterknife sample code
1 parent 6fcd90b commit 178bd9b

11 files changed

Lines changed: 68 additions & 68 deletions

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/AwesomeTextViewExample.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import com.beardedhen.androidbootstrap.BootstrapText;
77
import com.beardedhen.androidbootstrap.font.MaterialIcons;
88

9-
import butterknife.Bind;
9+
import butterknife.BindView;
1010
import butterknife.OnClick;
1111

1212
import static com.beardedhen.androidbootstrap.font.FontAwesome.FA_ANCHOR;
@@ -22,12 +22,12 @@ public class AwesomeTextViewExample extends BaseActivity {
2222
return R.layout.example_awesome_text_view;
2323
}
2424

25-
@Bind(R.id.example_fa_text_change) AwesomeTextView exampleChange;
26-
@Bind(R.id.example_fa_text_flash) AwesomeTextView exampleFlash;
27-
@Bind(R.id.example_fa_text_rotate) AwesomeTextView exampleRotate;
28-
@Bind(R.id.example_fa_text_multi_change) AwesomeTextView exampleMultiChange;
29-
@Bind(R.id.example_fa_text_builder) AwesomeTextView exampleBuilder;
30-
@Bind(R.id.example_mix_and_match) AwesomeTextView mixAndMatch;
25+
@BindView(R.id.example_fa_text_change) AwesomeTextView exampleChange;
26+
@BindView(R.id.example_fa_text_flash) AwesomeTextView exampleFlash;
27+
@BindView(R.id.example_fa_text_rotate) AwesomeTextView exampleRotate;
28+
@BindView(R.id.example_fa_text_multi_change) AwesomeTextView exampleMultiChange;
29+
@BindView(R.id.example_fa_text_builder) AwesomeTextView exampleBuilder;
30+
@BindView(R.id.example_mix_and_match) AwesomeTextView mixAndMatch;
3131

3232
private boolean android = true;
3333
private boolean wikipedia = true;

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/BootstrapAlertExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
import com.beardedhen.androidbootstrap.BootstrapAlert;
88

9-
import butterknife.Bind;
9+
import butterknife.BindView;
1010
import butterknife.OnClick;
1111

1212
public class BootstrapAlertExample extends BaseActivity {
1313

1414
public static final String TAG = "BootstrapAlertExample";
1515

16-
@Bind(R.id.dynamic_alert) BootstrapAlert alert;
16+
@BindView(R.id.dynamic_alert) BootstrapAlert alert;
1717

1818
@Override
1919
protected int getContentLayoutId() {

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/BootstrapBadgeExample.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
import java.util.Random;
99

10-
import butterknife.Bind;
10+
import butterknife.BindView;
1111
import butterknife.OnClick;
1212

1313
public class BootstrapBadgeExample extends BaseActivity {
1414

15-
@Bind(R.id.xml_badge_button) BootstrapButton xmlBadgeButton;
16-
@Bind(R.id.java_badge_button) BootstrapButton javaBadgeButton;
17-
@Bind(R.id.lonely_badge) BootstrapBadge lonelyBadge;
15+
@BindView(R.id.xml_badge_button) BootstrapButton xmlBadgeButton;
16+
@BindView(R.id.java_badge_button) BootstrapButton javaBadgeButton;
17+
@BindView(R.id.lonely_badge) BootstrapBadge lonelyBadge;
1818

1919
@Override
2020
protected int getContentLayoutId() {

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/BootstrapButtonExample.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapBrand;
88
import com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapSize;
99

10-
import butterknife.Bind;
10+
import butterknife.BindView;
1111
import butterknife.OnClick;
1212

1313
public class BootstrapButtonExample extends BaseActivity {
@@ -18,11 +18,11 @@ public class BootstrapButtonExample extends BaseActivity {
1818

1919
private DefaultBootstrapSize size = DefaultBootstrapSize.LG;
2020

21-
@Bind(R.id.bbutton_example_corners) BootstrapButton exampleCorners;
22-
@Bind(R.id.bbutton_example_outline) BootstrapButton exampleOutline;
23-
@Bind(R.id.bbutton_example_size) BootstrapButton exampleSize;
24-
@Bind(R.id.bbutton_example_theme) BootstrapButton exampleTheme;
25-
@Bind(R.id.example_bbutton_custom_style) BootstrapButton exampleCustomStyle;
21+
@BindView(R.id.bbutton_example_corners) BootstrapButton exampleCorners;
22+
@BindView(R.id.bbutton_example_outline) BootstrapButton exampleOutline;
23+
@BindView(R.id.bbutton_example_size) BootstrapButton exampleSize;
24+
@BindView(R.id.bbutton_example_theme) BootstrapButton exampleTheme;
25+
@BindView(R.id.example_bbutton_custom_style) BootstrapButton exampleCustomStyle;
2626

2727
@Override protected void onCreate(Bundle savedInstanceState) {
2828
super.onCreate(savedInstanceState);

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/BootstrapButtonGroupExample.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapBrand;
1010
import com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapSize;
1111

12-
import butterknife.Bind;
12+
import butterknife.BindView;
1313
import butterknife.OnClick;
1414

1515
public class BootstrapButtonGroupExample extends BaseActivity {
@@ -20,18 +20,18 @@ public class BootstrapButtonGroupExample extends BaseActivity {
2020

2121
private DefaultBootstrapSize size = DefaultBootstrapSize.MD;
2222

23-
@Bind(R.id.bbutton_group_orientation_change) BootstrapButtonGroup orientationChange;
24-
@Bind(R.id.bbutton_group_size_change) BootstrapButtonGroup sizeChange;
25-
@Bind(R.id.bbutton_group_outline_change) BootstrapButtonGroup outlineChange;
26-
@Bind(R.id.bbutton_group_rounded_change) BootstrapButtonGroup roundedChange;
27-
@Bind(R.id.bbutton_group_brand_change) BootstrapButtonGroup brandChange;
28-
@Bind(R.id.bbutton_group_child_change) BootstrapButtonGroup childChange;
23+
@BindView(R.id.bbutton_group_orientation_change) BootstrapButtonGroup orientationChange;
24+
@BindView(R.id.bbutton_group_size_change) BootstrapButtonGroup sizeChange;
25+
@BindView(R.id.bbutton_group_outline_change) BootstrapButtonGroup outlineChange;
26+
@BindView(R.id.bbutton_group_rounded_change) BootstrapButtonGroup roundedChange;
27+
@BindView(R.id.bbutton_group_brand_change) BootstrapButtonGroup brandChange;
28+
@BindView(R.id.bbutton_group_child_change) BootstrapButtonGroup childChange;
2929

30-
@Bind(R.id.bbutton_group_checked_text) TextView checkedText;
30+
@BindView(R.id.bbutton_group_checked_text) TextView checkedText;
3131

32-
@Bind(R.id.bbutton_group_checked1) BootstrapButton radioButton1;
33-
@Bind(R.id.bbutton_group_checked2) BootstrapButton radioButton2;
34-
@Bind(R.id.bbutton_group_checked3) BootstrapButton radioButton3;
32+
@BindView(R.id.bbutton_group_checked1) BootstrapButton radioButton1;
33+
@BindView(R.id.bbutton_group_checked2) BootstrapButton radioButton2;
34+
@BindView(R.id.bbutton_group_checked3) BootstrapButton radioButton3;
3535

3636
@Override
3737
protected void onCreate(Bundle savedInstanceState) {

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/BootstrapCircleThumbnailExample.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapSize;
1111
import com.beardedhen.androidbootstrap.utils.DrawableUtils;
1212

13-
import butterknife.Bind;
13+
import butterknife.BindView;
1414
import butterknife.OnClick;
1515

1616
import static com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapBrand.DANGER;
@@ -32,13 +32,13 @@ public class BootstrapCircleThumbnailExample extends BaseActivity {
3232
return R.layout.example_bootstrap_circle_thumbnail;
3333
}
3434

35-
@Bind(R.id.bcircle_image_change_example) BootstrapCircleThumbnail imageChange;
36-
@Bind(R.id.bcircle_theme_change_example) BootstrapCircleThumbnail themeChange;
37-
@Bind(R.id.bcircle_border_change_example) BootstrapCircleThumbnail borderChange;
38-
@Bind(R.id.bcircle_size_change_example) BootstrapCircleThumbnail sizeChange;
39-
@Bind(R.id.bcircle_set_image_bitmap_example) BootstrapCircleThumbnail setBitmapExample;
40-
@Bind(R.id.bcircle_set_image_drawable_example) BootstrapCircleThumbnail setDrawableExample;
41-
@Bind(R.id.bcircle_set_image_resource_example) BootstrapCircleThumbnail setResourceExample;
35+
@BindView(R.id.bcircle_image_change_example) BootstrapCircleThumbnail imageChange;
36+
@BindView(R.id.bcircle_theme_change_example) BootstrapCircleThumbnail themeChange;
37+
@BindView(R.id.bcircle_border_change_example) BootstrapCircleThumbnail borderChange;
38+
@BindView(R.id.bcircle_size_change_example) BootstrapCircleThumbnail sizeChange;
39+
@BindView(R.id.bcircle_set_image_bitmap_example) BootstrapCircleThumbnail setBitmapExample;
40+
@BindView(R.id.bcircle_set_image_drawable_example) BootstrapCircleThumbnail setDrawableExample;
41+
@BindView(R.id.bcircle_set_image_resource_example) BootstrapCircleThumbnail setResourceExample;
4242

4343
@Override protected void onCreate(Bundle savedInstanceState) {
4444
super.onCreate(savedInstanceState);

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/BootstrapEditTextExample.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapBrand;
55
import com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapSize;
66

7-
import butterknife.Bind;
7+
import butterknife.BindView;
88
import butterknife.OnClick;
99

1010
import static com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapBrand.DANGER;
@@ -23,10 +23,10 @@ public class BootstrapEditTextExample extends BaseActivity {
2323

2424
private DefaultBootstrapSize size = DefaultBootstrapSize.MD;
2525

26-
@Bind(R.id.bedit_text_change_enabled) BootstrapEditText changeEnabled;
27-
@Bind(R.id.bedit_text_change_round) BootstrapEditText changeRound;
28-
@Bind(R.id.bedit_text_change_theme) BootstrapEditText changeTheme;
29-
@Bind(R.id.bedit_text_change_size) BootstrapEditText sizeExample;
26+
@BindView(R.id.bedit_text_change_enabled) BootstrapEditText changeEnabled;
27+
@BindView(R.id.bedit_text_change_round) BootstrapEditText changeRound;
28+
@BindView(R.id.bedit_text_change_theme) BootstrapEditText changeTheme;
29+
@BindView(R.id.bedit_text_change_size) BootstrapEditText sizeExample;
3030

3131
@OnClick(R.id.bedit_text_change_enabled_btn) void onChangeEnabledExampleClicked() {
3232
changeEnabled.setEnabled(!changeEnabled.isEnabled());

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/BootstrapLabelExample.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapBrand;
55
import com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapHeading;
66

7-
import butterknife.Bind;
7+
import butterknife.BindView;
88
import butterknife.OnClick;
99

1010
import static com.beardedhen.androidbootstrap.api.defaults.DefaultBootstrapHeading.H1;
@@ -20,9 +20,9 @@ public class BootstrapLabelExample extends BaseActivity {
2020
return R.layout.example_bootstrap_label;
2121
}
2222

23-
@Bind(R.id.example_blabel_change_color) BootstrapLabel lblChangeColor;
24-
@Bind(R.id.example_blabel_change_heading) BootstrapLabel lblChangeHeading;
25-
@Bind(R.id.example_blabel_change_rounded) BootstrapLabel lblChangeRounded;
23+
@BindView(R.id.example_blabel_change_color) BootstrapLabel lblChangeColor;
24+
@BindView(R.id.example_blabel_change_heading) BootstrapLabel lblChangeHeading;
25+
@BindView(R.id.example_blabel_change_rounded) BootstrapLabel lblChangeRounded;
2626

2727
@OnClick(R.id.example_blabel_change_heading) void onHeadingChangeClicked() {
2828
switch ((DefaultBootstrapHeading) lblChangeHeading.getBootstrapHeading()) {

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/BootstrapProgressBarExample.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import java.util.Random;
88

9-
import butterknife.Bind;
9+
import butterknife.BindView;
1010
import butterknife.OnClick;
1111

1212
public class BootstrapProgressBarExample extends BaseActivity {
@@ -49,12 +49,12 @@ public ChangeState next() {
4949
return R.layout.example_bootstrap_progress_bar;
5050
}
5151

52-
@Bind(R.id.example_progress_default) BootstrapProgressBar defaultExample;
53-
@Bind(R.id.example_progress_animated) BootstrapProgressBar animatedExample;
54-
@Bind(R.id.example_progress_striped) BootstrapProgressBar stripedExample;
55-
@Bind(R.id.example_progress_striped_animated) BootstrapProgressBar stripedAnimExample;
56-
@Bind(R.id.example_progress_change) BootstrapProgressBar changeExample;
57-
@Bind(R.id.example_size_change) BootstrapProgressBar sizeExample;
52+
@BindView(R.id.example_progress_default) BootstrapProgressBar defaultExample;
53+
@BindView(R.id.example_progress_animated) BootstrapProgressBar animatedExample;
54+
@BindView(R.id.example_progress_striped) BootstrapProgressBar stripedExample;
55+
@BindView(R.id.example_progress_striped_animated) BootstrapProgressBar stripedAnimExample;
56+
@BindView(R.id.example_progress_change) BootstrapProgressBar changeExample;
57+
@BindView(R.id.example_size_change) BootstrapProgressBar sizeExample;
5858

5959
@OnClick(R.id.example_progress_default_btn) void onDefaultClicked() {
6060
defaultExample.setProgress(randomProgress(defaultExample.getProgress(), 100));

sample/src/main/java/com/fractalwrench/androidbootstrap/sample/BootstrapProgressBarGroupExample.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88

99
import java.util.Random;
1010

11-
import butterknife.Bind;
11+
import butterknife.BindView;
1212
import butterknife.OnClick;
1313

1414
public class BootstrapProgressBarGroupExample extends BaseActivity {
1515

16-
@Bind(R.id.example_progress_bar_group_add_group)
16+
@BindView(R.id.example_progress_bar_group_add_group)
1717
BootstrapProgressBarGroup groupAdd;
1818

19-
@Bind(R.id.example_progress_bar_group_round_group)
19+
@BindView(R.id.example_progress_bar_group_round_group)
2020
BootstrapProgressBarGroup groupRound;
2121

22-
@Bind(R.id.example_progress_bar_group_progress_1)
22+
@BindView(R.id.example_progress_bar_group_progress_1)
2323
BootstrapProgressBar bootstrapProgressBar1;
2424

25-
@Bind(R.id.example_progress_bar_group_progress_2)
25+
@BindView(R.id.example_progress_bar_group_progress_2)
2626
BootstrapProgressBar bootstrapProgressBar2;
2727

2828
boolean rounded = false;

0 commit comments

Comments
 (0)