Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 10.93 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. I can't get the button to the bottom of the layout
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3.     android:id="@+id/ScrollView01"
  4.     android:layout_width="fill_parent"
  5.     android:layout_height="fill_parent"
  6.     android:fillViewport="true"
  7.     android:layout_gravity="center"
  8.      >
  9.     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10.         android:layout_width="match_parent"
  11.         android:layout_height="match_parent"
  12.         android:gravity="center"
  13.          >
  14.  
  15.         <ImageView
  16.             android:id="@+id/imageView1"
  17.             android:layout_width="wrap_content"
  18.             android:layout_height="wrap_content"
  19.             android:layout_alignParentLeft="true"
  20.             android:layout_alignParentTop="true"
  21.             android:layout_marginLeft="28dp"
  22.             android:layout_marginTop="32dp" />
  23.  
  24.         <TextView
  25.             android:id="@+id/txtAppName"
  26.             android:layout_width="wrap_content"
  27.             android:layout_height="wrap_content"
  28.             android:layout_alignTop="@+id/imageView1"
  29.             android:layout_marginLeft="22dp"
  30.             android:layout_toRightOf="@+id/imageView1"
  31.             android:text=""
  32.             android:textSize="36px"
  33.             android:textStyle="bold" />
  34.  
  35.         <TextView
  36.             android:id="@+id/txtAppAuthor"
  37.             android:layout_width="wrap_content"
  38.             android:layout_height="wrap_content"
  39.             android:layout_alignLeft="@+id/txtAppName"
  40.             android:layout_below="@+id/txtAppName"
  41.             android:layout_marginTop="5px"
  42.             android:text=""
  43.             android:textSize="24px"
  44.             android:textStyle="normal" />
  45.  
  46.  
  47.         <TextView
  48.             android:id="@+id/txtAppDesc"
  49.             android:layout_width="wrap_content"
  50.             android:layout_height="wrap_content"
  51.             android:layout_alignLeft="@+id/imageView1"
  52.             android:layout_below="@+id/imageView1"
  53.             android:layout_marginTop="20dp"
  54.             android:maxHeight="350px"
  55.             android:text=""
  56.             android:width="600px"
  57.             android:maxLines="10"
  58.             android:scrollbars = "vertical"
  59.              />
  60.  
  61.         <ImageView
  62.             android:id="@+id/imageView2"
  63.             android:layout_width="wrap_content"
  64.             android:layout_height="wrap_content"
  65.             android:layout_alignLeft="@+id/txtAppDesc"
  66.             android:layout_below="@+id/txtAppDesc"
  67.             android:layout_marginTop="30dp" />
  68.  
  69.         <ImageView
  70.             android:id="@+id/imageView3"
  71.             android:layout_width="wrap_content"
  72.             android:layout_height="wrap_content"
  73.             android:layout_alignTop="@+id/imageView2"
  74.             android:layout_toRightOf="@+id/imageView2" />
  75.  
  76.  
  77.         <ImageView
  78.             android:id="@+id/imageView4"
  79.             android:layout_width="wrap_content"
  80.             android:layout_height="wrap_content"
  81.             android:layout_alignTop="@+id/imageView3"
  82.             android:layout_toRightOf="@+id/imageView3"
  83.             android:visibility="visible" />
  84.  
  85.  
  86.         <Button
  87.             android:id="@+id/btnInstall"
  88.             android:layout_width="wrap_content"
  89.             android:layout_height="wrap_content"
  90.             android:layout_alignParentBottom="true"
  91.             android:layout_centerHorizontal="true"
  92.             android:layout_alignBottom="@+id/imageview4"
  93.             android:text="Download & Install" />
  94.  
  95.     </RelativeLayout>
  96. </ScrollView>
  97.        
  98. <?xml version="1.0" encoding="utf-8"?>
  99. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  100.             android:id="@+id/ScrollView01"
  101.             android:layout_width="fill_parent"
  102.             android:layout_height="fill_parent"
  103.             android:fillViewport="true"
  104.             android:layout_gravity="center"
  105.         >
  106.     <LinearLayout android:layout_width="match_parent"
  107.                   android:layout_height="match_parent"
  108.                   android:orientation="vertical">
  109.  
  110.  
  111.         <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  112.                         android:layout_width="match_parent"
  113.                         android:layout_height="match_parent"
  114.                         android:gravity="center"
  115.                 >
  116.  
  117.             <ImageView
  118.                     android:id="@+id/imageView1"
  119.                     android:layout_width="wrap_content"
  120.                     android:layout_height="wrap_content"
  121.                     android:layout_alignParentLeft="true"
  122.                     android:layout_alignParentTop="true"
  123.                     android:layout_marginLeft="28dp"
  124.                     android:layout_marginTop="32dp"/>
  125.  
  126.             <TextView
  127.                     android:id="@+id/txtAppName"
  128.                     android:layout_width="wrap_content"
  129.                     android:layout_height="wrap_content"
  130.                     android:layout_alignTop="@+id/imageView1"
  131.                     android:layout_marginLeft="22dp"
  132.                     android:layout_toRightOf="@+id/imageView1"
  133.                     android:text=""
  134.                     android:textSize="36px"
  135.                     android:textStyle="bold"/>
  136.  
  137.             <TextView
  138.                     android:id="@+id/txtAppAuthor"
  139.                     android:layout_width="wrap_content"
  140.                     android:layout_height="wrap_content"
  141.                     android:layout_alignLeft="@+id/txtAppName"
  142.                     android:layout_below="@+id/txtAppName"
  143.                     android:layout_marginTop="5px"
  144.                     android:text=""
  145.                     android:textSize="24px"
  146.                     android:textStyle="normal"/>
  147.  
  148.  
  149.             <TextView
  150.                     android:id="@+id/txtAppDesc"
  151.                     android:layout_width="wrap_content"
  152.                     android:layout_height="wrap_content"
  153.                     android:layout_alignLeft="@+id/imageView1"
  154.                     android:layout_below="@+id/imageView1"
  155.                     android:layout_marginTop="20dp"
  156.                     android:maxHeight="350px"
  157.                     android:text=""
  158.                     android:width="600px"
  159.                     android:maxLines="10"
  160.                     android:scrollbars="vertical"
  161.                     />
  162.  
  163.             <ImageView
  164.                     android:id="@+id/imageView2"
  165.                     android:layout_width="wrap_content"
  166.                     android:layout_height="wrap_content"
  167.                     android:layout_alignLeft="@+id/txtAppDesc"
  168.                     android:layout_below="@+id/txtAppDesc"
  169.                     android:layout_marginTop="30dp"/>
  170.  
  171.             <ImageView
  172.                     android:id="@+id/imageView3"
  173.                     android:layout_width="wrap_content"
  174.                     android:layout_height="wrap_content"
  175.                     android:layout_alignTop="@+id/imageView2"
  176.                     android:layout_toRightOf="@+id/imageView2"/>
  177.  
  178.  
  179.             <ImageView
  180.                     android:id="@+id/imageView4"
  181.                     android:layout_width="wrap_content"
  182.                     android:layout_height="wrap_content"
  183.                     android:layout_alignTop="@+id/imageView3"
  184.                     android:layout_toRightOf="@+id/imageView3"
  185.                     android:visibility="visible"/>
  186.  
  187.         </RelativeLayout>
  188.  
  189.  
  190.         <Button
  191.                 android:id="@+id/btnInstall"
  192.                 android:layout_width="wrap_content"
  193.                 android:layout_height="wrap_content"
  194.                 android:layout_gravity="center"
  195.                 android:text="Download & Install"/>
  196.     </LinearLayout>
  197. </ScrollView>
  198.        
  199. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  200.     android:id="@+id/ScrollView01"
  201.     android:layout_width="wrap_content"
  202.     android:layout_height="wrap_content"
  203.     android:layout_gravity="center"
  204.     android:fillViewport="true" >
  205.  
  206.     <RelativeLayout
  207.         xmlns:android="http://schemas.android.com/apk/res/android"
  208.         android:layout_width="wrap_content"
  209.         android:layout_height="wrap_content"
  210.         android:gravity="center" >
  211.  
  212.         <ImageView
  213.             android:id="@+id/imageView1"
  214.             android:layout_width="wrap_content"
  215.             android:layout_height="wrap_content"
  216.             android:layout_alignParentLeft="true"
  217.             android:layout_alignParentTop="true"
  218.             android:layout_marginLeft="28dp"
  219.             android:layout_marginTop="32dp" />
  220.  
  221.         <TextView
  222.             android:id="@+id/txtAppName"
  223.             android:layout_width="wrap_content"
  224.             android:layout_height="wrap_content"
  225.             android:layout_alignTop="@+id/imageView1"
  226.             android:layout_marginLeft="22dp"
  227.             android:layout_toRightOf="@+id/imageView1"
  228.             android:text=""
  229.             android:textSize="36px"
  230.             android:textStyle="bold" />
  231.  
  232.         <TextView
  233.             android:id="@+id/txtAppAuthor"
  234.             android:layout_width="wrap_content"
  235.             android:layout_height="wrap_content"
  236.             android:layout_alignLeft="@+id/txtAppName"
  237.             android:layout_below="@+id/txtAppName"
  238.             android:layout_marginTop="5px"
  239.             android:text=""
  240.             android:textSize="24px"
  241.             android:textStyle="normal" />
  242.  
  243.         <TextView
  244.             android:id="@+id/txtAppDesc"
  245.             android:layout_width="wrap_content"
  246.             android:layout_height="wrap_content"
  247.             android:layout_alignLeft="@+id/imageView1"
  248.             android:layout_below="@+id/imageView1"
  249.             android:layout_marginTop="20dp"
  250.             android:maxHeight="350px"
  251.             android:maxLines="10"
  252.             android:scrollbars="vertical"
  253.             android:text=""
  254.             android:width="600px" />
  255.  
  256.         <HorizontalScrollView
  257.             android:id="@+id/images"
  258.             android:layout_width="wrap_content"
  259.             android:layout_height="wrap_content"
  260.             android:layout_below="@+id/txtAppDesc"
  261.             android:layout_marginTop="30dp" >
  262.  
  263.             <LinearLayout
  264.                 android:layout_width="wrap_content"
  265.                 android:layout_height="wrap_content"
  266.                 android:orientation="horizontal" >
  267.  
  268.                 <ImageView
  269.                     android:id="@+id/imageView2"
  270.                     android:layout_width="wrap_content"
  271.                     android:layout_height="wrap_content" />
  272.  
  273.                 <ImageView
  274.                     android:id="@+id/imageView3"
  275.                     android:layout_width="wrap_content"
  276.                     android:layout_height="wrap_content" />
  277.  
  278.                 <ImageView
  279.                     android:id="@+id/imageView4"
  280.                     android:layout_width="wrap_content"
  281.                     android:layout_height="wrap_content" />
  282.  
  283.             </LinearLayout>
  284.         </HorizontalScrollView>
  285.  
  286.         <Button
  287.             android:id="@+id/btnInstall"
  288.             android:layout_width="wrap_content"
  289.             android:layout_height="wrap_content"
  290.             android:layout_below="@+id/images"
  291.             android:layout_centerHorizontal="true"
  292.             android:text="Download & Install" />
  293.     </RelativeLayout>
  294.  
  295. </ScrollView>