Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Eugene Horan
Courses Plus Student 371 PointsLost the touch response on a button after adding a drawable background. How do I get the touch response back?
'''<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/LinearLayout2" android:layout_width="match_parent" android:layout_height="wrap_content" android:focusable="true" android:focusableInTouchMode="true" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" tools:context="com.editText.Main$PlaceholderFragment" > <Button android:id="@+id/editText1" android:layout_width="66dp" android:layout_height="30dp" android:layout_marginLeft="8dp" android:layout_marginRight="8dp" android:layout_marginTop="8dp" android:background="@drawable/buttonweight" android:text="editText" android:textSize="11sp" />'''
'''// Opens Chart 1 Button buttonWeight1 = (Button) findViewById(R.id.buttonWeight1); buttonWeight1.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent intent = new Intent(v.getContext(), ButtonWeight1.class); startActivityForResult(intent, 0); } });'''
How to do I get back my touch response back?
2 Answers
Daniel Cardenas
Courses Plus Student 9,236 PointsHi, Eugene Sorry, I don't have an answer for you. I hope you can find help with this. Have you tried emailing one of the instructors? Thanks,
Eugene Horan
Courses Plus Student 371 PointsI just did Daniel Cardenas , thank you