Skip to content

Instantly share code, notes, and snippets.

@LuizGadao
Created June 2, 2015 13:25
Show Gist options
  • Save LuizGadao/e0900219e89793e7b8fb to your computer and use it in GitHub Desktop.
Save LuizGadao/e0900219e89793e7b8fb to your computer and use it in GitHub Desktop.
scroll height with online image
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="wrap_content" tools:context="akou.open.WhatActivity"
android:background="#d6d6d6">
<ScrollView
android:layout_width="match_parent"
android:id="@+id/scrollView1"
android:layout_height="wrap_content"
android:scrollbarAlwaysDrawVerticalTrack="true">
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitStart"
android:adjustViewBounds="true"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment