@@ -51,10 +51,10 @@ protected void onCreate(Bundle savedInstanceState) {
51
51
super .onCreate (savedInstanceState );
52
52
setContentView (R .layout .activity_main );
53
53
54
- mSwipeStack = ( SwipeStack ) findViewById (R .id .swipeStack );
55
- mButtonLeft = ( Button ) findViewById (R .id .buttonSwipeLeft );
56
- mButtonRight = ( Button ) findViewById (R .id .buttonSwipeRight );
57
- mFab = ( FloatingActionButton ) findViewById (R .id .fabAdd );
54
+ mSwipeStack = findViewById (R .id .swipeStack );
55
+ mButtonLeft = findViewById (R .id .buttonSwipeLeft );
56
+ mButtonRight = findViewById (R .id .buttonSwipeRight );
57
+ mFab = findViewById (R .id .fabAdd );
58
58
59
59
mButtonLeft .setOnClickListener (this );
60
60
mButtonRight .setOnClickListener (this );
@@ -144,7 +144,7 @@ public class SwipeStackAdapter extends BaseAdapter {
144
144
145
145
private List <String > mData ;
146
146
147
- public SwipeStackAdapter (List <String > data ) {
147
+ SwipeStackAdapter (List <String > data ) {
148
148
this .mData = data ;
149
149
}
150
150
@@ -169,7 +169,7 @@ public View getView(final int position, View convertView, ViewGroup parent) {
169
169
convertView = getLayoutInflater ().inflate (R .layout .card , parent , false );
170
170
}
171
171
172
- TextView textViewCard = ( TextView ) convertView .findViewById (R .id .textViewCard );
172
+ TextView textViewCard = convertView .findViewById (R .id .textViewCard );
173
173
textViewCard .setText (mData .get (position ));
174
174
175
175
return convertView ;
0 commit comments