Skip to content

Commit a4232f0

Browse files
author
Devendra
committed
changed icon, fixed unsubscribe/unsubscribePresence swap, added pubnub logo in app
1 parent d2f87fc commit a4232f0

27 files changed

Lines changed: 126 additions & 55 deletions

File tree

‎android/3.4/examples/PubnubExample/AndroidManifest.xml‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,17 @@
44
android:versionName="1.0">
55
<uses-sdk
66
android:minSdkVersion="8"
7-
android:targetSdkVersion="16"/>
8-
9-
10-
<application
11-
android:allowBackup="true"
12-
android:icon="@drawable/ic_launcher"
13-
android:label="@string/app_name"
14-
android:theme="@style/AppTheme">
7+
android:targetSdkVersion="16"/><application android:allowBackup="true" android:icon="@drawable/pubnub_large" android:label="@string/app_name" android:theme="@style/AppTheme">
158
<activity android:name="com.pubnub.examples.MainActivity" android:label="@string/app_name">
169
<intent-filter>
17-
<action android:name="android.intent.action.MAIN"/>
18-
<category android:name="android.intent.category.LAUNCHER"/>
10+
<action android:name="android.intent.action.MAIN" />
11+
<category android:name="android.intent.category.LAUNCHER" />
1912
</intent-filter>
2013
</activity>
2114
</application>
2215

2316
<uses-permission android:name="android.permission.INTERNET"/>
2417
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
25-
<uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
2618
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
2719

2820
</manifest>
1.8 KB
Loading
1.69 KB
Loading
1.69 KB
Loading
1.14 KB
Loading
1.69 KB
Loading
2.63 KB
Loading
1.69 KB
Loading
4.47 KB
Loading

‎android/3.4/examples/PubnubExample/res/layout/usage.xml‎

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,38 @@
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
5-
android:gravity="center_vertical"
65
android:layout_marginLeft="@dimen/marginleft"
6+
android:gravity="center_horizontal"
77
android:orientation="vertical" >
88

9+
<ImageView
10+
android:id="@+id/imageView1"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content"
13+
android:padding="@dimen/titileimagepadding"
14+
android:src="@drawable/pubnub_large" android:contentDescription="@string/pubnub"/>
15+
916
<LinearLayout
1017
android:layout_width="match_parent"
1118
android:layout_height="wrap_content"
1219
android:orientation="vertical" >
1320

1421
<TextView
1522
android:id="@+id/welcome"
16-
android:layout_width="wrap_content"
23+
android:layout_width="match_parent"
1724
android:layout_height="wrap_content"
25+
android:gravity="center_vertical|center_horizontal"
1826
android:text="@string/welcome"
1927
android:textSize="@dimen/welcome_size" />
2028

2129
<TextView
2230
android:id="@+id/hint"
23-
android:layout_width="wrap_content"
31+
android:layout_width="match_parent"
2432
android:layout_height="wrap_content"
25-
android:text="@string/hint" />
33+
android:gravity="center_horizontal"
34+
android:text="@string/hint"
35+
android:textSize="@dimen/hint_size" />
36+
2637
</LinearLayout>
2738

2839
<LinearLayout
@@ -35,91 +46,107 @@
3546
android:id="@+id/option1"
3647
android:layout_width="wrap_content"
3748
android:layout_height="wrap_content"
38-
android:text="@string/option1" />
49+
android:text="@string/option1"
50+
android:textSize="@dimen/options_size" />
3951

4052
<TextView
4153
android:id="@+id/option2"
4254
android:layout_width="wrap_content"
4355
android:layout_height="wrap_content"
44-
android:text="@string/option2" />
56+
android:text="@string/option2"
57+
android:textSize="@dimen/options_size" />
4558

4659
<TextView
4760
android:id="@+id/option3"
4861
android:layout_width="wrap_content"
4962
android:layout_height="wrap_content"
50-
android:text="@string/option3" />
63+
android:text="@string/option3"
64+
android:textSize="@dimen/options_size"/>
5165

5266
<TextView
5367
android:id="@+id/option4"
5468
android:layout_width="wrap_content"
5569
android:layout_height="wrap_content"
56-
android:text="@string/option4" />
70+
android:text="@string/option4"
71+
android:textSize="@dimen/options_size"/>
5772

5873
<TextView
5974
android:id="@+id/option5"
6075
android:layout_width="wrap_content"
6176
android:layout_height="wrap_content"
62-
android:text="@string/option5" />
77+
android:text="@string/option5"
78+
android:textSize="@dimen/options_size"/>
6379

6480
<TextView
6581
android:id="@+id/option6"
6682
android:layout_width="wrap_content"
6783
android:layout_height="wrap_content"
68-
android:text="@string/option6" />
84+
android:text="@string/option6"
85+
android:textSize="@dimen/options_size" />
6986

7087
<TextView
7188
android:id="@+id/option7"
7289
android:layout_width="wrap_content"
7390
android:layout_height="wrap_content"
74-
android:text="@string/option7" />
91+
android:text="@string/option7"
92+
android:textSize="@dimen/options_size"/>
7593

7694
<TextView
7795
android:id="@+id/option8"
7896
android:layout_width="wrap_content"
7997
android:layout_height="wrap_content"
80-
android:text="@string/option8" />
98+
android:text="@string/option8"
99+
android:textSize="@dimen/options_size"/>
81100

82101
<TextView
83102
android:id="@+id/option9"
84103
android:layout_width="wrap_content"
85104
android:layout_height="wrap_content"
86-
android:text="@string/option9" />
105+
android:text="@string/option9"
106+
android:textSize="@dimen/options_size"
107+
/>
87108

88109
<TextView
89110
android:id="@+id/option10"
90111
android:layout_width="wrap_content"
91112
android:layout_height="wrap_content"
92-
android:text="@string/option10" />
113+
android:text="@string/option10"
114+
android:textSize="@dimen/options_size"/>
93115

94116
<TextView
95117
android:id="@+id/option11"
96118
android:layout_width="wrap_content"
97119
android:layout_height="wrap_content"
98-
android:text="@string/option11" />
120+
android:text="@string/option11"
121+
android:textSize="@dimen/options_size"/>
99122

100123
<TextView
101124
android:id="@+id/option12"
102125
android:layout_width="wrap_content"
103126
android:layout_height="wrap_content"
104-
android:text="@string/option12" />
127+
android:text="@string/option12"
128+
android:textSize="@dimen/options_size"/>
105129

106130
<TextView
107131
android:id="@+id/option13"
108132
android:layout_width="wrap_content"
109133
android:layout_height="wrap_content"
110-
android:text="@string/option13" />
134+
android:text="@string/option13"
135+
android:textSize="@dimen/options_size"/>
111136

112137
<TextView
113138
android:id="@+id/option14"
114139
android:layout_width="wrap_content"
115140
android:layout_height="wrap_content"
116-
android:text="@string/option14" />
141+
android:text="@string/option14"
142+
android:textSize="@dimen/options_size"/>
117143

118144
<TextView
119145
android:id="@+id/option15"
120146
android:layout_width="wrap_content"
121147
android:layout_height="wrap_content"
122-
android:text="@string/option15" />
148+
android:text="@string/option15"
149+
android:textSize="@dimen/options_size"/>
123150
</LinearLayout>
124151

125152
</LinearLayout>

0 commit comments

Comments
 (0)