Graphics Programs Reference
In-Depth Information
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/
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