is it possible to display a multi column list ?

by jerryfan2000 » Tue, 28 Jul 2009 22:37:26 GMT


Sponsored Links
 Hi,
I am looking for a way to create a Microsoft data grid style list in
android. But I am wondering is there any available built in component
capable of doing this job such as listview? Thanks
--~--~---------~--~----~------------~-------~--~----~



is it possible to display a multi column list ?

by Jack Ha » Wed, 29 Jul 2009 04:29:24 GMT


 There's no built-in data grid component.

--
Jack Ha
Open Source Development Center
obilestick together

The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


is it possible to display a multi column list ?

by jerryfan2000 » Wed, 29 Jul 2009 08:56:24 GMT


 is there any workaround to simulate similar function?




--~--~---------~--~----~------------~-------~--~----~



is it possible to display a multi column list ?

by Mark Murphy » Wed, 29 Jul 2009 09:26:59 GMT


 


Carefully design the rows that go into the ListView so they all line up
properly.

Or use GridView.

Or use TableLayout in a ScrollView.

Or create your own multi-column list widget by subclassing AdapterView
and rolling your own code.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Beta Tester Infrastructure Project

Over the course of the last year or so I created a beta tester
infrastructure to help me test my new paid apps in the Android
market.

The infrastructure allows me to provision a list of beta users for an
app and provides beta test codes for them to use.  I add a small jar
to my project and a single line of code to launch the beta login
activity.

I'm trying to decide whether it makes sense for me to expand the
infrastructure so that other developers can use it too.  If you're
interested click through to a Google form I set up and leave your
email address.

P.S. I'm not a spammer, but feel free to leave a throwaway address if
you're not convinced.

http://bit.ly/hwXnNF

-- 

2. Can't solve this problem.

FILE MainClass.java

package xxx.yyy;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class MainClass extends Activity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.items);

// This
                Test1();
//  or that
        Class2 c2 = new Class2();
        C2.Test2();
}

public void Test1() {
setContentView(R.layout.layoutA);
      TextView tv = (TextView)findViewById(R.id.DisplayLine);
tv.setText("Start");
}
}
-----------------------------------------------------------------------
FILE Class2.java

package xxx.yyy;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;


public class Class2  extends Activity {
        TextView tv;

//      @Override
public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
      }

 public void Test2 () {
      setContentView(R.layout.layoutA);
      TextView tv = (TextView)findViewById(R.id.DisplayLine);
        tv.setText("Start");
        }
}
---------------------------------------------------------------
FILE layoutA.xml
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout
android:id="@+id/widget0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
<TextView
android:id="@+id/DisplayLine"
android:layout_width="350px"
android:layout_height="40px"
android:background="#ff99ff99"
android:textStyle="bold"
android:textColor="#ff000000"
android:layout_x="10px"
android:layout_y="10px"
</TextView>
</AbsoluteLayout>

If  Test1 is allowed to run, it is OK.
If  Test2 is allowed to run, get FORCE CLOSE.

-- 

3. Pre Order T-SHIRT ANDROID - Cyanogen Mod 7

4. How do i upload the file from android mobile to public server

5. creating a driver application

6. Email To field not displaying

7. how to use Cache-Control with http get request?