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 trialkhaled Ahmed
Courses Plus Student 2,066 PointsButton 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
<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>
Josh Gold
12,207 PointsHello 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:
- A real device (naturally)
- Emulator
- Preview in Android Studio
You may also want to upgrade your Android Studio to 1.1.0.
khaled Ahmed
Courses Plus Student 2,066 Pointskhaled Ahmed
Courses Plus Student 2,066 Pointsoooh , when i lunch the app in Emulater the button goes like we want (without outline) but , why that happened in the Android studio ??