Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0dcb8c2

Browse files
JAVATECHIGJAVATECHIG
JAVATECHIG
authored and
JAVATECHIG
committed
Added Android Bundle Example
1 parent 760abbb commit 0dcb8c2

File tree

23 files changed

+508
-0
lines changed

23 files changed

+508
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.javatechig"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="8"
9+
android:targetSdkVersion="17" />
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.javatechig.NewsListActivity"
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+
26+
<activity
27+
android:name="com.javatechig.NewsDetailsActivity"
28+
android:label="@string/app_name" >
29+
</activity>
30+
31+
</application>
32+
33+
</manifest>
473 KB
Binary file not shown.
7.48 KB
Loading[フレーム]
3.69 KB
Loading[フレーム]
12.2 KB
Loading[フレーム]
24.2 KB
Loading[フレーム]
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:id="@+id/LinearLayout1"
4+
android:layout_width="match_parent"
5+
android:layout_height="match_parent"
6+
android:orientation="vertical"
7+
tools:context=".NewsListActivity" >
8+
9+
<TextView
10+
android:id="@+id/headlines"
11+
android:layout_width="fill_parent"
12+
android:layout_height="wrap_content"
13+
android:padding="8dp"
14+
android:text="Headline"
15+
android:background="#99CC00"
16+
android:textStyle="bold"
17+
android:textAppearance="?android:attr/textAppearanceMedium"
18+
android:textColor="#0000dc" />
19+
20+
<TextView
21+
android:id="@+id/pub_date"
22+
android:layout_width="fill_parent"
23+
android:layout_height="wrap_content"
24+
android:gravity="right"
25+
android:padding="3dp"
26+
android:text="Published Date"
27+
android:textAppearance="?android:attr/textAppearanceSmall"
28+
android:background="#33B5E5"
29+
android:textColor="#0000dc" />
30+
31+
<TextView
32+
android:id="@+id/description"
33+
android:layout_width="wrap_content"
34+
android:layout_height="wrap_content"
35+
android:padding="10dp"
36+
android:text="News Description"
37+
android:textAppearance="?android:attr/textAppearanceMedium" />
38+
39+
</LinearLayout>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<RelativeLayout 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+
tools:context=".NewsListActivity" >
6+
7+
<ListView
8+
android:id="@+id/newsList"
9+
android:layout_width="fill_parent"
10+
android:layout_height="fill_parent" >
11+
</ListView>
12+
13+
</RelativeLayout>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
android:id="@+id/LinearLayout1"
4+
android:layout_width="match_parent"
5+
android:layout_height="80dp"
6+
android:orientation="vertical"
7+
android:minHeight="60dp"
8+
android:background="#99CC00"
9+
tools:context=".NewsListActivity" >
10+
11+
<TextView
12+
android:id="@+id/newsHeadline"
13+
android:layout_width="wrap_content"
14+
android:layout_height="wrap_content"
15+
android:text="News Headline"
16+
android:padding="5dp"
17+
android:minLines="2"
18+
android:maxLines="2"
19+
android:textStyle="bold"
20+
android:textColor="#0000dc"
21+
android:textAppearance="?android:attr/textAppearanceMedium" />
22+
23+
<TextView
24+
android:id="@+id/pubDate"
25+
android:layout_width="wrap_content"
26+
android:layout_height="wrap_content"
27+
android:layout_marginRight="19dp"
28+
android:text="Published Date"
29+
android:padding="3dp"
30+
android:textColor="#FF4444"
31+
android:textAppearance="?android:attr/textAppearanceSmall" />
32+
33+
</LinearLayout>
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)

AltStyle によって変換されたページ (->オリジナル) /