Graphics Programs Reference
In-Depth Information
6. Add the following string resources ( Listing 2-10 ) to the
strings.xml file (inside res/values folder):
Listing 2-10. SLEEK UI/res/values/strings.xml
<string name="up">UP</string>
<string name="down">DOWN</string>
7. Remove all lines from the updown.xml file and add the layout shown
in Listing 2-11 .
Listing 2-11. SLEEK UI/res/layout/updown.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=" http://schemas.android.com/
apk/res/android "
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginLeft="5dp"
android:background="@android:drawable/
alert_dark_frame"
android:orientation="vertical"
android:paddingBottom="11dp" >
<Button
android:layout_width="90dp"
android:layout_height="wrap_content"
android:layout_marginBottom="25dp"
android:contentDescription="@string/
app_name"
android:text="@string/up" />
<Button
android:layout_width="90dp"
android:layout_height="wrap_content"
android:contentDescription="@string/
app_name"
 
 
 
 
Search WWH ::




Custom Search