Guest User

Untitled

a guest
Jan 17th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. public ActionBarContainer(Context context, AttributeSet attrs) {
  2. super(context, attrs);
  3.  
  4. setBackgroundDrawable(null);
  5.  
  6. TypedArray a = context.obtainStyledAttributes(attrs,
  7. R.styleable.SherlockActionBar);
  8. mBackground = a.getDrawable(R.styleable.SherlockActionBar_background);
  9. mStackedBackground = a.getDrawable(
  10. R.styleable.SherlockActionBar_backgroundStacked);
  11.  
  12. if (getId() == R.id.abs__split_action_bar) {
  13. mIsSplit = true;
  14. mSplitBackground = a.getDrawable(
  15. R.styleable.SherlockActionBar_backgroundSplit);
  16. }
  17. a.recycle();
  18.  
  19. setWillNotDraw(mIsSplit ? mSplitBackground == null :
  20. mBackground == null && mStackedBackground == null);
  21. }
  22.  
  23. private static final int[] ProgressBar = new int[] {
  24. ...
  25. android.R.attr.animationResolution
  26.  
  27. private static class SetActivated {
  28. public static void invoke(View view, boolean activated) {
  29. view.setActivated(activated);
  30. }
  31. }
  32.  
  33. <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15"/>
Add Comment
Please, Sign In to add comment