This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class MyCircularQueue { | |
| int size; | |
| int data[]; | |
| int start; | |
| int end; | |
| /** | |
| * Initialize your data structure here. Set the size of the queue to be k. | |
| */ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class DeviceLocation implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient | |
| .OnConnectionFailedListener { | |
| //TODO Resolve the memory leak | |
| private static final DeviceLocation currentLocation = new DeviceLocation(); | |
| private static final int PERMISSION_ACCESS_FINE_LOCATION = 1; | |
| public static DeviceLocation getInstance() { | |
| return currentLocation; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | mHeader.setAlpha(1); | |
| Animation animation = AnimationUtils.loadAnimation(getContext(), com.syw.commons.R.anim.left_in); | |
| mAddPhoto.animate().alpha(1).setDuration(500).setInterpolator(new AccelerateInterpolator(2)).start(); | |
| mPopularSelectionParent.animate().alpha(1).setDuration(500).setInterpolator(new AccelerateInterpolator(2)).start(); | |
| mHeader.startAnimation(animation); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Add the below lines to the Parent layout which contains the EditText | |
| android:focusableInTouchMode="true" |