什么是android.R.layout.simple_list_item_1?

什么是android.R.layout.simple_list_item_1?,第1张

什么是android.R.layout.simple_list_item_1?

android.R.layout
包含Android *** 作系统用来显示各种项目的所有公共可用布局
android.R.layout.simple_list_item_1
顾名思义,它只是一个显示文本片段的简单布局。它使您免于在使用适配器时不必编写简单的布局,并且使您在应用程序中的系统本机外观和主题花费了最少的精力。

我已经包括了来自android.git.kernel.org回购的GitHub镜像的源

<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2006 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="@android:id/text1"    android:layout_width="match_parent"    android:layout_height="wrap_content"    android:textAppearance="?android:attr/textAppearanceLarge"    android:gravity="center_vertical"    android:paddingLeft="6dip"    android:minHeight="?android:attr/listPreferredItemHeight"/>


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5431127.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-11
下一篇 2022-12-11

发表评论

登录后才能评论

评论列表(0条)

保存