tablelayout


Getting value from dynamic table in Android


This is my code for creating a table and appending data dynamically:
table = (TableLayout)findViewById(R.id.table);
inflater = getLayoutInflater();
for(int i = 0; i < 5; i++) {
row = (TableRow)inflater.inflate(R.layout.row,table, false);
TextView text = (TextView)row.findViewById(R.id.text1);
text.setText("sss:" + i);
text1 = (EditText)row.findViewById(R.id.text2);
text2 = (TextView)row.findViewById(R.id.text3);
text2.setText("");
text1.addTextChangedListener(new MyWatcher(text2));
table.addView(row);
}
This code is working fine, but my problem occurs when I click the button. I want to get the values from each row which is to be only filled.
NxtBtn.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
}
});
Please help me.

Related Links

AutoLink Doesnot work on Table Layout lolipop
Getting value from dynamic table in Android
set background image in table layout
How to dynamically draw a TableLayout from AsyncTask
Tablelayout and LinearLayout - visible and invisble

Categories

HOME
log4j
ionic-framework
multithreading
vbscript
cookies
minimum-spanning-tree
mfc
google-play
dot
relay
spagobi
leon
c#-2.0
installshield
virtualization
gitpitch
rascal
gz
commonmark
fallback
decimal
try-catch
telephony
graphlab
pc
grails3
orleans
ehcache
mps
extjs5
cultureinfo
format-specifiers
hammerspoon
apache-commons-io
rst2pdf
maxmind
fluentvalidation
strncpy
assistant
compatibility
javascriptcore
catch-all
windows-dev-center
main
dosbox
objectlistview
squib
quadratic-programming
firebase-admin
estimote
acoustics
qcombobox
angular2-meteor
pubmed
return-value
nstextview
drupal-6
forever
pillow
flutterwave
migradoc
instant
libpng
ado.net-entity-data-model
adxstudio-portals
clang-static-analyzer
hover-over
packagist
hexdump
reactive-banana
ruby-2.2
dukescript
twirl
createprocessasuser
notify
umbraco6
asp.net-dynamic-data
client-side-templating
gulp-less
responsive-slides
heisenbug
rtmfp
c18
oam
gridcontrol
sharp-repository
ember-app-kit
pygit2
enterprisedb
anonymous-methods
multipage
eclipse-templates
horizontal-accordion
datareader
gamma
nhibernate.search
eqatec
thread-local-storage
w3wp
commodore
signal-handling

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile