.


:




:

































 

 

 

 


. : 09. 03. 03




____________________________

 

-

________

: 09.03.03

:

1

ListView.

1- ListView

ListView lv;

lv = (ListView) findViewById(R.id. lv); -

 

SharedPreferences sPref; - sPref = getSharedPreferences("pref",( ) MODE_PRIVATE);-
SharedPreferences.Editored = sPref. edit(); //
Stringkey = NumDay + String. valueOf (NumPara);
ed.putString(key + "disc", disc); //
ed.putString(key + "prep", prep);
ed.putString(key + "aud", aud);
ed.commit(); //

 

3.

Button rub, doll;rub=(Button) findViewById(R.id. btnr);
doll =(Button) findViewById(R.id. btnd);rub.setOnClickListener(new View.OnClickListener()doll.setOnClickListener(new View.OnClickListener()2View.OnClickListeneronClickListener = new View.OnClickListener()

(7 07.12.2016 .).

. ___________________ / .. /

____________________________

 

-

________

: 09.03.03

:

2

  1. Activity.

1.

SharedPreferences sPref; sPref = getSharedPreferences("pref", MODE_PRIVATE); //
String disc = sPref. getString(key + "disc", ""); //
String prep = sPref. getString(key + "prep", "");
String aud = sPref. getString(key + "aud", "");

2.

  1. Activity
Intent intentp, intentkurs intentkurs = new Intent(this,Kurc. class);. intentp. putExtra("klr", rub. getText().toString()); 1 : . 2
intentp. putExtra("k", "1")startActivity(intentp) -

( 7 07.12.2016 .).

. ___________________ / .. /

____________________________

 

-

________

: 09.03.03

:

3

1. LinearLayot

 

2. ArrayAdapter ListView, , XML- . (this), , , , TextView, , .

 

3. EditText. - EditText , , . , EditText TextView.

 

EditText et_disc, et_prep, et_aud; et_disc = (EditText) findViewById(R.id. et_disc);
et_prep = (EditText) findViewById(R.id. et_prep);
et_aud = (EditText) findViewById(R.id. et_aud); .

 

 

( 7 07.12.2016 .).

. ___________________ / .. /

____________________________

 





:


: 2017-04-15; !; : 250 |


:

:

, ,
==> ...

1705 - | 1692 -


© 2015-2024 lektsii.org - -

: 0.012 .