Guest User

Untitled

a guest
Mar 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. public class CommentsActivity extends BaseDrawerActivity implements SendCommentButton.OnSendClickListener {`
  2. @Bind(R.id.btnSendComment)
  3. SendCommentButton btnSendComment;
  4. private void setupComments() {
  5. LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
  6. rvComments.setLayoutManager(linearLayoutManager);
  7. rvComments.setHasFixedSize(true);
  8.  
  9. public class BaseDrawerActivity extends BaseActivity {
  10.  
  11. public class BaseActivity extends AppCompatActivity {
  12.  
  13. public class SendCommentButton extends ViewAnimator implements View.OnClickListener {
  14.  
  15. java.lang.ClassCastException: android.support.v7.widget.AppCompatButton cannot be cast to com.example.alsongdunstan.thefaithapp.ui.view.SendCommentButton
  16.  
  17. <android.support.v7.widget.RecyclerView
  18. android:id="@+id/rvComments"
  19. android:layout_width="match_parent"
  20. android:layout_height="0dp"
  21. android:layout_weight="1"
  22. android:scrollbars="none" />
Add Comment
Please, Sign In to add comment