[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
AndroidGreece.gr - View topic - Activity - ListActivity
View unanswered posts | View active topics It is currently 20 May 2024, 17:28



Reply to topic  [ 8 posts ] 
 Activity - ListActivity 
Author Message

Joined: 24 Mar 2009, 22:18
Posts: 20
Post Activity - ListActivity
Μπορούμε να έχουμε στο ίδιο Android project μια κλάση extends Activity και μια άλλη κλάση extends ListActivity ? Πώς γίνεται να εμφανίζεται ένα ListView πατώντας ένα Button?


15 Jul 2009, 10:16
Profile
Site Admin
User avatar

Joined: 24 May 2008, 23:50
Posts: 626
Location: Athens
Post Re: Activity - ListActivity

_________________
Chief Software Engineer @ PinApps.com
Κωνσταντίνος Πολυχρόνης
Πρόσθεσε την εφαρμογή σου:


15 Jul 2009, 12:11
Profile WWW

Joined: 24 Mar 2009, 22:18
Posts: 20
Post Re: Activity - ListActivity
Το κατάφερα το παραπάνω.
Τώρα έχω το εξής ερώτημα:
Πώς μπορώ να μετατρέψω ένα InputStream instrem σε InputSource ;
Για παράδειγμα γίνεται το:

InputSource in = new InputSource();
InputStream instrem;
instrem=Resources.getSystem().openRawResource(R.raw.questions);
in=instrem;

ή

πώς γίνεται να μετατρέψω ένα InputSource instrem σε File ;
για παράδειγμα γίνεται το :

File rd;
InputStream instrem;
instrem=Resources.getSystem().openRawResource(R.raw.questions);
rd=instrem;


21 Jul 2009, 08:49
Profile

Joined: 24 Mar 2009, 22:18
Posts: 20
Post Re: Activity - ListActivity
Πώς μπορώ να φτιάξω πέντε διαφορετικά radio buttons σε μια for ?
Για παράδειγμα τροποποιώντας τον παρακάτω κώδικα ώστε να δημιουργηθούν πέντε διαφορετικά radio buttons:
for(int i=1; i<=5; i++)
{
RadioButton rd=new RadioButton(this);
}

το οποίο βέβαια δημιουργεί το ίδιο radio button πέντε φορές.


03 Aug 2009, 10:11
Profile
Site Admin
User avatar

Joined: 24 May 2008, 23:50
Posts: 626
Location: Athens
Post Re: Activity - ListActivity
Αυτό δυστυχώς δεν γίνεται.

Για να χειρίζεσαι 5 διαφορετικά radio buttons, θα πρέπει να έχεις και 5 διαφορετικά instances.
Με την for που χρησιμοποιείς δημιουργείς 5 φορές το rd.

_________________
Chief Software Engineer @ PinApps.com
Κωνσταντίνος Πολυχρόνης
Πρόσθεσε την εφαρμογή σου:


06 Aug 2009, 13:13
Profile WWW

Joined: 12 Oct 2009, 12:53
Posts: 5
Post Re: Activity - ListActivity
Προσπαθώ να δημιουργήσω μια λίστα η οποία μπορεί να έχει υπολίστες. Το πρόβλημα είναι ότι εαν βάλω μια υπολίστα μέσα στην λίστα δεν συμβαίνει τπτ. Δλδ αν δείτε στα settings υπαρχουν λίστες οι στις οποίες κάποια αντικείμενα μπορούν να ανοιξουν λίστα (είναι αυτά που έχουν ένα βέλος που δείχνει προς τα κάτω). Αυτό το αποτέλεσμα προσπαθώ να δημιουργήσω αλλά δεν καταλαβαίνω γιατί δεν λειτουργεί.


14 Oct 2009, 11:48
Profile
Site Admin
User avatar

Joined: 24 May 2008, 23:50
Posts: 626
Location: Athens
Post Re: Activity - ListActivity
δεν πρέπει να υπάρχει κάποιο διαθέσιμο API για να κάνεις κάτι τέτοιο, συνεπώς πρέπει να κάνεις manipulate εσύ την λίστα με κάποια ids, parent ids, και ενα boolean για το visibility...

_________________
Chief Software Engineer @ PinApps.com
Κωνσταντίνος Πολυχρόνης
Πρόσθεσε την εφαρμογή σου:


14 Oct 2009, 13:59
Profile WWW

Joined: 12 Oct 2009, 12:53
Posts: 5
Post Re: Activity - ListActivity
Το ανέφερα μήπως και υπήρχε γιατί δεν βρήκα κάτι σχετικό αλλά έχω δει την υλοποίηση πολλές φορές. Κρίμα γιατί θα με γλύτωνε από πολύ φασαρια.


14 Oct 2009, 14:32
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.