Thursday 15 September 2011

No resource identifier found for attribute layout_childtype in android AOSP 4.4.2 -



No resource identifier found for attribute layout_childtype in android AOSP 4.4.2 -

i working on android source code 4.4.2. tried create build adding new layout file in keyguard module in frameworks/base/ , next errors.

frameworks/base/packages/keyguard/res/layout-land/keyguard_host_view_ads.xml:57: error: no resource identifier found attribute 'layout_childtype' in bundle 'android' frameworks/base/packages/keyguard/res/layout-land/keyguard_host_view_ads.xml:64: error: no resource identifier found attribute 'layout_centerwithinarea' in bundle 'android'

the new source file key guard_host_view_ads.xml looks like:

<com.android.keyguard.keyguardhostview xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/res/android" android:id="@+id/keyguard_host_view" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <com.android.keyguard.multipanechallengelayout android:id="@+id/multi_pane_challenge" android:layout_width="match_parent" android:layout_height="match_parent" android:clipchildren="false" android:orientation="vertical"> <include layout="@layout/keyguard_widget_remove_drop_target" android:id="@+id/keyguard_widget_pager_delete_target" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|center_horizontal" androidprv:layout_childtype="pagedeletedroptarget" /> <include layout="@layout/keyguard_widget_pager" android:id="@+id/app_widget_container" android:layout_width="match_parent" android:layout_height="match_parent" androidprv:layout_centerwithinarea="0.5" androidprv:layout_childtype="widget" androidprv:layout_maxwidth="480dp" androidprv:layout_maxheight="480dp" /> <include layout="@layout/keyguard_multi_user_selector"/> <view android:layout_width="match_parent" android:layout_height="match_parent" androidprv:layout_childtype="scrim" android:background="#99000000" /> <com.android.keyguard.keyguardsecuritycontainer android:id="@+id/keyguard_security_container" android:layout_width="wrap_content" android:layout_height="wrap_content" androidprv:layout_centerwithinarea="0.5" androidprv:layout_childtype="challenge" android:layout_gravity="center_horizontal|bottom"> <com.android.keyguard.keyguardsecurityviewflipper android:id="@+id/view_flipper" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clipchildren="false" android:cliptopadding="false" android:paddingleft="@dimen/keyguard_security_view_margin" android:paddingtop="@dimen/keyguard_security_view_margin" android:paddingright="@dimen/keyguard_security_view_margin" android:paddingbottom="@dimen/keyguard_security_view_margin" android:gravity="center"> </com.android.keyguard.keyguardsecurityviewflipper> </com.android.keyguard.keyguardsecuritycontainer> </com.android.keyguard.multipanechallengelayout>

could explain difference between android , androidprv?

how can prepare issue?

the namespace androidprv wrongly assigned. right link.

xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard"

android android-layout android-activity android-fragments android-source

No comments:

Post a Comment