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 ZoomPanLayout extends ViewGroup implements | |
GestureDetector.OnGestureListener, | |
GestureDetector.OnDoubleTapListener, | |
ScaleGestureDetector.OnScaleGestureListener, | |
TouchUpGestureDetector.OnTouchUpListener { | |
private boolean isFinderActive(){ | |
// return true if FinderView is available and visible | |
} | |
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 CustomDialogFragment extends DialogFragment { | |
@NonNull | |
@Override | |
public Dialog onCreateDialog(Bundle savedInstanceState) { | |
if (isInLayout()) | |
return super.onCreateDialog(savedInstanceState); | |
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()) | |
.setView(R.layout.my_custom_layout) |
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
<android.support.v7.widget.RecyclerView | |
... | |
android:clipToPadding="false" | |
android:paddingBottom="72dp" | |
/> | |
<!-- | |
Button size = 56dp | |
Margin = 16dp // on tablets 24dp | |
-------------------------- |