Skip to content

Commit 62fd73a

Browse files
committed
updates
1 parent a4f35fc commit 62fd73a

70 files changed

Lines changed: 631 additions & 523 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

External Plug-in Libraries/.searchable

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
74.7 KB
Loading
75.4 KB
Loading
-21.1 KB
Binary file not shown.

com.example.android.stackwidget/res/drawable-nodpi/widget_item_background.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
android:shape="rectangle" >
44

55
<stroke
6-
android:width="2dp"
6+
android:width="3dp"
77
android:color="#FFFFFFFF" />
88

99
<gradient
@@ -12,9 +12,9 @@
1212
android:startColor="#DD000000" />
1313

1414
<corners
15-
android:bottomLeftRadius="7dp"
16-
android:bottomRightRadius="7dp"
17-
android:topLeftRadius="7dp"
18-
android:topRightRadius="7dp" />
15+
android:bottomLeftRadius="8dp"
16+
android:bottomRightRadius="9dp"
17+
android:topLeftRadius="8dp"
18+
android:topRightRadius="8dp" />
1919

2020
</shape>

com.example.android.stackwidget/res/layout/main.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@
99
android:layout_height="wrap_content"
1010
android:text="@string/hello" />
1111

12+
<ImageView
13+
android:id="@+id/imageView1"
14+
android:layout_width="wrap_content"
15+
android:layout_height="wrap_content"
16+
android:src="@drawable/ente" />
17+
1218
</LinearLayout>

com.example.android.stackwidget/res/layout/widget_item.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
-->
1717
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
1818
android:id="@+id/widget_item"
19-
android:layout_width="120dp"
20-
android:layout_height="120dp"
21-
android:scaleType="centerInside"
19+
android:layout_width="match_parent"
20+
android:layout_height="match_parent"
2221
android:background="@drawable/widget_item_background"
2322
android:gravity="center"
24-
android:src="@drawable/logo"
23+
android:scaleType="fitXY"
24+
android:src="@drawable/fire"
25+
android:padding="12dp"
2526
android:textColor="#ffffff"
2627
android:textSize="44sp"
2728
android:textStyle="bold" />

com.example.android.stackwidget/src/com/example/android/stackwidget/StackWidgetService.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ public RemoteViews getViewAt(int position) {
8787
// text based on the position.
8888
RemoteViews rv = new RemoteViews(mContext.getPackageName(),
8989
R.layout.widget_item);
90-
rv.setImageViewResource(R.id.widget_item, R.drawable.logo);
90+
if (position % 2 == 0) {
91+
rv.setImageViewResource(R.id.widget_item, R.drawable.fire);
92+
} else {
93+
rv.setImageViewResource(R.id.widget_item, R.drawable.ente);
94+
}
9195
// rv.setTextViewText(R.id.widget_item,
9296
// mWidgetItems.get(position).text);
9397

Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
33
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="gen"/>
45
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
56
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
6-
<classpathentry kind="src" path="gen"/>
77
<classpathentry kind="output" path="bin/classes"/>
88
</classpath>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>de.vogella.android.codecamp</name>
3+
<name>de.vogella.android.33degress</name>
44
<comment></comment>
55
<projects>
66
</projects>

0 commit comments

Comments
 (0)