[Q] Button double output topic

SOCIALIZE IT ⇨

Guys I am trying to make a button that gives me two outputs but that also generates a plain text view, is this possible?
My buttons are

<Button
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Food"
android:id="@+id/button"
android:clickable="false" />

<Button
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Food2"
android:id="@+id/button2" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Text"
android:id="@+id/textView" />

and the value for each sting
<string name="Food">12</string>
<string name="Food2">15</string>

Well I wanted the each button to display a name in a plain text view when I click on it and its value but I seem to fail every time I do it... Can anyone help?

xda-developers


  1. How to root Yureka after Lollipop cm12 update? And increase speaker output volume? topic
  2. [Q] Will bluetooth fix the low headphone jack volume output? topic
  3. Oxygen Os Speaker output is more Louder and clear than any OS. topic
  4. [Q] Audio output quality through the headphone jack is not good topic
  5. Lollipop screen off animation and double tap missing!!! topic
  6. [Q] Button double output topic
  7. double tap topic
  8. Double Tap 2 Wake Possibility... topic
  9. [Q] Double Tap to wake screen topic
  10. Double Tap 2 Wake Compatible Displays topic
  11. Double render topic
  12. [Q] Chinese Double din android 4.2.2 problem !! topic
  13. [FREE][GAME] Boo and Woo: Double Trouble topic
  14. Is root required to roll back to KitKat? topic
  15. [REQ] Multi DPI Stock Camera topic
  16. May be this is it for Xperia J topic
  17. [Q] No IMEI and baseband anymore. So back to stock rom for repair! topic
  18. [Q] New to phone - on 24A rooted - where to go from here? topic
  19. Htc desire 816 official lollipop update video review topic
  20. [Q] Galaxy S6 Edge T-Mobile Unlock by SIM code topic

0 commentaires:

Enregistrer un commentaire