Skip to content

Commit 0cab832

Browse files
committed
加入订阅分类列表
1 parent 2440890 commit 0cab832

21 files changed

+270
-31
lines changed

AndroidManifest.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414
android:label="@string/app_name"
1515
android:theme="@style/AppTheme" >
1616
<activity
17-
android:name="com.dreateam.app.ui.SplashActivity"
17+
android:name="com.dreamteam.app.ui.SplashActivity"
1818
android:label="@string/app_name" >
1919
<intent-filter>
2020
<action android:name="android.intent.action.MAIN" />
2121
<category android:name="android.intent.category.LAUNCHER" />
2222
</intent-filter>
2323
</activity>
24-
<activity android:name="Main"></activity>
25-
<activity android:name="GuideActivity"></activity>
24+
<activity android:name="com.dreamteam.app.ui.Main"></activity>
25+
<activity android:name="GuideActivity"></activity>
26+
<activity android:name="com.dreamteam.app.ui.FeedCategory"></activity>
2627
</application>
2728

2829
</manifest>

assets/feed.db

0 Bytes
Binary file not shown.

bin/AndroidManifest.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414
android:label="@string/app_name"
1515
android:theme="@style/AppTheme" >
1616
<activity
17-
android:name="com.dreateam.app.ui.SplashActivity"
17+
android:name="com.dreamteam.app.ui.SplashActivity"
1818
android:label="@string/app_name" >
1919
<intent-filter>
2020
<action android:name="android.intent.action.MAIN" />
2121
<category android:name="android.intent.category.LAUNCHER" />
2222
</intent-filter>
2323
</activity>
24-
<activity android:name="Main"></activity>
25-
<activity android:name="GuideActivity"></activity>
24+
<activity android:name="com.dreamteam.app.ui.Main"></activity>
25+
<activity android:name="GuideActivity"></activity>
26+
<activity android:name="com.dreamteam.app.ui.FeedCategory"></activity>
2627
</application>
2728

2829
</manifest>

res/drawable-hdpi/btn_back.png

1.45 KB
Loading

res/drawable-hdpi/feed_custom_btn.png

1.12 KB
Loading

res/drawable/img_btn_selector.xml

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

res/layout/category_item.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent">
5+
<TextView
6+
android:id="@+id/category_title"
7+
android:layout_width="wrap_content"
8+
android:layout_height="wrap_content"
9+
android:padding="18dp"
10+
android:text="新闻资讯"
11+
android:textSize="20sp" />
12+
</RelativeLayout>

res/layout/feed_category.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:layout_width="fill_parent"
3+
android:layout_height="fill_parent"
4+
android:orientation="vertical"
5+
android:background="@color/white"
6+
>
7+
8+
<RelativeLayout
9+
android:layout_width="match_parent"
10+
android:layout_height="40dp"
11+
android:background="@color/blue"
12+
>
13+
<ImageButton
14+
android:id="@+id/feed_category_btn_back"
15+
style="@style/img_btn_style"
16+
android:layout_width="wrap_content"
17+
android:layout_height="wrap_content"
18+
android:layout_alignParentLeft="true"
19+
android:src="@drawable/btn_back" />
20+
<TextView
21+
android:id="@+id/feed_center_tv"
22+
android:layout_width="wrap_content"
23+
android:layout_height="wrap_content"
24+
android:layout_centerInParent="true"
25+
android:textSize="20sp"
26+
android:textColor="@color/white"
27+
android:text="订阅中心"/>
28+
<ImageButton
29+
android:id="@+id/feed_category_add_btn"
30+
style="@style/img_btn_style"
31+
android:layout_width="wrap_content"
32+
android:layout_height="wrap_content"
33+
android:layout_alignParentRight="true"
34+
android:layout_centerVertical="true"
35+
android:src="@drawable/feed_custom_btn" />
36+
</RelativeLayout>
37+
38+
<ListView
39+
android:id="@+id/feed_category_lsit"
40+
android:dividerHeight="1dp"
41+
android:layout_width="match_parent"
42+
android:layout_height="match_parent"
43+
>
44+
</ListView>
45+
46+
</LinearLayout>

res/values/colors.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="black">#000000</color>
4+
<color name="gray">#dad9d7</color>
5+
<color name="white">#ffffff</color>
6+
<color name="blue">#1e87e0</color>
7+
<color name="transparent">#00000000</color>
8+
<color name="window_bg">#ffeef1f3</color>
9+
</resources>

res/values/strings.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33

44
<string name="app_name">SimpleReader</string>
55
<string name="action_settings">Settings</string>
6-
<string name="hello_world">Hello world!</string>
7-
6+
7+
<string-array name="feed_category">
8+
<item>新闻资讯</item>
9+
<item>科学技术</item>
10+
<item>读书文娱</item>
11+
<item>体育赛事</item>
12+
<item>动漫游戏</item>
13+
<item>名人博客</item>
14+
<item>外语资讯</item>
15+
<item>娱乐八卦</item>
16+
</string-array>
817
</resources>

0 commit comments

Comments
 (0)