android - Implementating GridLayout v7 for API 8, -
i have problem layout uses gridlayout widget android support library v7 android.support.v7.widget.gridlayout.
have added external jar path:
<sdk_folder>\extras\android\support\v7\gridlayout
to project properties: project->properties->java build path->libraries tab.
, also, in same properties window in "order , export" tab, marked box of imported jar on list.
when use widget in layout, gives me next errors in gridlayout:
-error: no resource identifier found attribute 'columncount' in package 'com.mwm.internews'
-error: no resource identifier found attribute 'rowcount' in package 'com.mwm.internews'
also getting same errors each 1 of child views contained in gridlayout (i have three textviews inside gridlayout throwing same errors)
my project package name com.mwm.internews. here xml file issue , have put 1 of 3 textviews metioned above reference:
element_page_2.xml:
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:gravity="center_vertical" > <ratingbar android:id="@+id/rba_rating_element_page_2" android:layout_width="wrap_content" android:layout_height="26dp" android:layout_centerhorizontal="true" android:layout_marginbottom="5dp" android:numstars="10" android:progressdrawable="@drawable/element_ratingbar" android:rating="5.0" android:stepsize="1.0" /> <relativelayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/rba_rating_element_page_2" android:gravity="center_horizontal" > <android.support.v7.widget.gridlayout xmlns:grid="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/glo_content_rating_element_page_2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginleft="10dp" android:layout_torightof="@+id/imv_image_element_page_2" grid:columncount="2" grid:rowcount="2" > <textview android:layout_width="wrap_content" android:layout_height="wrap_content" grid:layout_column="0" grid:layout_gravity="center_vertical|left" grid:layout_row="0" android:background="@color/transparent" android:text="@string/txt_text_rating_element_page_2" android:textcolor="@color/darkgray" android:textsize="24sp" android:textstyle="normal" /> <textview ... /> <textview ... /> </android.support.v7.widget.gridlayout> here errors first textview repeated on next 2 textviews:
-error: no resource identifier found attribute 'layout_column' in package 'com.mwm.internews'
-error: no resource identifier found attribute 'layout_gravity' in package 'com.mwm.internews'
-error: no resource identifier found attribute 'layout_row' in package 'com.mwm.internews'
i been searching on many questions , followed solution steps posted each one.... no success. doing wrong??? missing on xml file???
in advance helping me problem....
i have added external jar path:
\extras\android\support\v7\gridlayout
to project properties: project->properties->java build path->libraries tab. , also, in same properties window in "order , export" tab, marked box of imported jar on list.
none of correct.
first, never add jar way in eclipse android project, jar. jars copied libs/ on eclipse.
however, gridlayout-v7 android library project, not jar. there separate set of instructions adding android library project application project.
Comments
Post a Comment