With the custom LinearLayout (MyHorizontalLayout.java) in last exercise "
Implement custom LinearLayout for Gallery-like HorizontalScrollView", it can be implement vertical Gallery-like ScrollView also.
Keep both MainActivity.java and MyHorizontalLayout.java of last exercise no change.
Modify the layout.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ScrollView
android:layout_width="wrap_content"
android:layout_height="fill_parent" >
<com.example.androidhorizontalscrollviewgallery.MyHorizontalLayout
android:id="@+id/mygallery"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
/>
</ScrollView>
</LinearLayout>
Related:
-
GridView loading photos from SD Card
Related Posts :
Android 4.2 SDK is availableAndroid 4.2 (Jelly Bean) SDK platform with API level 17 is available now. get started developing and testing, download the Android 4.2 Platf… Read More...
Samsung Chromebook (Wi-Fi, 11.6-Inch) $249, (3G, 11.6-Inch) $349.99Samsung Google Chromebook Series 3 Wi-Fi - Dual Core 1.7GHz, 11.6", 2GB RAM & 16GB Flash Storage (XE303C12-A01US)Price:$249.00Samsung Go… Read More...
Free ebook: Introducing Windows 8: An Overview for IT Professionals (Final Edition) - from MicrosoftMicrosoft Press have released the final version of the ebook Introducing Windows 8: An Overview for IT Professionals, for FREE!Link: Downloa… Read More...
Query Contacts database for contacts with phone number onlyLast exercise "Query Contacts database" for all contacts. If you want to query contacts with phone number only, simple change the selection:… Read More...
Pro Android Games, Second Edition In the last few years, Android has progressed with the debut of better fonts, new User Interface and Experience (UI/UX) APIs… Read More...
0 Response to "Vertical Gallery-like ScrollView"
Post a Comment