Changeset 7:c3e87daa7c1b


Ignore:
Timestamp:
07/06/10 22:39:27 (14 years ago)
Author:
lukacu
Branch:
default
Convert:
svn:f819dc9c-ca78-df11-852c-0018fe7759ca/trunk@8
Message:

Android empty comic list message.

Location:
android
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • android/res/layout/comiclist.xml

    r2 r7  
    11<?xml version="1.0" encoding="utf-8"?> 
    2 <ListView 
    3   xmlns:android="http://schemas.android.com/apk/res/android" 
    4   android:layout_width="wrap_content" 
    5   android:layout_height="wrap_content"> 
    6 </ListView> 
     2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     3         android:orientation="vertical" 
     4         android:layout_width="fill_parent" 
     5         android:layout_height="fill_parent" 
     6         android:paddingLeft="8dp" 
     7         android:paddingRight="8dp"> 
     8 
     9     <ListView android:id="@android:id/android:list" 
     10               android:layout_width="fill_parent" 
     11               android:layout_height="fill_parent" 
     12               android:layout_weight="1" 
     13               android:drawSelectorOnTop="false"/> 
     14 
     15    <LinearLayout android:id="@android:id/android:empty" 
     16               android:layout_width="fill_parent" 
     17               android:layout_height="fill_parent" android:orientation="vertical" 
     18    android:layout_gravity="center"> 
     19                
     20    <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" 
     21        android:src="@drawable/download" android:layout_gravity="center" android:padding="5px"></ImageView>            
     22                
     23     <TextView android:layout_width="fill_parent" 
     24               android:layout_height="fill_parent" 
     25               android:text="@string/list.empty" android:padding="10px" android:linksClickable="true"/> 
     26                
     27   </LinearLayout> 
     28 </LinearLayout> 
  • android/res/values/strings.xml

    r6 r7  
    4040<string name="list.browse_short">Browse</string> 
    4141 
     42<string name="list.empty"><b>No comics installed.</b> <br />You can download comics from the <a href="http://webstrips.tnode.com">WebStrips homepage</a>.</string> 
     43 
    4244<string name="comic.removed">Comic %1$s removed.</string> 
    4345<string name="comic.updated">Comic %1$s updated.</string> 
  • android/src/org/webstrips/android/ComicListActivity.java

    r6 r7  
    171171    protected void onCreate(Bundle savedInstanceState) { 
    172172        super.onCreate(savedInstanceState); 
    173  
     173        setContentView(R.layout.comiclist); 
    174174    } 
    175175 
     
    185185        bindService(new Intent("org.webstrips.MANAGER", null, this, 
    186186                WebStripsService.class), connection, 0); 
     187         
    187188    } 
    188189 
Note: See TracChangeset for help on using the changeset viewer.