Skip to content

Commit 91b52a1

Browse files
JAVATECHIGJAVATECHIG
authored andcommitted
Added ImageView Example
1 parent 16b41d0 commit 91b52a1

File tree

18 files changed

+199
-0
lines changed

18 files changed

+199
-0
lines changed

ImageView/AndroidManifest.xml

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

ImageView/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-18
7.48 KB
Loading
137 KB
Loading
161 KB
Loading
3.69 KB
Loading
12.2 KB
Loading
24.2 KB
Loading
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:background="#31352e" >
6+
7+
<LinearLayout
8+
android:layout_width="match_parent"
9+
android:layout_height="wrap_content"
10+
android:orientation="vertical" >
11+
12+
<ImageView
13+
android:id="@+id/imageView1"
14+
android:layout_width="fill_parent"
15+
android:layout_height="150dp"
16+
android:layout_margin="5dp"
17+
android:src="@drawable/image1" />
18+
19+
<ImageView
20+
android:id="@+id/imageView2"
21+
android:layout_width="fill_parent"
22+
android:layout_height="150dp"
23+
android:layout_margin="5dp"
24+
android:background="#fff"
25+
android:padding="3dp"
26+
android:scaleType="fitXY"
27+
android:src="@drawable/image2" />
28+
29+
<ImageView
30+
android:id="@+id/imageView3"
31+
android:layout_width="fill_parent"
32+
android:layout_height="200dp"
33+
android:layout_margin="5dp"
34+
android:background="#fff"
35+
android:paddingBottom="50dp"
36+
android:paddingLeft="3dp"
37+
android:paddingRight="3dp"
38+
android:paddingTop="3dp"
39+
android:scaleType="fitXY"
40+
android:src="@drawable/image2" />
41+
</LinearLayout>
42+
43+
</ScrollView>

ImageView/res/menu/main.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
2+
3+
<item
4+
android:id="@+id/action_settings"
5+
android:orderInCategory="100"
6+
android:showAsAction="never"
7+
android:title="@string/action_settings"/>
8+
9+
</menu>

0 commit comments

Comments
 (0)