开发者

Scrollable sliding view in Android

开发者 https://www.devze.com 2023-02-13 02:32 出处:网络
I\'d like to create a sliding view showing facebook contacts at the bottom of the screen. When clicking on the facebook logo, as shown in top image, I\'ll show a facebook login form, and once logged

I'd like to create a sliding view showing facebook contacts at the bottom of the screen.

When clicking on the facebook logo, as shown in top image, I'll show a facebook login form, and once logged in, clicking on the facebook logo will slide in/out the view (bottom image shows view after slide out). The view will contain pictures of some selected facebook contacts (not all, say up to 10), so the view should be scrollable to be able to see selected contacts.

I found SlidingDrawer, but it seems it requires two separa开发者_StackOverflowte children views, one for handle, another for content, while I want one view, with only a selected area shown when slidden in.

Any suggestion on the best way to achieve this?

Thank you

Scrollable sliding view in Android

Scrollable sliding view in Android


Couldn't this be done with a simple ScrollView using the smoothScrollTo method?

ScrollView.smoothScrollTo


You can try by having a LinearLayout with ImageButton(facebook logo) a nd a Galleryview(initially not visible)on click of that button set Visibility of Imagebutton to Visible.GONE and Gallery view to Visible

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号