Commits

Anonymous committed adc69cc

add new layouts

  • Participants
  • Parent commits 12401be

Comments (0)

Files changed (7)

android/placeUvote/res/layout/about.xml

+<?xml version="1.0" encoding="utf-8"?>
+<ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android">
+   <LinearLayout 
+		android:layout_width="fill_parent"
+		android:layout_height="wrap_content"
+		android:orientation="vertical">
+   <TextView android:text="@string/license_intro" android:layout_width="wrap_content" android:layout_height="wrap_content" />
+   <TextView android:text="@string/license" android:layout_width="wrap_content" android:layout_height="wrap_content" />
+   </LinearLayout>
+</ScrollView>

android/placeUvote/res/layout/entries.xml

+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+	android:layout_height="fill_parent"
+	android:orientation="vertical"
+	android:id="@+id/main_layout">
+    	<ListView android:id="@android:id/list" android:layout_width="fill_parent"
+    		android:layout_height="wrap_content"
+    		android:layout_gravity="fill"
+    		android:layout_weight="1"
+    		android:drawSelectorOnTop="false" />
+		<TextView 
+			android:id="@id/android:empty"
+			android:layout_width="fill_parent"
+			android:layout_height="wrap_content"
+			android:text="@string/noentries"
+			android:gravity="center" />
+</FrameLayout>

android/placeUvote/res/layout/entry.xml

+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" >
+  <LinearLayout
+    android:paddingLeft="4pt" 
+    android:layout_height="wrap_content"
+    android:layout_width="fill_parent"
+    android:layout_alignParentTop="true">
+    <TextView 
+      android:paddingTop="2pt"
+      android:layout_height="wrap_content" android:id="@+id/entry_date" android:layout_width="wrap_content" android:layout_gravity="fill" android:layout_weight="1" />
+ 	<ImageView
+  android:layout_alignParentRight="true"
+  android:layout_width="wrap_content" 
+  android:layout_height="wrap_content" 
+  android:id="@android:id/icon"/>
+  </LinearLayout>
+  <LinearLayout 
+		android:layout_width="fill_parent"
+		android:layout_height="wrap_content"
+		android:orientation="vertical"
+		android:id="@+id/linear_wrapper"
+		android:background="@android:drawable/editbox_background"
+		android:padding="4dip"
+		android:layout_gravity="fill"
+		android:layout_weight="1">
+		<WebView android:layout_height="wrap_content" android:id="@+id/entry_abstract" android:layout_width="wrap_content" />
+  </LinearLayout>
+  <LinearLayout
+  	android:layout_width="fill_parent"
+		android:layout_height="wrap_content"
+		android:orientation="horizontal">
+  	<Button android:layout_height="wrap_content" android:text="&lt;-" android:id="@+id/prev_button" android:layout_width="70dp"/>
+  	<Button android:layout_height="wrap_content" android:text="@string/goto_url" android:id="@+id/url_button" android:layout_width="fill_parent"
+  	android:layout_gravity="fill"
+		android:layout_weight="1"/>
+  	<Button android:layout_height="wrap_content" android:text="-&gt;" android:id="@+id/next_button" android:layout_width="70dp"
+		/>
+  </LinearLayout>
+  
+</LinearLayout>

android/placeUvote/res/layout/homescreenwidget.xml

+<RelativeLayout 
+	android:background="@drawable/widget_frame" 
+	android:orientation="vertical" 
+	android:layout_width="fill_parent" 
+	android:layout_height="158sp" 
+	xmlns:android="http://schemas.android.com/apk/res/android"
+	android:paddingLeft="14dp"
+	android:gravity="center"
+	android:paddingBottom="5dp"
+>
+<RelativeLayout
+	android:gravity="left|center_vertical"
+	android:layout_width="fill_parent"
+	android:layout_height="fill_parent"
+	android:orientation="vertical"
+	android:paddingRight="13dp">
+
+<ImageView android:layout_width="16dip" android:layout_height="16dip" android:id="@+id/news_icon_1"/>
+<TextView android:layout_toRightOf="@id/news_icon_1" android:paddingRight="10dp" android:textColor="@xml/widgettext" android:singleLine="true" android:text="" android:id="@+id/news_1" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
+<ImageView android:layout_width="16dip" android:layout_height="16dip" android:id="@+id/news_icon_2" android:layout_below="@id/news_1"/>
+<TextView android:layout_toRightOf="@id/news_icon_2" android:layout_below="@id/news_1" android:textColor="@xml/widgettext" android:singleLine="true" android:text="" android:id="@+id/news_2" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
+<ImageView android:layout_width="16dip" android:layout_below="@id/news_2" android:layout_height="16dip" android:id="@+id/news_icon_3"/>
+<TextView android:layout_toRightOf="@id/news_icon_3" android:layout_below="@id/news_2" android:textColor="@xml/widgettext" android:singleLine="true" android:text="" android:id="@+id/news_3" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
+<ImageView android:layout_below="@id/news_3" android:layout_width="16dip" android:layout_height="16dip" android:id="@+id/news_icon_4"/>
+<TextView android:layout_toRightOf="@id/news_icon_4" android:layout_below="@id/news_3" android:textColor="@xml/widgettext" android:singleLine="true" android:text="" android:id="@+id/news_4" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
+<ImageView android:layout_below="@id/news_4" android:layout_width="16dip" android:layout_height="16dip" android:id="@+id/news_icon_5"/>
+<TextView android:layout_toRightOf="@id/news_icon_5" android:layout_below="@id/news_4" android:textColor="@xml/widgettext" android:singleLine="true" android:text="" android:id="@+id/news_5" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
+<ImageView android:layout_below="@id/news_5" android:layout_width="16dip" android:layout_height="16dip" android:id="@+id/news_icon_6"/>
+<TextView android:layout_toRightOf="@id/news_icon_6" android:layout_below="@id/news_5" android:textColor="@xml/widgettext" android:singleLine="true" android:text="" android:id="@+id/news_6" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
+<ImageView android:layout_below="@id/news_6" android:layout_width="16dip" android:layout_height="16dip" android:id="@+id/news_icon_7"/>
+<TextView android:layout_toRightOf="@id/news_icon_7" android:layout_below="@id/news_6" android:textColor="@xml/widgettext" android:singleLine="true" android:text="" android:id="@+id/news_7" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
+</RelativeLayout>
+<ImageView android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:src="@xml/widgeticon" android:id="@+id/feed_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
+</RelativeLayout>

android/placeUvote/res/layout/listitem.xml

+<TwoLineListItem
+  xmlns:android="http://schemas.android.com/apk/res/android"
+  android:paddingTop="5dip"
+  android:paddingBottom="7dip"
+  android:layout_width="fill_parent"
+  android:layout_height="wrap_content"
+  android:mode="twoLine">
+<TextView android:gravity="top" android:layout_marginLeft="6dip" android:textAppearance="?android:attr/textAppearanceMedium" android:id="@android:id/text1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="2dip"/>
+<TextView android:singleLine="true" android:layout_below="@android:id/text1" android:textAppearance="?android:attr/textAppearanceSmall" android:layout_marginLeft="6dip" android:layout_marginRight="19dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@android:id/text2"/>
+<ImageView
+  android:layout_alignBottom="@android:id/text2"
+  android:layout_alignParentRight="true"
+  android:layout_width="wrap_content" 
+  android:layout_height="wrap_content" 
+  android:id="@android:id/icon"/>
+</TwoLineListItem>

android/placeUvote/res/layout/preferences.xml

+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+<PreferenceCategory android:title="@string/settings_category_refresh">
+<CheckBoxPreference
+android:title="@string/settings_refreshenabled"
+android:defaultValue="false"
+android:summary="@string/settings_refreshenabled_description"
+android:key="refresh.enabled" />
+<ListPreference
+android:name="@string/settings_refreshinterval"
+android:summary="@string/settings_refreshinterval_description"
+android:title="@string/settings_refreshinterval"
+android:key="refresh.interval" 
+android:numeric="integer"
+android:dependency="refresh.enabled"
+android:defaultValue="1800000"
+android:entries="@array/settings_intervals"
+android:entryValues="@array/settings_intervalvalues" />
+<CheckBoxPreference
+android:title="@string/settings_refreshonopen"
+android:defaultValue="false"
+android:summary="@string/settings_refreshonopen_description"
+android:key="refreshonopen.enabled" />
+</PreferenceCategory>
+
+<PreferenceCategory android:title="@string/settings_category_notofications">
+<CheckBoxPreference
+android:title="@string/settings_notificationsenabled"
+android:defaultValue="false"
+android:summary="@string/settings_notificationsenabled_description"
+android:key="notifications.enabled" />
+<RingtonePreference
+android:ringtoneType="notification"
+android:summary="@string/settings_notificationsringtone_description"
+android:title="@string/settings_notificationsringtone"
+android:key="notifications.ringtone"
+android:dependency="notifications.enabled" />
+<CheckBoxPreference
+android:summary="@string/settings_notificationsvibrate_description"
+android:title="@string/settings_notificationsvibrate"
+android:key="notifications.vibrate"
+android:dependency="notifications.enabled" />
+</PreferenceCategory>
+
+<PreferenceCategory android:title="@string/settings_category_contentpresentation">
+<CheckBoxPreference
+android:title="@string/settings_showtabs"
+android:defaultValue="false"
+android:summary="@string/settings_showtabs_description"
+android:key="tabs.show" />
+<CheckBoxPreference
+android:title="@string/settings_prioritize"
+android:defaultValue="false"
+android:summary="@string/settings_prioritize_description"
+android:key="contentpresentation.prioritize" />
+<ListPreference
+android:name="@string/settings_keeptime"
+android:summary="@string/settings_keeptime_description"
+android:title="@string/settings_keeptime"
+android:key="keeptime" 
+android:numeric="integer"
+android:defaultValue="2"
+android:entries="@array/settings_keeptimes"
+android:entryValues="@array/settings_keeptimevalues" />
+</PreferenceCategory>
+
+
+</PreferenceScreen>

android/placeUvote/res/layout/tabs.xml

+<TabHost
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@android:id/tabhost"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent">
+    <LinearLayout
+        android:orientation="vertical"
+        android:layout_width="fill_parent"
+        android:layout_height="fill_parent">
+        <FrameLayout
+            android:id="@android:id/tabcontent"
+            android:layout_width="fill_parent"
+            android:layout_height="wrap_content"
+            android:layout_gravity="fill"
+    		android:layout_weight="1">
+        </FrameLayout>
+        <TabWidget
+            android:id="@android:id/tabs"
+            android:layout_width="fill_parent"
+            android:layout_height="wrap_content"
+            android:visibility="gone"/>
+    </LinearLayout>
+</TabHost>