Android bug with buttons and editText

Posted by khatereh on Stack Overflow See other posts from Stack Overflow or by khatereh
Published on 2012-04-10T23:24:26Z Indexed on 2012/04/10 23:29 UTC
Read the original article Hit count: 188

Filed under:

I have some android code (textView, editText, button) and I add all strings in string.xml. I call these data in this way:
Button vibro;
setVibro((Button) findViewById(R.id.vibro));
vibro.setText(getString(R.string.vibro_button));
vibro = (Button)findViewById(R.id.vibro);
and also I create set and get method for it. This is one part of my main.xml:
android:id="@+id/editme"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/username"
/>

          <Button     
             android:id="@+id/buttons"      
             android:layout_width="fill_parent"        
             android:layout_height="wrap_content"     
             android:text="@string/bfirst"     
               />       

and this is one part of my string.xml:
Register
The problem is that I see the buttons and edit text and everything in all my pages. I am sure that I call them in a correct way. But what can cause a problem?

© Stack Overflow or respective owner

Related posts about android