NFC sample app (DO NOT MERGE)

Change-Id: I1d1d67bbc6760cea1a0c6eccfa4d9f7b1398cd4d
This commit is contained in:
Megha Joshi
2010-11-02 23:27:24 -07:00
parent 5a2fb6ce28
commit 150dd1693f
17 changed files with 1172 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<View xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/listDivider"
/>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/text"
android:layout_width="match_parent"
android:minHeight="?android:attr/listPreferredItemHeight"
android:layout_height="wrap_content"
android:padding="4dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:maxLines="5"
android:ellipsize="end"
android:gravity="center_vertical"
/>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="vertical">
<!-- Title -->
<TextView android:id="@+id/title" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold" android:shadowColor="#BB000000"
android:shadowRadius="2.75" android:gravity="center_vertical" />
<!-- Content -->
<ScrollView android:layout_width="match_parent"
android:layout_height="0dip" android:layout_weight="1">
<LinearLayout android:id="@+id/list" android:layout_width="match_parent"
android:layout_height="wrap_content" android:orientation="vertical" />
</ScrollView>
</LinearLayout>