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

Android Build an Interactive Story App (Retired) Finishing the User Interface Customizing a Button

Button background

Really i am running Android Studio 1.0.1

The button in this version has outline form it's bottom , right and lift sides , So when i try to mach the button color with the background (as Mr.ben did in the example Story ) these outlines still appear and i cant show just the button text ,

i also downloaded the project from the side , and the same result , So i think that it's from the version .

Please if there is a way to change the style of the button to has the same effect for this project

Thanks in advance

activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <Button
        android:id="@+id/thrustButton"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:text="@string/thrust_label" />

</RelativeLayout>

oooh , when i lunch the app in Emulater the button goes like we want (without outline) but , why that happened in the Android studio ??

Josh Gold
Josh Gold
12,207 Points

Hello Khaled, I'm not sure why this happened, but the preview you see in the Android Studio can be slightly different from the preview you see in an emulator, which can be different from a real device. From most accurate to least accurate here is the least in my opinion:

  1. A real device (naturally)
  2. Emulator
  3. Preview in Android Studio

You may also want to upgrade your Android Studio to 1.1.0.