Skip to content

Commit d4c1dcb

Browse files
committed
Initial file set commit.
1 parent ee1fde3 commit d4c1dcb

File tree

14 files changed

+642
-0
lines changed

14 files changed

+642
-0
lines changed

AndroidManifest.xml

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

project.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=android-16

res/color/text_colors.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:state_pressed="true" android:color="#070" />
4+
<item android:state_focused="true" android:color="#070" />
5+
<!-- Default State -->
6+
<item android:color="#A00" />
7+
</selector>

res/drawable-hdpi/ic_launcher.png

2.38 KB
Loading

res/drawable-mdpi/ic_launcher.png

1.61 KB
Loading

res/drawable-xhdpi/ic_launcher.png

3.46 KB
Loading
5.68 KB
Loading

res/layout/main.xml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:stretchColumns="*"
6+
android:padding="5dp">
7+
8+
<TableRow>
9+
<ImageView
10+
android:id="@+id/image1"
11+
android:layout_width="match_parent"
12+
android:layout_height="150dp"
13+
android:scaleType="center"/>
14+
<ImageView
15+
android:id="@+id/image2"
16+
android:layout_width="match_parent"
17+
android:layout_height="150dp"
18+
android:scaleType="centerCrop"/>
19+
</TableRow>
20+
21+
<TableRow>
22+
<ImageView
23+
android:id="@+id/image3"
24+
android:layout_width="match_parent"
25+
android:layout_height="150dp"
26+
android:scaleType="center" />
27+
<ImageView
28+
android:id="@+id/image4"
29+
android:layout_width="match_parent"
30+
android:layout_height="150dp"
31+
android:scaleType="fitCenter" />
32+
</TableRow>
33+
34+
<EditText
35+
android:id="@+id/edittext1"
36+
android:layout_width="match_parent"
37+
android:layout_height="wrap_content"
38+
android:inputType="phone"
39+
android:digits="0123456789"
40+
android:imeOptions="actionDone"/>
41+
42+
<Button
43+
android:id="@+id/button1"
44+
android:layout_width="match_parent"
45+
android:layout_height="wrap_content"
46+
android:text="Click Me" />
47+
48+
</TableLayout>
49+

res/values-v11/styles.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<style name="AppTheme" parent="@android:style/Theme.Holo.Light">
4+
5+
</style>
6+
</resources>

res/values-v14/styles.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<style name="AppTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar">
4+
5+
</style>
6+
</resources>

0 commit comments

Comments
 (0)