java - Large int on checkedId setoncheckedchangeListener -


whenever receive id checkedid, it's long int example (2131034187) if have declared id every radiobutton in xml file. have no idea causes or how fix it. here's code.

xml layout

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >  <textview     android:id="@+id/textview1"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:text="textview"     android:layout_gravity="right" />  <radiogroup     android:id="@+id/radiogroup1"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:orientation="horizontal" >      <radiobutton         android:id="@+id/radio0"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:checked="true"         android:text="" />      <radiobutton         android:id="@+id/radio1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="" />      <radiobutton         android:id="@+id/radio2"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="" />     <radiobutton         android:id="@+id/radio3"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="" />     <radiobutton         android:id="@+id/radio4"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="" />     <radiobutton         android:id="@+id/radio5"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:checked="true"         android:text="" /> </radiogroup> 

java class

holder.rbg = (radiogroup)convertview.findviewbyid(r.id.radiogroup1);           convertview.settag(holder);         holder.rbg.setoncheckedchangelistener(new radiogroup.oncheckedchangelistener() {             @override             public void oncheckedchanged(radiogroup group, int checkedid) {                 log.d("id", checkedid+"");                  selections[position] = checkedid;             } }); 

error log

11-27 12:20:37.701: d/abslistview(8560): unregisterirlistener() called  11-27 12:20:37.711: d/abslistview(8560): unregisterirlistener() called  11-27 12:20:37.756: d/abslistview(8560): unregisterirlistener() called  11-27 12:20:37.791: d/abslistview(8560): unregisterirlistener() called  11-27 12:20:37.916: d/abslistview(8560): onvisibilitychanged() called, visibility : 4 11-27 12:20:37.916: d/abslistview(8560): unregisterirlistener() called  11-27 12:20:38.921: d/id(8560): 2131034186 11-27 12:20:49.491: d/id(8560): 2131034188 

the id's generated in r.java dynamically generated class, created during build process dynamically identify assets (from strings android widgets layouts), usage in java classes in android app.

this class has id's of view , cannot made 1 char long.

hope helps.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -