HomeНаука и техникаRelated VideosMore From: mikeyaworski

How to Make Screen Scrollable in Android

289 ratings | 45862 views
Leave a like if this helped! Is anyone looking to start a website? You need web hosting and domain registration. Each cost money. I'm with DreamHost and I honestly love them as a hosting company. If you start a website, go to DreamHost (http://dreamhost.com) and use my promo code "MIKEYAWORSKI1" to get free domain registration! That's one fee off the list, now all you need to do is pay for the web hosting. At DreamHost, it's cheap for what you get ($8.95/month). It's one of the best deals out there. My website: http://mikeyaworski.com http://code.mikeyaworski.com http://math.mikeyaworski.com
Html code for embedding videos on your blog
Text Comments (49)
奇異果 (2 months ago)
thank u
Dgo Romr (5 months ago)
thanks :D
AlphaDroid /AD (8 months ago)
Dem Dem (9 months ago)
Thank you! Finally hahaha
john niro yumang (9 months ago)
Best tutorial presently direct on the point
Renan Kaic (18 days ago)
For more teachers like him!
gili alafia (10 months ago)
It did not work for me- it made the textview invisible <LinearLayout android:id="@+id/howToPlayLayout" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:visibility="invisible" > <TextView android:id="@+id/howToPlayText" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="5dp" android:gravity="center_horizontal" android:text="@string/how_to_play" android:textColor="@android:color/black" android:textSize="30sp" /> <ScrollView android:layout_height="wrap_content" android:layout_width="wrap_content" android:orientation="vertical" > <TextView android:id="@+id/textView4" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:layout_marginRight="20dp" android:layout_marginTop="4dp" android:text="@string/insert_each_letter_in_the_right_cell_so_when_the_puzzle_is_completed_every_row_and_column_contains_a_real_4_letters_word_4_words_horizontally_and_4_words_vertically_top_to_bottom" android:textColor="@android:color/holo_blue_dark" android:textSize="17sp" android:textStyle="italic" /> </ScrollView>
Maya Sone (5 months ago)
not sure if this will be helpful after 4 months but try putting                  android:layout_marginLeft="20dp"                 android:layout_marginRight="20dp"                 android:layout_marginTop="4dp"  in the Scroll View and not in the text view because I had a similar code to you and it didn't work unless I did that ;)
Rocky Pictures (10 months ago)
Wow! This really helped! I spent ages trying to do this on my own!
KZ11 (10 months ago)
Thanks, btw your name is adjective from "maple"... Mike Maplish
Anurag Sharma (11 months ago)
awesome thank you .....
Toni Cole (1 year ago)
Armando Lopez (1 year ago)
I spent practically an hour to figure out how to do just what you showed in the video. thanks a lot bro.
Armando Lopez (1 year ago)
That's what I meant make it so that the buttons are within a relative/linear layout and then making that whole layout scrollable.
mikeyaworski (1 year ago)
It is not a good practice. But what you're talking about doesn't require that anyway. Here's what you should do: Make an extra RelativeLayout or LinearLayout or any other type of layout. Put that layout underneath your question or whatever is in your quiz. Inside that layout, put all of your buttons for possible answers. Then use this video's technique to make that layout that wraps the buttons scrollable. So the buttons are not scrollable, but the layout surrounding it is. Still, you might want to find a better design option for this. Scrolling for answers isn't great. But it'll do what you need to do for now.
Armando Lopez (1 year ago)
You're the best bro, now quick question would making buttons scrollable be a good practice? I'm trying to make a simple quiz game but with varying answers and just would like to make it so that the user can scroll through the possible answers and click on that designated button.
mikeyaworski (1 year ago)
Yeah I remember wasting my time at first too lol. That's why I made the video for everyone.
realDonaldTrump (1 year ago)
Im like the school celebrity now because everyone found out I can make apps. lol I have 10+ great ideas that will be on the app store within the next few months.
mikeyaworski (1 year ago)
Lmao yeah everyone thought it was cool that I could make apps too :)
Alex Alezzo (1 year ago)
You saved my black ass, thank you!!!
realDonaldTrump (1 year ago)
mikeyaworski LOL
mikeyaworski (1 year ago)
Lmao awesome!
Clips n' Crackers (1 year ago)
Why don't google do tuts as easy as this
mikeyaworski (1 year ago)
hanz newton (1 year ago)
Thanks bunch, this helped an awful lot.
Fabi Balance (1 year ago)
saved me a lot of time, thanks! :)
Johny Sulliven (1 year ago)
it works
mikeyaworski (1 year ago)
Of course it does
sweetsweatyfeet (1 year ago)
Where is the android scroll bar when I'm on youtube? I can't scroll when I'm using you be. I can't scroll down to see the comments or any recommended videos below the screen window.
mikeyaworski (1 year ago)
I'm not sure how the Android app works. I don't use it.
phokeybladewar (1 year ago)
mikeyaworski (1 year ago)
rachit chhabra (1 year ago)
Precise and useful
mikeyaworski (1 year ago)
That's the goal :)
K (1 year ago)
Will this work if I want buttons to be scrollable
K (1 year ago)
+mikeyaworski Okay, thanks
mikeyaworski (1 year ago)
A scrollable button sounds like a bad idea. But just put the button inside a scrollview and it should work.
Jerry Noel (1 year ago)
Awee You helped me so muchhhh!!
mikeyaworski (1 year ago)
Glad I could help :)
Duane Degn (2 years ago)
Thanks for the video. It told me just what I wanted to know.
mikeyaworski (2 years ago)
Awesome! Glad to help.
alfred paldez (2 years ago)
what if I want to wrap multiple widgets in a scrollview? I have 3 Edit Texts..
alfred paldez (2 years ago)
+mikeyaworski thanks mate, works good
mikeyaworski (2 years ago)
+alfred paldez You have to put a RelativeLayout or LinearLayout inside the ScrollView. So that layout will be the only *direct* child of ScrollView. You can then put the EditTexts (or any other widget) inside the Relative or Linear layout. That way, the multiple widgets are not a direct child of the ScrollView, but are a child of the RelativeLayout (grandchildren).
Ioannis Batsios (2 years ago)
Excellent concise video. Now, can you do the same to pull up an animated gif splash screen?
mikeyaworski (2 years ago)
+Ioannis Batsios Oh I see. I'd help you if I could, but I don't know how to do that either.
Ioannis Batsios (2 years ago)
I was just frustrated that I can't find a good tutorial on making a splash screen that uses an animated gif. It has to be possible.
mikeyaworski (2 years ago)
+Ioannis Batsios Thank you. And I'm not exactly sure what you mean by that.
Ali Alwahybi (3 years ago)
Thanks for sharing this with us :) I like it

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.