-
Notifications
You must be signed in to change notification settings - Fork 1
/
FlightActivity.java
36 lines (29 loc) · 1.02 KB
/
FlightActivity.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.tudaidai.tuantrip;
import com.tudaidai.tuantrip.types.User;
import android.app.TabActivity;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.widget.TabHost;
public class FlightActivity extends TabActivity {
static final boolean DEBUG = TuanTripSettings.DEBUG;
static final String TAG = "HotelActivity";
private User mUser;
private void ensureUi() {
TabHost localTabHost = getTabHost();
localTabHost.addTab(localTabHost
.newTabSpec("ticket")
.setIndicator("航班时刻",
getResources().getDrawable(R.drawable.tab_q_icon_true))
.setContent(new Intent(this, SearchHBSKActivity.class)));
localTabHost.addTab(localTabHost
.newTabSpec("tuanorder")
.setIndicator("航班动态",
getResources().getDrawable(R.drawable.tab_f_icon_true))
.setContent(new Intent(this, SearchHBDTActivity.class)));
}
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
ensureUi();
}
}