project_files/Android-build/SDL-android-project/res/layout/notification.xml
author Xeli
Tue, 05 Jul 2011 18:27:18 +0200
branchhedgeroid
changeset 5397 4ae1b082e4ba
permissions -rw-r--r--
Added download functionality and changed some icons
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5397
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
     2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
     3
    android:layout_width="fill_parent"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
     4
    android:layout_height="fill_parent"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
     5
    android:padding="3dp">
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
     6
	<ImageView
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
     7
		android:id="@+id/icon"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
     8
    	android:layout_width="wrap_content" 
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
     9
    	android:layout_height="fill_parent"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    10
    	android:scaleType="centerInside"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    11
    	android:src="@drawable/icon"/>
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    12
    
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    13
    <TextView
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    14
    	android:id="@+id/title"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    15
    	android:layout_width="wrap_content"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    16
    	android:layout_height="wrap_content"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    17
    	android:layout_toRightOf="@id/icon"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    18
    	android:text="@string/notification_title"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    19
    	android:textColor="#000"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    20
    	android:textSize="17dp"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    21
    	android:textStyle="bold"/>
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    22
    			
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    23
	<TextView
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    24
    	android:id="@+id/progressbar_sub"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    25
    	android:layout_width="wrap_content"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    26
    	android:layout_height="wrap_content"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    27
    	android:layout_toRightOf="@id/icon"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    28
    	android:layout_alignParentBottom="true"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    29
    	android:text="@string/notification_title"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    30
    	android:textColor="#000"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    31
    	android:textSize="10dp"/> 	
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    32
	<ProgressBar
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    33
		android:id="@+id/notification_progress"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    34
		android:layout_width="fill_parent"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    35
		android:layout_height="wrap_content"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    36
		android:layout_toRightOf="@id/icon"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    37
		android:layout_below="@id/title"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    38
		android:layout_above="@id/progressbar_sub"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    39
		android:progressDrawable="@android:drawable/progress_horizontal"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    40
		android:indeterminate="false" android:indeterminateOnly="false"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    41
		android:paddingRight="5dp"
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    42
		android:paddingTop="5dp"/>   
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    43
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    44
</RelativeLayout>
4ae1b082e4ba Added download functionality and changed some icons
Xeli
parents:
diff changeset
    45