OSDN Git Service

Show regulatory info within a ScrollView
authorBrian Muramatsu <btmura@google.com>
Thu, 18 Oct 2012 01:27:02 +0000 (18:27 -0700)
committerBrian Muramatsu <btmura@google.com>
Thu, 18 Oct 2012 01:27:02 +0000 (18:27 -0700)
Bug 7200143

Some images won't fit in portrait and landscape mode.

Change-Id: I06016ec5dd85db9801120ac20dfedc249e94c20f

res/layout/regulatory_info.xml

index dc1efe8..5827557 100755 (executable)
      See the License for the specific language governing permissions and
      limitations under the License.
 -->
-<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
-    android:adjustViewBounds="true"
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="wrap_content"
-    android:layout_height="wrap_content"
-    android:scaleType="centerCrop"
-    android:src="@drawable/regulatory_info"/>
+    android:layout_height="wrap_content">
+    <ImageView
+        android:adjustViewBounds="true"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:scaleType="centerCrop"
+        android:src="@drawable/regulatory_info" />
+</ScrollView>
+