forked from kejukeji/baby_Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae58542
commit f6698ed
Showing
16 changed files
with
564 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" > | ||
<include layout="@layout/common_title_bar" /> | ||
<ListView | ||
android:id="@+id/listView" | ||
style="@style/listviewStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" /> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 38 additions & 2 deletions
40
baby/src/com/keju/baby/activity/baby/BabyDetailActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,48 @@ | ||
package com.keju.baby.activity.baby; | ||
|
||
import com.keju.baby.activity.base.BaseActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.webkit.WebView; | ||
import android.widget.Button; | ||
import android.widget.TextView; | ||
|
||
import com.keju.baby.Constants; | ||
import com.keju.baby.R; | ||
import com.keju.baby.activity.base.BaseWebViewActivity; | ||
import com.keju.baby.bean.BabyBean; | ||
|
||
/** | ||
* 婴儿详情界面 | ||
* @author Zhoujun | ||
* @version 创建时间:2013-10-25 下午3:29:41 | ||
*/ | ||
public class BabyDetailActivity extends BaseActivity { | ||
public class BabyDetailActivity extends BaseWebViewActivity { | ||
private Button btnLeft, btnRight; | ||
private TextView tvTitle; | ||
|
||
private BabyBean bean; | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
if(getIntent() != null){ | ||
bean = (BabyBean) getIntent().getExtras().getSerializable(Constants.EXTRA_DATA); | ||
} | ||
findView(); | ||
fillData(); | ||
} | ||
|
||
private void findView() { | ||
btnLeft = (Button) this.findViewById(R.id.btnLeft); | ||
btnLeft.setVisibility(View.INVISIBLE); | ||
btnRight = (Button) this.findViewById(R.id.btnRight); | ||
btnRight.setVisibility(View.INVISIBLE); | ||
tvTitle = (TextView) this.findViewById(R.id.tvTitle); | ||
tvTitle.setVisibility(View.VISIBLE); | ||
tvTitle.setText(bean.getName()); | ||
webView = (WebView) findViewById(R.id.webview); | ||
} | ||
|
||
private void fillData() { | ||
loadUrl(Constants.URL_GROW_LINE + bean.getId()); | ||
} | ||
} |
Oops, something went wrong.