首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >错误:在包'android‘中找不到属性'textAlignment’的资源标识符

错误:在包'android‘中找不到属性'textAlignment’的资源标识符
EN

Stack Overflow用户
提问于 2013-11-24 22:55:50
回答 2查看 16.7K关注 0票数 20

这是我的res/layout mobile.xml文件。我的错误在哪里?当我运行textview时,会出现这个错误。

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="5dp" >
    <ImageView
    android:id="@+id/grid_item_image"
    android:layout_width="100dp"
    android:layout_height="118dp"
    android:src="@drawable/android_logo" >
    </ImageView>
    <TextView
    android:id="@+id/grid_item_label"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="15dp"
    android:text="@+id/label"
    android:textSize="25dp"
    android:textAlignment="center" >
    </TextView>
    </LinearLayout>
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20175969

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档