|
|
# Práca so zoznamom
|
|
|
|
|
|
- https://book.droidboy.cz/4-seznamy.html |
|
|
\ No newline at end of file |
|
|
- https://book.droidboy.cz/4-seznamy.html
|
|
|
|
|
|
- vytvor novy button
|
|
|
- vytvor novu aktivitu _New -> Activity -> EmptyActivity_ s nazvom **ScoreAktivity**
|
|
|
- activity score nahradime za:
|
|
|
|
|
|
```xml
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<ListView
|
|
|
android:id="@+id/score_list"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
``` |
|
|
\ No newline at end of file |