Changeset 4 for trunk/TagTracker/res


Ignore:
Timestamp:
05/03/12 22:18:02 (13 years ago)
Author:
remons
Message:

Added custom button
Added "drawable" folder
Added Menu

Location:
trunk/TagTracker/res
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/TagTracker/res/layout/main.xml

    r3 r4  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <RelativeLayout
    3     xmlns:android="http://schemas.android.com/apk/res/android"
     2<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     3    android:id="@+id/Screen"
    44    android:layout_width="fill_parent"
    5     android:layout_height="fill_parent"
    6     android:id="@+id/Screen" >
    7                  <TextView
    8             android:id="@+id/text"
    9             android:layout_width="fill_parent"
    10             android:layout_height="wrap_content"
    11             android:layout_above="@+id/zend"
    12             android:layout_alignParentLeft="true"
    13             android:layout_alignParentTop="true" />
    14                  
    15                  <Button
    16             android:id="@+id/zend"
    17             android:layout_width="match_parent"
    18             android:layout_height="wrap_content"
    19             android:layout_above="@+id/status"
    20             android:layout_alignParentLeft="true"
    21             android:text="Verzenden" />
    22                  
    23         <ToggleButton
    24             android:id="@+id/status"
    25             android:layout_width="match_parent"
    26             android:layout_height="wrap_content"
    27             android:layout_alignParentBottom="true"
    28             android:layout_alignParentLeft="true"
    29             android:onClick="onToggleClicked"
    30             android:text="ToggleButton"
    31             android:textOff="Start"
    32             android:textOn="Stop" />
    33     </RelativeLayout>
     5    android:layout_height="fill_parent" >
     6
     7    <TextView
     8        android:id="@+id/text"
     9        android:layout_width="fill_parent"
     10        android:layout_height="wrap_content"
     11        android:layout_alignParentLeft="true"
     12        android:layout_alignParentTop="true" />
     13
     14
     15
     16    <ToggleButton
     17        android:id="@+id/status"
     18        style="@style/ToggleButton"
     19        android:layout_width="match_parent"
     20        android:layout_height="200dp"
     21        android:layout_marginLeft="20dp"
     22        android:layout_marginRight="20dp"
     23        android:layout_alignParentLeft="true"
     24        android:layout_centerVertical="true"
     25        android:onClick="onToggleClicked"
     26        android:textOff="START"
     27        android:textOn="STOP" />
     28
     29    <Button
     30        android:id="@+id/zend"
     31        android:layout_width="match_parent"
     32        android:layout_height="wrap_content"
     33        android:layout_alignParentBottom="true"
     34        android:layout_alignParentLeft="true"
     35        android:text="Verzenden" />
     36
     37</RelativeLayout>
  • trunk/TagTracker/res/values-v11/themes.xml

    r3 r4  
    11<?xml version="1.0" encoding="utf-8"?>
    22<resources>
    3     <style name="MyTheme" parent="@android:style/Theme.Holo">
     3     <style name="ActionBar" parent="@android:style/Widget.Holo.ActionBar" />
     4    <style name="MyTheme" parent="@android:style/Theme.Holo.Light">
    45        <!-- Any customizations for your app running on post-3.0 devices here -->
     6        <item name="android:actionBarStyle">@style/ActionBar.Light</item>
     7    </style>
     8    <style name="ToggleButton" parent="@android:Widget">
     9        <item name="android:background">@drawable/toggle_button</item>
     10        <item name="android:textColor">#FF231f20</item>
     11        <item name="android:textSize">50dp</item>
     12    </style>
     13    <style name="ActionBar.Light" parent="@style/ActionBar">
     14        <item name="android:background">#FF03a9e7</item>
     15        <item name="android:windowActionBarOverlay">true</item>
    516    </style>
    617</resources>
Note: See TracChangeset for help on using the changeset viewer.