Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Caused by: java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.widget.RelativeLayout$LayoutParams
  2. at com.bnppf.ssc.imb.sf.shell.module.login.activities.LoginCreateProfileActivity.setLayoutParamsIfTablet(LoginCreateProfileActivity.java:116)
  3. at com.bnppf.ssc.imb.sf.shell.module.login.activities.LoginCreateProfileActivity.onCreate(LoginCreateProfileActivity.java:111)
  4.  
  5. final RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) rLayoutEnterAliasName
  6. .getLayoutParams();
  7. if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
  8. portraitScreenParams(layoutParams);
  9. } else {
  10. landscapeScreenParams(layoutParams);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement