初次提交
This commit is contained in:
BIN
第2章 游戏开发基础知识/Sample2_10/res/drawable-hdpi/icon.png
Normal file
BIN
第2章 游戏开发基础知识/Sample2_10/res/drawable-hdpi/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
BIN
第2章 游戏开发基础知识/Sample2_10/res/drawable-ldpi/icon.png
Normal file
BIN
第2章 游戏开发基础知识/Sample2_10/res/drawable-ldpi/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
第2章 游戏开发基础知识/Sample2_10/res/drawable-mdpi/icon.png
Normal file
BIN
第2章 游戏开发基础知识/Sample2_10/res/drawable-mdpi/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
42
第2章 游戏开发基础知识/Sample2_10/res/layout/device_list.xml
Normal file
42
第2章 游戏开发基础知识/Sample2_10/res/layout/device_list.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
<TextView android:id="@+id/title_paired_devices"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/title_paired_devices"
|
||||
android:visibility="gone"
|
||||
android:background="#666"
|
||||
android:textColor="#fff"
|
||||
android:paddingLeft="5dp"
|
||||
/>
|
||||
<ListView android:id="@+id/paired_devices"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:stackFromBottom="true"
|
||||
android:layout_weight="1"
|
||||
/>
|
||||
<TextView android:id="@+id/title_new_devices"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/title_other_devices"
|
||||
android:visibility="gone"
|
||||
android:background="#666"
|
||||
android:textColor="#fff"
|
||||
android:paddingLeft="5dp"
|
||||
/>
|
||||
<ListView android:id="@+id/new_devices"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:stackFromBottom="true"
|
||||
android:layout_weight="2"
|
||||
/>
|
||||
<Button android:id="@+id/button_scan"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/button_scan"
|
||||
/>
|
||||
</LinearLayout>
|
||||
7
第2章 游戏开发基础知识/Sample2_10/res/layout/device_name.xml
Normal file
7
第2章 游戏开发基础知识/Sample2_10/res/layout/device_name.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="18sp"
|
||||
android:padding="5dp"
|
||||
/>
|
||||
27
第2章 游戏开发基础知识/Sample2_10/res/layout/main.xml
Normal file
27
第2章 游戏开发基础知识/Sample2_10/res/layout/main.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="5dp"
|
||||
android:gravity="center"
|
||||
>
|
||||
<EditText android:id="@+id/edit_text_out"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="bottom"
|
||||
android:hint="@string/hint"
|
||||
/>
|
||||
<Button android:id="@+id/button_send"
|
||||
android:layout_width="100dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/send"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
24
第2章 游戏开发基础知识/Sample2_10/res/values/strings.xml
Normal file
24
第2章 游戏开发基础知识/Sample2_10/res/values/strings.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
|
||||
<resources>
|
||||
<string name="app_name">Sample2_10</string>
|
||||
|
||||
<!-- BluetoothChat -->
|
||||
<string name="send">发送</string>
|
||||
<string name="not_connected">没有连接到设备</string>
|
||||
<string name="bt_not_enabled_leaving">蓝牙不可使用,退出程序</string>
|
||||
<string name="title_connecting">正在连接……</string>
|
||||
<string name="title_connected_to">已连接: </string>
|
||||
<string name="title_not_connected">未连接</string>
|
||||
|
||||
<!-- DeviceListActivity -->
|
||||
<string name="scanning">正在扫描设备……</string>
|
||||
<string name="select_device">选择要连接的设备</string>
|
||||
<string name="none_paired">没有可配对的设备</string>
|
||||
<string name="none_found">未找到设备</string>
|
||||
<string name="title_paired_devices">已配对的设备</string>
|
||||
<string name="title_other_devices">其它可用设备</string>
|
||||
<string name="button_scan">扫描设备</string>
|
||||
<string name="hint">在此输入要发送的信息</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user