FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Start 3rd Edition · programmingandroid/AndroidUIDemo@21df822 · GitHub

Repository navigation

Commit 21df822

Browse files
committed
Start 3rd Edition
0 parents  commit 21df822

21 files changed

Lines changed: 756 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_*
2+
/bin
3+
/gen
4+
/.checkstyle
5+
/.classpath
6+
/.project
7+
/.settings
8+
/.metadata
9+
/lint.xml
10+

‎AndroidManifest.xml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.oreilly.demo.android.pa.uidemo"
4+
android:versionCode="1"
5+
android:versionName="1.0.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="14" />
10+
11+
<application
12+
android:icon="@drawable/icon"
13+
android:label="@string/app_name" >
14+
<activity
15+
android:name=".TouchMe"
16+
android:label="@string/app_name" >
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
20+
<category android:name="android.intent.category.LAUNCHER" />
21+
</intent-filter>
22+
</activity>
23+
</application>
24+
25+
</manifest>

‎proguard.cfg‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-optimizationpasses 5
2+
-dontusemixedcaseclassnames
3+
-dontskipnonpubliclibraryclasses
4+
-dontpreverify
5+
-verbose
6+
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
7+
8+
-keep public class * extends android.app.Activity
9+
-keep public class * extends android.app.Application
10+
-keep public class * extends android.app.Service
11+
-keep public class * extends android.content.BroadcastReceiver
12+
-keep public class * extends android.content.ContentProvider
13+
-keep public class * extends android.app.backup.BackupAgentHelper
14+
-keep public class * extends android.preference.Preference
15+
-keep public class com.android.vending.licensing.ILicensingService
16+
17+
-keepclasseswithmembernames class * {
18+
native <methods>;
19+
}
20+
21+
-keepclasseswithmembers class * {
22+
public <init>(android.content.Context, android.util.AttributeSet);
23+
}
24+
25+
-keepclasseswithmembers class * {
26+
public <init>(android.content.Context, android.util.AttributeSet, int);
27+
}
28+
29+
-keepclassmembers class * extends android.app.Activity {
30+
public void *(android.view.View);
31+
}
32+
33+
-keepclassmembers enum * {
34+
public static **[] values();
35+
public static ** valueOf(java.lang.String);
36+
}
37+
38+
-keep class * implements android.os.Parcelable {
39+
public static final android.os.Parcelable$Creator *;
40+
}

‎project.properties‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system use,
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
10+
# Project target.
11+
target=android-15

‎res/drawable-hdpi/icon.png‎

6.9 KB
LoadingViewer requires iframe.

‎res/drawable-hdpi/trashcan.png‎

842 Bytes
LoadingViewer requires iframe.

‎res/drawable-ldpi/icon.png‎

3.43 KB
LoadingViewer requires iframe.

‎res/drawable-ldpi/trashcan.png‎

842 Bytes
LoadingViewer requires iframe.

‎res/drawable-mdpi/icon.png‎

2.51 KB
LoadingViewer requires iframe.

‎res/layout/main.xml‎

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:id="@+id/root"
4+
android:orientation="vertical"
5+
android:gravity="center_horizontal"
6+
android:background="@color/lt_grey"
7+
android:layout_width="match_parent"
8+
android:layout_height="wrap_content"
9+
android:baselineAligned="false">
10+
11+
<com.oreilly.demo.android.pa.uidemo.view.DotView
12+
android:id="@+id/dots"
13+
android:focusableInTouchMode="true"
14+
android:layout_width="match_parent"
15+
android:layout_height="match_parent"
16+
android:layout_weight="1"
17+
android:background="@color/white"
18+
/>
19+
20+
<LinearLayout
21+
android:orientation="horizontal"
22+
android:background="@color/grey"
23+
android:layout_width="match_parent"
24+
android:layout_height="wrap_content">
25+
26+
<EditText
27+
android:id="@+id/text1"
28+
android:text="@string/defaultText"
29+
android:focusable="false"
30+
android:layout_height="wrap_content"
31+
android:layout_width="0dp"
32+
android:layout_weight="1"/>
33+
34+
<EditText
35+
android:id="@+id/text2"
36+
android:text="@string/defaultText"
37+
android:focusable="false"
38+
android:layout_height="wrap_content"
39+
android:layout_width="0dp"
40+
android:layout_weight="1"/>
41+
</LinearLayout>
42+
43+
<LinearLayout
44+
android:orientation="horizontal"
45+
android:background="@color/dk_grey"
46+
android:layout_width="match_parent"
47+
android:layout_height="wrap_content">
48+
49+
<Button
50+
android:id="@+id/button1"
51+
android:text="@string/labelRed"
52+
android:textColor="@color/red"
53+
android:layout_height="wrap_content"
54+
android:layout_width="0dp"
55+
android:layout_weight="1"/>
56+
57+
<Button
58+
android:id="@+id/button2"
59+
android:text="@string/labelGreen"
60+
android:textColor="@color/green"
61+
android:layout_height="wrap_content"
62+
android:layout_width="0dp"
63+
android:layout_weight="1"/>
64+
</LinearLayout>
65+
</LinearLayout>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL