android:id="@id/android:list"在布局文件里为什么要写这句话
这是在是要引用id文件里的什么东西吗?但我在文件里找不到一个叫id的文件啊请大家教教我
这是在是要引用id文件里的什么东西吗?但我在文件里找不到一个叫id的文件啊请大家教教我
解决方案 »
- android 序列化 class not found
- 关于android里http的问题,麻烦各位指导一下,不甚感激。
- 基于android2.1开发 来电监听程序 获取不到号码 机型:华为C8500
- 读取本地mp3文件乱码
- frameworke中的一个status_bar_expanded.xml问题
- 【急】配置android2.2时出错?
- 如何能在图片按钮上实现滑动翻页?
- 请教service问题
- 使用V7包actionbar时,启动activity时总要先显示默认actionbar
- 使用Android Studio调试程序时候出现这个错误:Error:Execution failed for task ':app:clean'.
- wifi问题
- 如何统计android软件的安装和卸载次数
内容如下:<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 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.
--><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
> <ListView
android:id="@android:id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"
/> <TextView
android:id="@android:id/empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/activity_list_empty"
android:visibility="gone"
android:textAppearance="?android:attr/textAppearanceMedium"
/></FrameLayout>
一般的Activity中添加ListView控件是可以自己设置id的