Friday, February 28, 2014

Example of scrollview in android.

activity_main.xml


<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
  android:layout_height="wrap_content">
 
  <TableLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:stretchColumns="0">
   
    <TableRow>
      <View
        android:layout_height="90dp"
        android:background="#000000"/>
    </TableRow>
   
    <TableRow>
      <View
        android:layout_height="90dp"
        android:background="#440000" />
    </TableRow>
   
    <TableRow>
      <View
        android:layout_height="90dp"
        android:background="#884400" />
    </TableRow>
   
    <TableRow>
      <View
        android:layout_height="90dp"
        android:background="#aa8844" />
    </TableRow>
   
    <TableRow>
      <View
        android:layout_height="90dp"
        android:background="#ffaa88" />
    </TableRow>
   
    <TableRow>
      <View
        android:layout_height="90dp"
        android:background="#ffffaa" />
    </TableRow>
   
    <TableRow>
      <View
        android:layout_height="90dp"
        android:background="#ffffff" />
      </TableRow>
  </TableLayout>
</ScrollView>

Output:

1 comment:

  1. As claimed by Stanford Medical, It is in fact the SINGLE reason women in this country get to live 10 years more and weigh an average of 42 pounds less than we do.

    (And really, it really has NOTHING to do with genetics or some secret diet and EVERYTHING related to "HOW" they eat.)

    BTW, I said "HOW", and not "WHAT"...

    Click on this link to see if this quick quiz can help you release your true weight loss possibilities

    ReplyDelete