problem:InternalSelectionScroll.java

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

problem:InternalSelectionScroll.java

Postby xsuo » Wed May 21, 2008 3:09 am

[font=Microsoft Sans Serif]
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public class InternalSelectionScroll extends Activity {
  2.  
  3.     @Override
  4.     protected void onCreate(Bundle icicle) {
  5.         super.onCreate(icicle);
  6.  
  7.         final LinearLayout layout = new LinearLayout(this);
  8.         layout.setOrientation(LinearLayout.HORIZONTAL);
  9.         layout.setLayoutParams(new ViewGroup.LayoutParams(
  10.                 ViewGroup.LayoutParams.FILL_PARENT,
  11.                 ViewGroup.LayoutParams.FILL_PARENT));
  12.  
  13.         LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0,
  14.                 ViewGroup.LayoutParams.FILL_PARENT, 1);
  15.  
  16.         final InternalSelectionView leftColumn = new InternalSelectionView(this, 5, "left column");
  17.         leftColumn.setLayoutParams(params);
  18.         leftColumn.setPadding(10, 10, 10, 10);
  19.         layout.addView(leftColumn);
  20.  
  21.         final InternalSelectionView middleColumn = new InternalSelectionView(this, 5, "middle column");
  22.         middleColumn.setLayoutParams(params);
  23.         middleColumn.setPadding(10, 10, 10, 10);
  24.         layout.addView(middleColumn);
  25.  
  26.         final InternalSelectionView rightColumn = new InternalSelectionView(this, 5, "right column");
  27.         rightColumn.setLayoutParams(params);
  28.         rightColumn.setPadding(10, 10, 10, 10);
  29.         layout.addView(rightColumn);
  30.  
  31.         setContentView(layout);
  32.     }
  33.  
  34.  
  35. }
  36.  
Parsed in 0.035 seconds, using GeSHi 1.0.8.4

problem in Android SDK M5 Release - API Changes Overview :
at InternalSelectionScroll example,InternalSelectionViewclass don't find it ?[/font]
xsuo
Freshman
Freshman
 
Posts: 4
Joined: Wed May 21, 2008 2:58 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests