This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

active_main_example

By: AntonioLinux on Aug 17th, 2012  |  syntax: XML  |  size: 1.11 KB  |  views: 35  |  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. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3.  xmlns:android="http://schemas.android.com/apk/res/android"
  4.  android:orientation="vertical"
  5.  android:layout_width="match_parent"
  6.  android:layout_height="match_parent"
  7.  android:paddingLeft="8dp"
  8.  android:paddingRight="8dp">
  9.  
  10.   <Button
  11.    android:id="@+id/buttonStart"
  12.    android:layout_width="fill_parent"
  13.    android:layout_height="wrap_content"
  14.    android:text="Start" />
  15.  
  16.    <Button
  17.    android:id="@+id/buttonAllarm"
  18.    android:layout_width="fill_parent"
  19.    android:layout_height="wrap_content"
  20.    android:text="Allarm" />
  21.  
  22.    <ListView
  23.    android:id="@android:id/list"
  24.    android:layout_width="match_parent"
  25.    android:layout_height="match_parent"
  26.    android:background="#00FF00"
  27.    android:layout_weight="1"
  28.    android:drawSelectorOnTop="false"/>  
  29.    <!-- per ora hai messo un testo ma sarebbe meglio un immagine -->
  30.   <TextView
  31.    android:id="@android:id/empty"
  32.    android:layout_width="match_parent"
  33.    android:layout_height="match_parent"
  34.    android:background="#FF0000"
  35.    android:text="No data" />
  36. </LinearLayout>
clone this paste RAW Paste Data