X Tutup
Skip to content

Commit 7cafb4c

Browse files
committed
Fixes the layout of Lightswitch example
1 parent 999cf3a commit 7cafb4c

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

com.example.drawable.lightswitch/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
# project structure.
99

1010
# Project target.
11-
target=android-17
11+
target=android-19

com.example.drawable.lightswitch/res/layout/main.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="fill_parent"
4-
android:layout_height="?android:attr/listPreferredItemHeight"
4+
android:layout_height="fill_parent"
55
android:gravity="center"
66
android:orientation="vertical" >
77

@@ -21,7 +21,6 @@
2121
android:paddingLeft="40dip"
2222
android:paddingRight="40dip"
2323
android:paddingTop="20dip"
24-
android:background="?android:attr/backgroundStacked"
2524
android:text="ToggleButton"
2625
android:textAppearance="@android:style/TextAppearance.Large"
2726
android:textColor="@android:color/white" />

com.vogella.android.drawable.lightswitch/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
# project structure.
99

1010
# Project target.
11-
target=android-17
11+
target=android-19

com.vogella.android.drawable.lightswitch/src/com/vogella/android/drawable/lightswitch/LightSwitchActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.vogella.android.drawable.lightswitch;
22

33

4-
import android.R;
54
import android.app.Activity;
65
import android.graphics.drawable.TransitionDrawable;
76
import android.os.Bundle;

0 commit comments

Comments
 (0)
X Tutup