Skip to content

Commit af41eda

Browse files
committed
first commit
0 parents  commit af41eda

25 files changed

+1315
-0
lines changed

AndroidManifest.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.bb.bbdroid" android:versionCode="1" android:versionName="1.0">
4+
<application android:icon="@drawable/icon" android:label="@string/app_name">
5+
<activity android:name=".BBdroid" android:label="@string/app_name">
6+
<intent-filter>
7+
<action android:name="android.intent.action.MAIN" />
8+
<category android:name="android.intent.category.LAUNCHER" />
9+
</intent-filter>
10+
</activity>
11+
12+
<activity android:name=".BBClientUI">
13+
<intent-filter>
14+
<action android:name="android.intent.action.MAIN"></action>
15+
</intent-filter>
16+
</activity>
17+
<activity android:name=".BBClientUIChannelList">
18+
<service android:name=".BBClientService"></service>
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN"></action>
21+
</intent-filter>
22+
</activity>
23+
24+
<service android:name=".BBClientService"></service>
25+
26+
</application>
27+
<uses-sdk android:targetSdkVersion="9" android:minSdkVersion="9" />
28+
29+
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
30+
</manifest>

README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bb android client

res/drawable-hdpi/icon.png

4.05 KB
Loading

res/drawable-ldpi/icon.png

1.68 KB
Loading
3.56 KB
Loading

res/drawable-mdpi/icon.png

2.51 KB
Loading

res/layout/bbchannel.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent" android:layout_height="fill_parent"
4+
android:orientation="vertical">
5+
6+
<ListView android:id="@+id/MessageView"
7+
android:layout_width="fill_parent"
8+
android:layout_height="wrap_content"
9+
android:stackFromBottom="true"
10+
android:transcriptMode="alwaysScroll"
11+
android:layout_weight="1">
12+
</ListView>
13+
14+
15+
16+
<LinearLayout android:id="@+id/LinearLayout01"
17+
android:layout_height="wrap_content" android:layout_width="wrap_content">
18+
<EditText android:text="" android:id="@+id/MessageEditText"
19+
android:layout_width="250sp" android:layout_height="50sp"
20+
android:inputType="text">
21+
</EditText>
22+
<Button android:text="@string/say" android:id="@+id/SayButton"
23+
android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
24+
</LinearLayout>
25+
26+
27+
28+
29+
30+
31+
32+
</LinearLayout>

res/layout/bbchannelinputdialog.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent" android:layout_height="fill_parent"
4+
android:orientation="vertical">
5+
<TextView android:text="@string/channel" android:id="@+id/TextView01"
6+
android:layout_width="wrap_content" android:layout_height="wrap_content">
7+
8+
</TextView>
9+
<EditText android:text="@string/channelname" android:id="@+id/ChannelEditText"
10+
android:layout_width="200sp" android:layout_height="50sp"></EditText>
11+
</LinearLayout>

res/layout/bbchannellist.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent" android:layout_height="fill_parent"
4+
android:orientation="vertical">
5+
<ListView android:id="@+id/ListView02" android:layout_width="wrap_content"
6+
android:layout_height="wrap_content">
7+
</ListView>
8+
</LinearLayout>

res/layout/bbdroid.xml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:orientation="vertical"
5+
android:layout_width="fill_parent"
6+
android:layout_height="fill_parent">
7+
8+
<TableLayout android:id="@+id/TableLayout01"
9+
android:layout_width="fill_parent"
10+
android:layout_height="wrap_content"
11+
android:shrinkColumns="*">
12+
13+
<TableRow android:layout_width="wrap_content"
14+
android:layout_height="wrap_content" android:id="@+id/TableRow01">
15+
<TextView android:id="@+id/TextView01"
16+
android:layout_height="wrap_content" android:text="@string/nickname"
17+
android:layout_width="wrap_content">
18+
</TextView>
19+
<EditText android:id="@+id/EditText01" android:text="@+id/EditText01"
20+
android:layout_width="200sp" android:layout_height="50sp">
21+
</EditText>
22+
</TableRow>
23+
24+
<TableRow android:layout_height="wrap_content"
25+
android:layout_width="wrap_content" android:id="@+id/TableRow02">
26+
<TextView android:id="@+id/TextView02"
27+
android:layout_height="wrap_content" android:text="@string/password"
28+
android:layout_width="wrap_content"></TextView>
29+
<EditText android:id="@+id/EditText02" android:text="@+id/EditText02"
30+
android:password="true" android:layout_width="200sp"
31+
android:layout_height="50sp">
32+
</EditText>
33+
</TableRow>
34+
35+
<TableRow android:layout_height="wrap_content"
36+
android:layout_width="wrap_content" android:id="@+id/TableRow03">
37+
<TextView android:id="@+id/TextView03"
38+
android:layout_height="wrap_content" android:text="@string/host"
39+
android:layout_width="wrap_content"></TextView>
40+
<EditText android:id="@+id/EditText03" android:text="@+id/EditText03"
41+
android:layout_width="200sp" android:layout_height="50sp"></EditText>
42+
</TableRow>
43+
44+
<TableRow android:layout_height="wrap_content"
45+
android:layout_width="wrap_content"
46+
android:id="@+id/TableRow04">
47+
<TextView android:id="@+id/TextView04"
48+
android:layout_height="wrap_content" android:text="@string/port"
49+
android:layout_width="wrap_content"></TextView>
50+
<EditText android:id="@+id/EditText04" android:text="@+id/EditText04"
51+
android:layout_width="200sp" android:layout_height="50sp"></EditText>
52+
53+
</TableRow>
54+
55+
</TableLayout>
56+
57+
<Button android:layout_width="100dip" android:id="@+id/Button01"
58+
android:text="@string/connect" android:layout_height="50dip"
59+
android:layout_gravity="center|top"
60+
></Button>
61+
62+
</LinearLayout>

0 commit comments

Comments
 (0)