Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed footer to the bottom of scrollview #106

Open
ulohani90 opened this issue Feb 26, 2015 · 3 comments
Open

Fixed footer to the bottom of scrollview #106

ulohani90 opened this issue Feb 26, 2015 · 3 comments

Comments

@ulohani90
Copy link

Hi , I am using this library in my project . I am using a viewpager in which I am adding fragments which have the fading actionbar effect on scroll.
I have to add a footerview at the bottom of each fragment.I want my scrollview content to scroll from behind my footerview.
What I did was , I made my parent Layout as the frame layout. then added a scrollview first then my footer view .
Looking at the library I found that it treats the whole container as the scrollview content.
I'm stuck . Please help

@AdarshYadav
Copy link

I am also facing same problem.

@claudepark
Copy link

You use setContentView() for inflating xml(RelativeLayout include framelayout, footerFrame).
and helper.createView() add in frameLayout.

@adpushsdk
Copy link

Hi, thanks to claudepark for the tips, I have managed to do it.

  1. Create an XML(RelativeLayout parent), with FrameLayout on top, and another fixed LinearLayout / RelativeLayout as footer that aligns to parent bottom.

  2. In your activity, create FadingActionBarHelper with correct settings.

  3. Instantiate your FrameLayout by using findViewById().

  4. Then by using the FrameLayout instantiated with the function addView(), add in the helper.createView(this);

** helper.createView returns a View, and hence, you can easily programatically add it into any layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants