Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > German Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

"Tabulatorreihenfolge"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2012, 01:59 PM
Newbie
 
Join Date: Oct 2011
Posts: 8
Default "Tabulatorreihenfolge"

Hey!

Ich habe hier jetzt einige Zeit gesucht, aber komme nicht weiter.

Im Landscape-Format öffnet sich beim Entern eines Editfeldes die Tastatur und der komplette Rest des Displays ist mit einem Eingabefeld ausgefüllt. Dort findet man auch einen "Weiter"-Button. Allerdings springt der Focus beim Drücken auf "Weiter" wahllos zwischen den Feldern hin und her. Kann man hier irgendwie eine Reihenfolge (Taborder) festlegen?
Reply With Quote
  #2 (permalink)  
Old 01-19-2012, 05:19 PM
Knows the basics
 
Join Date: Nov 2011
Location: Im Paradies
Posts: 83
Default

Damit habe ich mich auch schon rumgeärgert. Ausser beim erstellen im Desginer die Reihenfolge nie zu verändern kenne ich nur eine umständliche Variante

Den Tastendruck abfangen zB mit Activity_KeyPress, dann View suchen und gewünschten Fokus setzen in etwa so:

For i=0 To Activity.NumberOfViews
Dim v As View

v = Activity.GetView(i)
If v.IsInitialized Then
If v.Tag ="Button1" Then
Button2.RequestFocus
Else If v.Tag ="Button2" Then
Button3.RequestFocus
End If
End If
Next

Statt if kann man auch Select nehmen. Voraussetzung ist einfach, das jedes abzufragende Element ein passendes Tag hat. Also View nicht nur benamslen, sondern auch gleich Tag setzten.

Die ganze Fokusserei mit Android ist sehr speziell. Schau mal hier:
View | Android Developers
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
VisualBasic "Inputbox" zu B4A "InputDialog" wandeln Watchkido German Forum 1 09-04-2011 06:52 PM
Catching the "Shift", "right" & "left" keys linum Questions (Windows Mobile) 3 08-21-2009 01:22 PM
calling the device's "Programs" or "settings" screens karmba_a Questions (Windows Mobile) 3 03-15-2009 05:41 PM
"AddEvent" and "buttonUp/buttonDown" Byak@ Questions (Windows Mobile) 12 09-10-2008 03:04 PM
calling the device's "Programs" or "settings" screens HarleyM Questions (Windows Mobile) 0 12-05-2007 02:59 AM


All times are GMT. The time now is 06:49 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0