Skip to content

Commit

Permalink
Merge pull request #189 from odin-/master
Browse files Browse the repository at this point in the history
Add method to easily get content view, fixes #188
  • Loading branch information
janheinrichmerker authored Mar 10, 2017
2 parents 4c8c812 + 7aa422d commit 1209036
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,10 @@ public void setButtonNextFunction(@ButtonNextFunction int buttonNextFunction) {
updateButtonNextPosition();
}

public View getContentView() {
return findViewById(android.R.id.content);
}

@Deprecated
@SuppressWarnings("unused")
public boolean isFinishEnabled() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.heinrichreimersoftware.materialintro.app;

import android.support.v4.app.Fragment;
import android.view.View;

public class SlideFragment extends Fragment {

Expand Down Expand Up @@ -42,4 +43,7 @@ protected void previousSlide() {
}
}

public View getContentView() {
return getActivity().findViewById(android.R.id.content);
}
}

0 comments on commit 1209036

Please sign in to comment.