Merge pull request #169 from LadyViktoria/wip-deprecation-danarStats
Deprecation DanaR Stats
This commit is contained in:
commit
c5081c378b
|
@ -186,7 +186,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
TableRow tr_head = new TableRow(this);
|
TableRow tr_head = new TableRow(this);
|
||||||
tr_head.setBackgroundColor(Color.DKGRAY);
|
tr_head.setBackgroundColor(Color.DKGRAY);
|
||||||
tr_head.setLayoutParams(new TableLayout.LayoutParams(
|
tr_head.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
TextView label_date = new TextView(this);
|
TextView label_date = new TextView(this);
|
||||||
|
@ -216,7 +216,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add stats headers to tables
|
// add stats headers to tables
|
||||||
tl.addView(tr_head, new TableLayout.LayoutParams(
|
tl.addView(tr_head, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// cumulative table
|
// cumulative table
|
||||||
|
@ -224,7 +224,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
TableRow ctr_head = new TableRow(this);
|
TableRow ctr_head = new TableRow(this);
|
||||||
ctr_head.setBackgroundColor(Color.DKGRAY);
|
ctr_head.setBackgroundColor(Color.DKGRAY);
|
||||||
ctr_head.setLayoutParams(new TableLayout.LayoutParams(
|
ctr_head.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
TextView label_cum_amount_days = new TextView(this);
|
TextView label_cum_amount_days = new TextView(this);
|
||||||
|
@ -244,7 +244,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add cummulative headers to tables
|
// add cummulative headers to tables
|
||||||
ctl.addView(ctr_head, new TableLayout.LayoutParams(
|
ctl.addView(ctr_head, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// expontial table
|
// expontial table
|
||||||
|
@ -252,7 +252,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
TableRow etr_head = new TableRow(this);
|
TableRow etr_head = new TableRow(this);
|
||||||
etr_head.setBackgroundColor(Color.DKGRAY);
|
etr_head.setBackgroundColor(Color.DKGRAY);
|
||||||
etr_head.setLayoutParams(new TableLayout.LayoutParams(
|
etr_head.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
TextView label_exp_weight = new TextView(this);
|
TextView label_exp_weight = new TextView(this);
|
||||||
|
@ -272,7 +272,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add expontial headers to tables
|
// add expontial headers to tables
|
||||||
etl.addView(etr_head, new TableLayout.LayoutParams(
|
etl.addView(etr_head, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
reloadButton.setOnClickListener(new View.OnClickListener() {
|
reloadButton.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@ -387,7 +387,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
if(i%2!=0) tr.setBackgroundColor(Color.DKGRAY);
|
if(i%2!=0) tr.setBackgroundColor(Color.DKGRAY);
|
||||||
tr.setId(100+i);
|
tr.setId(100+i);
|
||||||
tr.setLayoutParams(new TableLayout.LayoutParams(
|
tr.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// Here create the TextView dynamically
|
// Here create the TextView dynamically
|
||||||
|
@ -423,7 +423,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add stats rows to tables
|
// add stats rows to tables
|
||||||
tl.addView(tr, new TableLayout.LayoutParams(
|
tl.addView(tr, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
sum = sum + tdd;
|
sum = sum + tdd;
|
||||||
|
@ -434,7 +434,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
if(i%2==0) ctr.setBackgroundColor(Color.DKGRAY);
|
if(i%2==0) ctr.setBackgroundColor(Color.DKGRAY);
|
||||||
ctr.setId(700+i);
|
ctr.setId(700+i);
|
||||||
ctr.setLayoutParams(new TableLayout.LayoutParams(
|
ctr.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// Here create the TextView dynamically
|
// Here create the TextView dynamically
|
||||||
|
@ -458,7 +458,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add cummulative rows to tables
|
// add cummulative rows to tables
|
||||||
ctl.addView(ctr, new TableLayout.LayoutParams(
|
ctl.addView(ctr, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -494,7 +494,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
if(i%2!=0) etr.setBackgroundColor(Color.DKGRAY);
|
if(i%2!=0) etr.setBackgroundColor(Color.DKGRAY);
|
||||||
etr.setId(1100+i);
|
etr.setId(1100+i);
|
||||||
etr.setLayoutParams(new TableLayout.LayoutParams(
|
etr.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// Here create the TextView dynamically
|
// Here create the TextView dynamically
|
||||||
|
@ -522,7 +522,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add exponentail rows to tables
|
// add exponentail rows to tables
|
||||||
etl.addView(etr, new TableLayout.LayoutParams(
|
etl.addView(etr, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -186,7 +186,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
TableRow tr_head = new TableRow(this);
|
TableRow tr_head = new TableRow(this);
|
||||||
tr_head.setBackgroundColor(Color.DKGRAY);
|
tr_head.setBackgroundColor(Color.DKGRAY);
|
||||||
tr_head.setLayoutParams(new TableLayout.LayoutParams(
|
tr_head.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
TextView label_date = new TextView(this);
|
TextView label_date = new TextView(this);
|
||||||
|
@ -216,7 +216,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add stats headers to tables
|
// add stats headers to tables
|
||||||
tl.addView(tr_head, new TableLayout.LayoutParams(
|
tl.addView(tr_head, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// cumulative table
|
// cumulative table
|
||||||
|
@ -224,7 +224,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
TableRow ctr_head = new TableRow(this);
|
TableRow ctr_head = new TableRow(this);
|
||||||
ctr_head.setBackgroundColor(Color.DKGRAY);
|
ctr_head.setBackgroundColor(Color.DKGRAY);
|
||||||
ctr_head.setLayoutParams(new TableLayout.LayoutParams(
|
ctr_head.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
TextView label_cum_amount_days = new TextView(this);
|
TextView label_cum_amount_days = new TextView(this);
|
||||||
|
@ -244,7 +244,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add cummulative headers to tables
|
// add cummulative headers to tables
|
||||||
ctl.addView(ctr_head, new TableLayout.LayoutParams(
|
ctl.addView(ctr_head, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// expontial table
|
// expontial table
|
||||||
|
@ -252,7 +252,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
TableRow etr_head = new TableRow(this);
|
TableRow etr_head = new TableRow(this);
|
||||||
etr_head.setBackgroundColor(Color.DKGRAY);
|
etr_head.setBackgroundColor(Color.DKGRAY);
|
||||||
etr_head.setLayoutParams(new TableLayout.LayoutParams(
|
etr_head.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
TextView label_exp_weight = new TextView(this);
|
TextView label_exp_weight = new TextView(this);
|
||||||
|
@ -272,7 +272,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add expontial headers to tables
|
// add expontial headers to tables
|
||||||
etl.addView(etr_head, new TableLayout.LayoutParams(
|
etl.addView(etr_head, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
reloadButton.setOnClickListener(new View.OnClickListener() {
|
reloadButton.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@ -387,7 +387,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
if(i%2!=0) tr.setBackgroundColor(Color.DKGRAY);
|
if(i%2!=0) tr.setBackgroundColor(Color.DKGRAY);
|
||||||
tr.setId(100+i);
|
tr.setId(100+i);
|
||||||
tr.setLayoutParams(new TableLayout.LayoutParams(
|
tr.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// Here create the TextView dynamically
|
// Here create the TextView dynamically
|
||||||
|
@ -423,7 +423,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add stats rows to tables
|
// add stats rows to tables
|
||||||
tl.addView(tr, new TableLayout.LayoutParams(
|
tl.addView(tr, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
sum = sum + tdd;
|
sum = sum + tdd;
|
||||||
|
@ -434,7 +434,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
if(i%2==0) ctr.setBackgroundColor(Color.DKGRAY);
|
if(i%2==0) ctr.setBackgroundColor(Color.DKGRAY);
|
||||||
ctr.setId(700+i);
|
ctr.setId(700+i);
|
||||||
ctr.setLayoutParams(new TableLayout.LayoutParams(
|
ctr.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// Here create the TextView dynamically
|
// Here create the TextView dynamically
|
||||||
|
@ -458,7 +458,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add cummulative rows to tables
|
// add cummulative rows to tables
|
||||||
ctl.addView(ctr, new TableLayout.LayoutParams(
|
ctl.addView(ctr, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -494,7 +494,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
if(i%2!=0) etr.setBackgroundColor(Color.DKGRAY);
|
if(i%2!=0) etr.setBackgroundColor(Color.DKGRAY);
|
||||||
etr.setId(1100+i);
|
etr.setId(1100+i);
|
||||||
etr.setLayoutParams(new TableLayout.LayoutParams(
|
etr.setLayoutParams(new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
|
|
||||||
// Here create the TextView dynamically
|
// Here create the TextView dynamically
|
||||||
|
@ -522,7 +522,7 @@ public class DanaRStatsActivity extends Activity {
|
||||||
|
|
||||||
// add exponentail rows to tables
|
// add exponentail rows to tables
|
||||||
etl.addView(etr, new TableLayout.LayoutParams(
|
etl.addView(etr, new TableLayout.LayoutParams(
|
||||||
TableLayout.LayoutParams.FILL_PARENT,
|
TableLayout.LayoutParams.MATCH_PARENT,
|
||||||
TableLayout.LayoutParams.WRAP_CONTENT));
|
TableLayout.LayoutParams.WRAP_CONTENT));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue