Skip to content

Commit

Permalink
修改包名和婴儿入口
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhoujunAndroid committed Nov 6, 2013
1 parent e9d7c5b commit 87af7af
Show file tree
Hide file tree
Showing 79 changed files with 4,246 additions and 4,173 deletions.
4 changes: 2 additions & 2 deletions baby/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.baby"
package="com.keju.baby"
android:versionCode="1"
android:versionName="1.0" >

Expand All @@ -22,7 +22,7 @@
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Light.NoTitleBar"
android:name="com.baby.CommonApplication">
android:name="com.keju.baby.CommonApplication">
<activity
android:name=".activity.LogoActivity"
android:label="@string/app_name" >
Expand Down
Binary file added baby/res/drawable-hdpi/bg_wave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-hdpi/ic_baby_account_nor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-hdpi/ic_baby_account_sel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-hdpi/ic_baby_fitment_nor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-hdpi/ic_baby_fitment_sel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-hdpi/ic_baby_home_nor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-hdpi/ic_baby_home_sel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-hdpi/ic_baby_setting_nor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-hdpi/ic_baby_setting_sel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-xhdpi/ic_baby_account_nor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-xhdpi/ic_baby_account_sel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-xhdpi/ic_baby_fitment_nor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-xhdpi/ic_baby_fitment_sel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-xhdpi/ic_baby_home_nor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-xhdpi/ic_baby_home_sel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-xhdpi/ic_baby_setting_nor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added baby/res/drawable-xhdpi/ic_baby_setting_sel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions baby/res/drawable/ic_baby_account_selector.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_checked="true" android:drawable="@drawable/ic_baby_account_sel"/>
<item android:drawable="@drawable/ic_baby_account_nor"/>
</selector>
5 changes: 5 additions & 0 deletions baby/res/drawable/ic_baby_fitment_selector.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_checked="true" android:drawable="@drawable/ic_baby_fitment_sel"/>
<item android:drawable="@drawable/ic_baby_fitment_nor"/>
</selector>
5 changes: 5 additions & 0 deletions baby/res/drawable/ic_baby_home_selector.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_checked="true" android:drawable="@drawable/ic_baby_home_sel"/>
<item android:drawable="@drawable/ic_baby_home_nor"/>
</selector>
5 changes: 5 additions & 0 deletions baby/res/drawable/ic_baby_setting_selector.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_checked="true" android:drawable="@drawable/ic_baby_setting_sel"/>
<item android:drawable="@drawable/ic_baby_setting_nor"/>
</selector>
65 changes: 40 additions & 25 deletions baby/res/layout/baby_main_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,54 @@
android:layout_height="match_parent"
android:orientation="vertical" >

<RelativeLayout
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="0.0dip"
android:layout_weight="1.0" />

<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.0"
android:visibility="gone" />

<RadioGroup
android:id="@+id/rg_main_btns"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
android:gravity="center_vertical"
android:orientation="horizontal" >
</TabWidget>

<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<TextView
android:id="@+id/tvBabyOne"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>

<TextView
android:id="@+id/tvBabyTwo"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

<TextView
android:id="@+id/tvBabyThree"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</FrameLayout>
</RelativeLayout>

<RadioButton
android:id="@+id/rb_home"
android:checked="true"
style="@style/main_btn_style"
android:background="@drawable/ic_baby_home_selector"/>

<RadioButton
android:id="@+id/rb_account"
style="@style/main_btn_style"
android:background="@drawable/ic_baby_account_selector"/>

<RadioButton
android:id="@+id/rb_fitment"
style="@style/main_btn_style"
android:background="@drawable/ic_baby_fitment_selector" />

<RadioButton
android:id="@+id/rb_setting"
style="@style/main_btn_style"
android:background="@drawable/ic_baby_setting_selector"/>
</RadioGroup>
</LinearLayout>

</TabHost>
16 changes: 16 additions & 0 deletions baby/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,20 @@
<item name="android:cacheColorHint" >@android:color/transparent</item>
<item name="android:fadingEdge" >none</item>
</style >
<!-- tabhost底部 -->
<style name="main_btn_style">

<!-- 去除原生的单选按钮图标 -->
<item name="android:button">@null</item>
<item name="android:textSize">10dp</item>
<item name="android:paddingTop">8dip</item>
<item name="android:paddingBottom">3dp</item>

<item name="android:gravity">center_horizontal</item>
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">wrap_content</item>

<item name="android:layout_weight">1.0</item>
<!-- 引用 main_btn_bg_d.xml,设定当按钮被press、checked时的背景图,以此增强点击、选中按钮时的视觉效果 -->
</style>
</resources>
20 changes: 0 additions & 20 deletions baby/src/com/baby/activity/baby/BabyMyActivity.java

This file was deleted.

76 changes: 0 additions & 76 deletions baby/src/com/baby/activity/baby/MainBabyActivity.java

This file was deleted.

Loading

0 comments on commit 87af7af

Please sign in to comment.