Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Tabs Problem on Droid

Tabs Problem on Droid

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Tabs Problem on Droid

Postby samspade79 » Sat Dec 19, 2009 2:49 am

Hi guys - first post.

I have an application that works fine on the G1, and the mytouch but does not display the tabs correctly on the Droid. It works fine on my 2.0 emulator.

Is this a known issue?
If you want to take a look my app is called Septa Mobile on the marketplace (free).

I am creating the tabs programatically:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.  
  3.  
  4.         final TabHost tabs = new TabHost(this);
  5.  
  6.        
  7.  
  8.                 TabWidget tabWidget = new TabWidget(this);
  9.  
  10.  
  11.  
  12.                 tabWidget.setId(android.R.id.tabs);
  13.  
  14.                 tabs.addView(tabWidget, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
  15.  
  16.  
  17.  
  18.        
  19.  
  20.                 FrameLayout frameLayout = new FrameLayout(this);
  21.  
  22.                 frameLayout.setId(android.R.id.tabcontent);
  23.  
  24.                 frameLayout.setPadding(0, 65, 0, 0);
  25.  
  26.                 tabs.addView(frameLayout, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
  27.  
  28.  
  29.  
  30.                 tabs.setup();
  31.  
  32.  
  33.  
  34.                 TabSpec routeTab = tabs.newTabSpec("tab_rail");
  35.  
  36.                 routeTab.setIndicator("Rail");
  37.  
  38.                 routeTab.setContent(new TabHost.TabContentFactory() {
  39.  
  40.  
  41.  
  42.                         public View createTabContent(String tag) {
  43.  
  44.  
  45.  
  46.                                 routes = RouteBuilder.getRoutes();
  47.  
  48.  
  49.  
  50.                                 ListView routeListView = new ListView(SeptaMobile.this);
  51.  
  52.                                 routeListView.setBackgroundColor(Color.WHITE);
  53.  
  54.                                
  55.  
  56.                                 routeListView.setAdapter(new RouteListAdaptor(routes));
  57.  
  58.                                 routeListView.setOnItemClickListener(new OnItemClickListener() {
  59.  
  60.  
  61.  
  62.                                         public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
  63.  
  64.                                                 Intent intent = new Intent(SeptaMobile.this, TripsActivity.class);
  65.  
  66.                                                 Route route = routes.get(arg2);
  67.  
  68.                                                 intent.putExtra("route", route);
  69.  
  70.                                                 startActivity(intent);
  71.  
  72.                                         }
  73.  
  74.                                 });
  75.  
  76.  
  77.  
  78.                                 return routeListView;
  79.  
  80.                         }
  81.  
  82.                 });
  83.  
  84.                 tabs.addTab(routeTab);
  85.  
  86.  
  87.  
  88.  
Parsed in 0.016 seconds, using GeSHi 1.0.8.4
samspade79
Freshman
Freshman
 
Posts: 2
Joined: Sat Dec 19, 2009 2:46 am
Location: Philadelphia, PA

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests