LAMPIRAN PROGRAM
Splashscreen.java
public class Splashscreen extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_splashscreen);
/*handler untuk menahan activity sementara*/
Handler handler = new Handler(); handler.postDelayed(new Runnable() {
@Override
public void run() {
/*mulai activity ke MainActivity setelah 5 detik*/ startActivity(new
Intent(getApplicationContext(),Menu.class)) ; finish();
}
/*durasi 5000ms*/
},5000); }
}
Acivity_menu.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:background="@drawable/bg3" android:layout_height="match_parent"
tools:context="com.example.suciprtw.kesehatananak.Menu">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent" android:layout_height="match_parent" app:srcCompat="@drawable/header" android:layout_marginBottom="310dp"
android:layout_alignParentStart="true" />
<LinearLayout
android:orientation="vertical"
android:layout_alignParentBottom="true" android:layout_alignParentStart="true">
<LinearLayout
android:gravity="center"
android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginBottom="20dp">
<ImageView
android:id="@+id/imageView2" android:layout_width="120dp" android:layout_marginRight="20dp" android:layout_height="120dp"
android:layout_alignEnd="@+id/frameLrayout" android:src="@drawable/tips"
android:onClick="tips"/>
<ImageView
android:id="@+id/imageView9" android:layout_width="120dp" android:layout_height="120dp"
android:layout_alignEnd="@+id/forameLayout" android:layout_gravity="right"
android:src="@drawable/cari" android:onClick="cari"/> </LinearLayout>
<LinearLayout
android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:layout_marginBottom="20dp" android:gravity="center"
android:orientation="horizontal">
<ImageView
android:id="@+id/imageView20" android:layout_width="120dp" android:layout_height="120dp"
android:layout_alignEnd="@+id/frpameLayout" android:layout_marginRight="20dp"
android:onClick="forum"
android:src="@drawable/forum" />
<ImageView
android:id="@+id/imageView90" android:layout_width="120dp" android:layout_height="120dp"
android:layout_alignEnd="@+id/frapmeLayout" android:layout_gravity="right"
android:onClick="telepon" android:src="@drawable/rs" />
</LinearLayout> </LinearLayout>
<ImageView
android:id="@+id/imageView5" android:layout_width="50dp" android:layout_height="50dp"
app:srcCompat="@drawable/iconabout" android:layout_marginEnd="7dp" android:layout_marginTop="8dp"
android:layout_alignParentTop="true" android:layout_alignParentEnd="true" android:onClick="about"/>
</RelativeLayout>
Acivity_menu.java
public class Menu extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_menu);
}
public void about (View view) {
Intent intent = new Intent
(Menu.this,about.class); startActivity(intent); }
public void tips (View view) {
Intent intent = new Intent
(Menu.this,Tips.class); startActivity(intent); }
public void cari (View view) {
Intent intent = new Intent
(Menu.this,cari.class); startActivity(intent); }
public void telepon (View view) {
Intent intent = new Intent
(Menu.this,telepon.class); startActivity(intent); }
public void forum (View view) {
Intent intent = new Intent
} }
Acitivity_tips.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:background="@drawable/bg3" android:layout_height="match_parent"
tools:context="com.example.suciprtw.kesehatananak.Tips">
<ScrollView
android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentStart="true" android:layout_alignParentTop="true">
<LinearLayout
android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/frameLayout"
android:orientation="vertical"
android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
<LinearLayout
android:gravity="center"
android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal">
<ImageView
android:id="@+id/imageView2" android:layout_width="150dp" android:layout_marginRight="20dp" android:layout_height="150dp"
android:layout_alignEnd="@+id/frameLayout" android:src="@drawable/dua"
android:onClick="sakit"/>
<ImageView
android:id="@+id/imageViewxx9" android:layout_width="150dp" android:layout_height="150dp"
android:layout_alignEnd="@+id/frameLayout"
android:layout_gravity="right" android:src="@drawable/satu" android:onClick="cerdas"/> </LinearLayout>
<LinearLayout
android:gravity="center"
android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:orientation="horizontal">
<ImageView
android:id="@+id/imageViedsaw2" android:layout_width="150dp" android:layout_marginRight="20dp" android:layout_height="150dp"
android:layout_alignEnd="@+id/frameLayout" android:src="@drawable/tiga"
android:onClick="makan"/>
<ImageView
android:id="@+id/imageView9" android:layout_width="150dp" android:layout_height="150dp"
android:layout_alignEnd="@+id/frameLayout" android:layout_gravity="right"
android:src="@drawable/empat" android:onClick="respon"
/>
</LinearLayout>
<LinearLayout
android:gravity="center"
android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:orientation="horizontal">
<ImageView
android:id="@+id/imageView200" android:layout_width="150dp" android:layout_marginRight="20dp" android:layout_height="150dp"
android:layout_alignEnd="@+id/frameLayout" android:src="@drawable/lima"
android:onClick="kerja"/>
<ImageView
android:id="@+id/imageVieddw9" android:layout_width="150dp" android:layout_height="150dp"
android:layout_alignEnd="@+id/frameLayout" android:layout_gravity="right"
/>
</LinearLayout>
<LinearLayout
android:gravity="center"
android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:orientation="horizontal">
<ImageView
android:id="@+id/imageVisaew2" android:layout_width="150dp" android:layout_marginRight="20dp" android:layout_height="150dp"
android:layout_alignEnd="@+id/frameLayout" android:src="@drawable/enam"
android:onClick="mitos"/>
<ImageView
android:id="@+id/imageVi" android:layout_width="150dp" android:layout_height="150dp"
android:layout_alignEnd="@+id/frameLayout" android:layout_gravity="right"
android:src="@drawable/tujuh" android:onClick="mitoss"
/> </LinearLayout>
<LinearLayout
android:layout_width="match_parent" android:layout_height="match_parent" > <ImageView
android:layout_width="match_parent" android:layout_height="70dp"
android:src="@drawable/ask" android:onClick="cariks"/> </LinearLayout>
</LinearLayout> </ScrollView>
</RelativeLayout>
Acivity_tips.java
public class Tips extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tips); }
public void sakit (View view) {
Intent intent = new Intent (Tips.this,sakit.class);
startActivity(intent); }
public void cerdas (View view) {
Intent intent = new Intent
(Tips.this,cerdas.class); startActivity(intent); }
public void makan (View view) {
Intent intent = new Intent
(Tips.this,makan.class); startActivity(intent); }
public void respon (View view) {
Intent intent = new Intent
(Tips.this,respon.class); startActivity(intent); }
public void kerja (View view) {
Intent intent = new Intent
(Tips.this,kerja.class); startActivity(intent); }
public void alasan (View view) {
Intent intent = new Intent
(Tips.this,alasan.class); startActivity(intent); }
public void mitos (View view) {
Intent intent = new Intent
(Tips.this,mitos.class); startActivity(intent); }
public void mitoss (View view) {
Intent intent = new Intent
(Tips.this,mitoss.class); startActivity(intent); }
public void cariks (View view) {
Intent intent = new Intent
(Tips.this,carikk.class); startActivity(intent); }
}
List_item.xml
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/icon" android:layout_width="55dp" android:layout_height="70dp" android:layout_margin="3dp"
android:layout_alignParentLeft="true" android:scaleType="fitXY"/>
<TextView
android:id="@+id/namabarang"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/icon" android:textStyle="bold"
android:layout_marginTop="5dp" android:textSize="18sp"/> <TextView
android:id="@+id/hargabarang"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/icon" android:layout_below="@id/namabarang" android:layout_marginBottom="5dp"/>
</RelativeLayout>
Cari.xml
LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.cari " android:orientation="vertical">
<EditText
android:id="@+id/kotakpencari" android:hint="Search.."
android:layout_width="match_parent" android:layout_height="70dp" />
<ListView
android:id="@android:id/list"
android:layout_width="match_parent" android:layout_height="wrap_content">
</ListView>
<ImageView
android:layout_width="match_parent"
android:layout_height="70dp" android:src="@drawable/ask" android:onClick="carik"/>
</LinearLayout>
Cari.java
public class cari extends ListActivity {
ArrayList<HashMap<String, Object>> searchResults;
ArrayList<HashMap<String, Object>>
originalValues; LayoutInflater inflater;
@Override
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.activity_cari);
final EditText kotakpencari=(EditText) findViewById(R.id.kotakpencari);
ListView playersListView=(ListView) findViewById(android.R.id.list);
inflater=(LayoutInflater)
getSystemService(Context.LAYOUT_INFLATER_SERVICE);
String namabarangs[]={"Alergi","Batuk","Benda
Tertanam","Cegukan","Demam","Diabetes","Diaper","Diare","Epilepsi"
,"Flu","Gumoh","Kejang Demam", "Krup","Lubang Gigi", "Luka Bakar","Luka Mata","Luka Mulut","Luka Potong","Luka
Telinga","Mata","Memar","Mimisan","Muntah",
"Pendarahan","Pilek","Sembelit","Sesak","Syok", "Tenggelam",
"Tersedak Anak","Tersedak Bayi"};
String hargabarangs[]={" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "};
Integer[] icons
={R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.dr awable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable
.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R .drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawa
ble.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg 3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.dr
awable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable.bg3,R.drawable .bg3};
HashMap<String , Object> temp;
int noOfPlayers=namabarangs.length;
for(int i=0;i<noOfPlayers;i++) {
temp=new HashMap<String, Object>();
temp.put("namabarang", namabarangs[i]); temp.put("hargabarang", hargabarangs[i]); temp.put("icon", icons[i]);
originalValues.add(temp); }
searchResults=new
ArrayList<HashMap<String,Object>>(originalValues);
final CustomAdapter adapter=new
CustomAdapter(this, R.layout.list_item,searchResults);
playersListView.setAdapter(adapter);
kotakpencari.addTextChangedListener(new TextWatcher() {
public void onTextChanged(CharSequence s, int
start, int before, int count) {
String
searchString=kotakpencari.getText().toString();
int textLength=searchString.length();
searchResults.clear();
for(int i=0;i<originalValues.size();i++) {
String
playerName=originalValues.get(i).get("namabarang").toString();
if(textLength<=playerName.length()){
if(searchString.equalsIgnoreCase(playerName.substring(0,textLength )))
searchResults.add(originalValues.get(i)); }}
adapter.notifyDataSetChanged(); }
public void beforeTextChanged(CharSequence s,
int start, int count,
int after) {}
public void afterTextChanged(Editable s) {} });
}
private class CustomAdapter extends
ArrayAdapter<HashMap<String, Object>> {
public CustomAdapter(Context context,
int textViewResourceId,
ArrayList<HashMap<String, Object>> Strings) {
super(context, textViewResourceId, Strings); }
private class ViewHolder {
ImageView icon;
TextView namabarang,hargabarang; }
ViewHolder viewHolder;
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if(convertView==null) {
convertView=inflater.inflate(R.layout.list_item,
null);
viewHolder=new ViewHolder();
viewHolder.icon=(ImageView) convertView.findViewById(R.id.icon);
viewHolder.namabarang=(TextView) convertView.findViewById(R.id.namabarang);
viewHolder.hargabarang=(TextView) convertView.findViewById(R.id.hargabarang);
convertView.setTag(viewHolder); }
else
viewHolder=(ViewHolder)
convertView.getTag(); int iconId=(Integer)
searchResults.get(position).get("icon");
viewHolder.icon.setImageDrawable(getResources().getDrawable(iconId ));
viewHolder.namabarang.setText(searchResults.get(position).get("nam abarang").toString());
rgabarang").toString());
return convertView; }
}
protected void onListItemClick(ListView l, View v,
int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id); String str =
searchResults.get(position).get("namabarang").toString();
try{
if(str=="Alergi"){ Intent intent = new
Intent (cari.this,alergi.class);
startActivity(intent); }
if(str=="Batuk"){ Intent intent = new
Intent (cari.this,batuk.class);
startActivity(intent); }
if(str=="Benda Tertanam") {
Intent intent = new Intent(cari.this, benda.class);
startActivity(intent); }
if(str=="Cegukan") {
Intent intent = new Intent(cari.this, cegukan.class);
startActivity(intent); }
if(str=="Demam"){ Intent intent = new
Intent (cari.this,demam.class);
startActivity(intent); }
if(str=="Diabetes") {
Intent intent = new Intent(cari.this, diabetes.class);
startActivity(intent); }
if(str=="Diaper"){ Intent intent = new
Intent (cari.this,diaper.class);
startActivity(intent); }
if(str=="Diare"){ Intent intent = new
Intent (cari.this,diare.class);
startActivity(intent); }
if(str=="Epilepsi") {
Intent intent = new Intent(cari.this, epilepsi.class);
startActivity(intent); }
if(str=="Flu"){
Intent intent = new Intent (cari.this,flu.class);
startActivity(intent); }
if(str=="Gumoh"){ Intent intent = new
Intent (cari.this,gumoh.class);
startActivity(intent); }
if(str=="Kejang Demam") {
Intent intent = new Intent(cari.this, kemam.class);
startActivity(intent); }
if(str=="Krup") {
Intent intent = new Intent(cari.this, krup.class); startActivity(intent); }
if(str=="Lubang Gigi"){
Intent intent = new Intent
(cari.this,lugi.class); startActivity(intent); }
if(str=="Luka Bakar") {
Intent intent = new Intent(cari.this, lukaba.class);
startActivity(intent); }
if(str=="Luka Mata") {
Intent intent = new Intent(cari.this, lukama.class);
startActivity(intent); }
if(str=="Luka Mulut") {
Intent intent = new Intent(cari.this, lukamu.class);
startActivity(intent); }
if(str=="Luka Potong") {
Intent intent = new Intent(cari.this, lukapo.class);
startActivity(intent); }
if(str=="Luka Telinga") {
Intent intent = new Intent(cari.this, lukata.class);
startActivity(intent); }
if(str=="Mata") {
Intent intent = new Intent(cari.this, mata.class); startActivity(intent); }
if(str=="Memar") {
Intent intent = new Intent(cari.this, memar.class);
startActivity(intent); }
if(str=="Mimisan") {
Intent intent = new Intent(cari.this, mimisan.class);
if(str=="Muntah"){ Intent intent = new
Intent (cari.this,muntah.class);
startActivity(intent); }
if(str=="Pendarahan") { Intent intent = new
Intent(cari.this,pendarahan.class); startActivity(intent); }
if(str=="Pilek"){ Intent intent = new
Intent (cari.this,pilek.class);
startActivity(intent); }
if(str=="Sembelit"){
Intent intent = new Intent (cari.this,sembelit.class);
startActivity(intent) ;
}
if(str=="Sesak"){ Intent intent = new
Intent (cari.this,sesak.class);
startActivity(intent); }
if(str=="Syok") {
Intent intent = new Intent(cari.this, syok.class); startActivity(intent); }
if(str=="Tenggelam") { Intent intent = new
Intent(cari.this, tenggelam.class); startActivity(intent); }
if(str=="Tersedak Anak") { Intent intent = new
Intent(cari.this, tersedakanak.class); startActivity(intent); }
if(str=="Tersedak Bayi") { Intent intent = new
Intent(cari.this, tersedakbayi.class); startActivity(intent); }
}
catch(Exception e){ e.printStackTrace(); }
}
public void carik (View view) {
Intent intent = new Intent
(cari.this,carikk.class); startActivity(intent); }
Forum.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.suciprtw.kesehatananak.forum">
<WebView
android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/wv">
</WebView>
</RelativeLayout>
Forum.java
public class forum extends AppCompatActivity { WebView wv ;
@Override
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.activity_forum);
wv = (WebView) findViewById(R.id.wv);
wv.getSettings().setJavaScriptEnabled(true);
wv.setFocusable(true);
wv.setFocusableInTouchMode(true);
wv.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH );
wv.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
wv.getSettings().setDomStorageEnabled(true);
wv.getSettings().setDatabaseEnabled(true);
wv.getSettings().setAppCacheEnabled(true);
wv.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
wv.loadUrl("http://forummomcares.blogspot.co.id/");
wv.setWebViewClient(new WebViewClient()); }
}
Telepom.xml
<RelativeLayout
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.telepon">
<ScrollView
android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentStart="true" android:layout_alignParentBottom="true">
<LinearLayout
android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"
>
<ImageView
android:layout_width="wrap_content" android:layout_height="122dp"
android:src="@drawable/rslogo" android:layout_marginBottom="0dp" android:layout_marginTop="20dp"/>
<ImageView
android:layout_width="300dp" android:layout_height="122dp" android:src="@drawable/rbali" android:onClick="bali"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rbdg" android:onClick="bandung"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rbtm" android:onClick="batam"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rjkt" android:onClick="jakarta"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rjgj" android:onClick="jogja"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rmlg" android:onClick="malang"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rmnd" android:onClick="manado"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rmdn" android:onClick="medan"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rpdg" android:onClick="padang"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rplg" android:onClick="palembang"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rpku" android:onClick="pekanbaru"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rsby" android:onClick="surabaya"/>
<ImageView
android:layout_width="350dp" android:layout_height="122dp" android:src="@drawable/rsmg" android:onClick="semarang"/>
<ImageView
android:layout_width="match_parent" android:layout_height="70dp"
android:src="@drawable/ask" android:onClick="carikz"/>
Telepon.java
public class telepon extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.activity_telepon);
}
public void bali (View view) {
Intent intent = new Intent
(telepon.this,rbali.class); startActivity(intent); }
public void bandung (View view) {
Intent intent = new Intent
(telepon.this,rbandung.class); startActivity(intent); }
public void batam (View view) {
Intent intent = new Intent
(telepon.this,rbatam.class); startActivity(intent); }
public void jakarta (View view) {
Intent intent = new Intent
(telepon.this,rjakarta.class); startActivity(intent); }
public void jogja (View view) {
Intent intent = new Intent
(telepon.this,rjogja.class); startActivity(intent); }
public void medan (View view) {
Intent intent = new Intent
(telepon.this,rmedan.class); startActivity(intent); }
public void malang (View view) {
Intent intent = new Intent
(telepon.this,rmalang.class); startActivity(intent); }
public void manado (View view)
{
Intent intent = new Intent
(telepon.this,rmanado.class); startActivity(intent); }
public void padang (View view) {
Intent intent = new Intent
(telepon.this,rpadang.class); startActivity(intent); }
public void pekanbaru (View view) {
Intent intent = new Intent (telepon.this,rpekanbaru.class);
startActivity(intent); }
public void palembang (View view) {
Intent intent = new Intent (telepon.this,rpalembang.class);
startActivity(intent); }
public void surabaya (View view) {
Intent intent = new Intent
(telepon.this,rsurabaya.class); startActivity(intent); }
public void semarang (View view) {
Intent intent = new Intent
(telepon.this,rsemarang.class); startActivity(intent); }
public void carikz (View view) {
Intent intent = new Intent
(telepon.this,carikk.class); startActivity(intent); }
}
About.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:background="@drawable/about"
tools:context="com.example.suciprtw.kesehatananak.about">
android:layout_width="match_parent" android:layout_height="match_parent">
</ScrollView>
</RelativeLayout>
Activity_alasan.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.alasan">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:layout_marginBottom="32dp">
<ImageView
android:id="@+id/imageViewwe2"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_alignEnd="@+id/frameLaqyout"
android:src="@drawable/delapan"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Bukan hanya konsumsi makanan yang
sehat saja yang bisa mendukung pertumbuhan seorang anak.
Melainkan, Mom juga harus selalu menjaga kesehatan pencernaan di
awal pertumbuhan si kecil. Sebab, pencernaan merupakan organ
yang sering terpapar oleh lingkungan luar tubuh dan merupakan
pintu masuk semua zat asing ke dalam tubuh."/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Untuk itu, pencernaan harus
berfungsi sebagai pembatas antara lingkungan di luar tubuh dan di
dalam tubuh. Itulah alasan mengapa pencernaan tidak hanya
berperan untuk memproses makanan, namun juga sangat berfungsi
sebagai organ penting dalam menciptakan dan mempertahankan
kesehatan tubuh secara keseluruhan."/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Mom, pencernaan yang sehat dapat
mendukung perut yang sehat sehingga dapat memberikan tujuh
kehebatan. Kehebatan tersebut di antaranya; pencernaan nyaman,
penyerapan nutrisi, pencernaan lancar, perlindungan alami, tumbuh
kembang optimal, cepat tanggap, serta menjaga suasana hati. "/>
<TextView
android:layout_width="match_parent"
android:text="Berdasarkan penelitian, sebanyak
satu dari dua orang anak memiliki paling tidak satu gangguan
pencernaan. Biasanya anak paling sering mengalami gumoh
sebanyak 71,5 persen, kembung 36 persen, serta konstipasi
sekitar 15 persen. Masalah tersebut terjadi dikarenakan para
ibu kurang memahami dengan tepat dampak gangguan pencernaan
ringan terhadap tumbuh kembang si kecil secara optimal"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Menenangkan orangtua dan
memberikan saran untuk memperbaiki asupan nutrisi merupakan hal
penting yang dapat dilakukan oleh tenaga kesehatan dan orang
terdekat. Ini untuk membantu mengurangi kemungkinan terjadinya
gejala gangguan pencernaan pada anak yang dapat berdampak
terhadap perut yang sehat, ujar Thomas Ludwig, Principle
Scientist Of Pediatric Gastroenterology, Danone Nutricia Resarch
dalam acara 'Dukung Pencernaan Sehat si Kecil Agar Bisa Hadirkan
Tujuh Kehebatan' di Jakarta."/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Sayangnya,berdasarkan survei
kebanyakan ibu melihat permasalahan pencernaan hal yang wajar
pada tumbuh kembang anak. Bahkan, banyak ibu melakukan langkah
tradisional yang telah turun temurun dilakukan dalam keluarga."/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Dr. Badriul Hegar, Ph.D., Sp.A (K)
menjelaskan, nutrisi awal kehidupan yang terbaik diberikan pada
anak ialah Air Susu Ibu (ASI), yang apabila terjadi masalah
pencernaan, ASI masih boleh diberikan pada anak. Selain itu,
penelitian menunjukkan ada beberapa nutrisi yang membantu
mengurangi gejala gangguan saluran pencernaan. Seperti penggunaan
susu formula yang dikentalkan untuk mengurangi gumoh pada anak
dan kandungan laktosa untuk mengurangi kembung"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Pemberian serat yang cukup juga
penting untuk mengurangi kemungkinan terjadi konstipasi
terutama pada dimulainya pemberian makanan padat hingga
peralihan menuju makanan keluarga. Perut yang sehat tidak hanya
bermanfaat untuk pencernaan, tapi dapat memberikan tujuh
kehebatan, ungkap Dr. Badriul."/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Mom, kepekaan orangtua memang sangat
penting untuk kesehatan pencernaan si kecil. Jadi, agar
pertumbuhannya berjalan dengan baik, usahakan untuk menjaga
pola makan anak demi menyehatkan sistem pencernaannya."/>
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/sumber1"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/sumber5"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
Acitivity_alergi.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.alergi">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="32dp">
<ImageView
android:id="@+id/imageView12"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/frameLafy9ut"
android:src="@drawable/alergi" />
<ImageView
android:layout_width="350dp"
android:layout_height="match_parent"
android:src="@drawable/alergi1"/>
<ImageView
android:layout_width="350dp"
android:layout_height="match_parent"
android:src="@drawable/alergi2"/>
<ImageView
android:layout_width="353dp"
android:layout_height="137dp"
android:src="@drawable/alergi3" />
</LinearLayout>
</ScrollView>
</RelativeLayout>
Activity_tersedakanak.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/tersedakanak"
tools:context="com.example.suciprtw.kesehatananak.tersedakanak">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"></ScrollView>
</RelativeLayout>
Activity_tersedakbayi.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/tersedakbayi"
tools:context="com.example.suciprtw.kesehatananak.tersedakbayi">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
</ScrollView>
</RelativeLayout>
Activity_tersedakbayi.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/tersedakbayi"
tools:context="com.example.suciprtw.kesehatananak.tersedakbayi">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
</ScrollView>
</RelativeLayout>
Activity_tenggelam.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.tenggelam">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="32dp">
<ImageView
android:id="@+id/imageView12"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/frameLafy9ut"
android:src="@drawable/tenggelam" />
<ImageView
android:layout_width="350dp"
android:layout_height="match_parent"
android:src="@drawable/tenggelam1"/>
<ImageView
android:layout_width="350dp"
android:layout_height="179dp"
android:src="@drawable/tenggelam2"/>
</LinearLayout>
</RelativeLayout>
Activity_syok.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/syok"
tools:context="com.example.suciprtw.kesehatananak.syok">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
</ScrollView>
</RelativeLayout>
Activity_sesak.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.sesak">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="32dp">
<ImageView
android:id="@+id/imageView12"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/frameLafyo9uqt"
android:src="@drawable/sesak" />
<ImageView
android:layout_width="350dp"
android:src="@drawable/sesak1"/>
<ImageView
android:layout_width="350dp"
android:layout_height="match_parent"
android:src="@drawable/sesak2"/>
<ImageView
android:layout_width="350dp"
android:layout_height="136dp"
android:src="@drawable/sesak3"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
Activity_sembelit.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.sembelit">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true">
<LinearLayout
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="32dp">
<ImageView
android:id="@+id/imageView12"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/frameLafyo9uqt"
android:src="@drawable/sembelit" />
<ImageView
android:layout_width="350dp"
android:layout_height="match_parent"
android:src="@drawable/sembelit1"/>
<ImageView
android:layout_height="match_parent"
android:src="@drawable/sembelit2"/>
<ImageView
android:layout_width="350dp"
android:layout_height="160dp"
android:src="@drawable/sembelit3"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
Activity_sembelit.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.sakit">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="32dp">
<ImageView
android:id="@+id/imageView12"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_alignEnd="@+id/frameLayout"
android:src="@drawable/dua" />
<TextView
android:id="@+id/textViewq"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="Anak merupakan sebuah anugerah yang
diberikan Tuhan untuk Kita, maka dari itu sebagai orang yang
bertanggung jawab untuk menjaga titipan tersebut tentu Kita harus
memperhatikan segi aspek kehidupan anak terutama masalah kesehatan.
Semua pasti sudah tahu kalau pada saat musim pancaroba datang, anak
Kita akan mudah tejangkit dengan penyakit, entah itu demam atau
sakit pasti rasanya kasihan melihat nya kan Bunda? Maka dari itu
kali ini Kami akan memberikan Tips bagaimana cara menjaga kesehatan
anak agar tidak muda sakit. Berikut tipsnya Bunda :" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="1. Perhatikan pola makan Anak
Agar anak tidak mudah sakit, Bunda harus memperhatikan pola makan
anak serta kebutuhan gizi lainnya seperti vitamin dan nutrisi.
yang pasti beri makan anak Bunda dengan teratur dan terjadwal,
dan tidak lupa juga untuk memberikan makanan 4 sehat 5 sempurna,
karena jika ini terpenuhi, anak Bunda akan cukup mendapatkan
asupan gizi sehingga imunitasnya pun semakin kuat, jadi anak
tidak akan mudah untuk sakit" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="2. Menjaga kebersihan anak
Kita semua pasti sudah tahu kalau kotoran dan kuman merupakan
sarang penyakit, bahkan bibit penyakit yang terdapat di dalam
kotoran akan mudah berkembang, untuk itu sebagai orang tua yang
sangat menyayangi anaknya, Bunda harus wajib menjaga kebersihan
sekitar serta makanan yang dimakan anak, dan hal yang perlu
diperhatikan juga adalah menjaga kebersihan gigi, kuku, dan
pakaian anak, karena dari itulah sumber terkecil kuman untuk
menyerang sistem imunitas atau kekebalan tubuh anak.
" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="3. Berikan Anak istirahat yang cukup
Istirahatkan anak yang cukup agar anak Bunda dapat meringankan
beban pikiran otaknya selama dia berada di sekolah atau dirumah,
selain itu beristirahat yang cukup juga dapat membantu tumbuh
kembang anak secara baik. berikan waktu istirahat yang cukup untuk
anak, usahakan berikan anak istirahat 8 jam sehari agar anak tetap
sehat dan tidak gampang sakit.
"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="4. Biasakan Makan Buah
Hampir semua jenis buah memiliki nilai gizi yang baik untuk anak.
Buah-buahan tersebut tidak harus mahal. Pisang, jeruk, apel sangat
baik untuk kesehatan anak. Bila anak kurang suka makan buah maka
hidangkan buah tersebut dalam bentuk jus. Bila tidak memiliki alat
untuk membuat jus maka parut saja buah tersebut dan ambil air
(sari) nya saja. Sebagai catatan buah yang mudah dikunyah seperti
pisan dan pepaya bisa diberikan secara langsung, sementara jeruk
sebaiknya diperas saja.
"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/sumber2"/>
</ScrollView>
</RelativeLayout>
Activity_pingsan.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/pingsan"
tools:context="com.example.suciprtw.kesehatananak.pingsan">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"></ScrollView>
</RelativeLayout>
Activity_pendarahan.xml
<?xml version="1.0"
encoding="utf-8"?> <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/pendaharan"
tools:context="com.example.suciprtw.kesehatananak.pendarahan">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"></ScrollView>
</RelativeLayout>
Activity_batul.xml
<?xml version="1.0"
encoding="utf-8"?> <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.batuk">
<ScrollView
android:layout_width="match_parent"
<LinearLayout
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="32dp">
<ImageView
android:id="@+id/imageView12"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/frameLaafyo9ut"
android:src="@drawable/batuk" />
<ImageView
android:layout_width="350dp"
android:layout_height="match_parent"
android:src="@drawable/batuk1"/>
<ImageView
android:layout_width="350dp"
android:layout_height="match_parent"
android:src="@drawable/batuk2"/>
<ImageView
android:layout_width="350dp"
android:layout_height="174dp"
android:src="@drawable/batuk3"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
Activity_benda.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/benda"
tools:context="com.example.suciprtw.kesehatananak.benda">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
</ScrollView>
Activity_carikk.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.suciprtw.kesehatananak.carikk">
<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/wvcarik">
</WebView>
</RelativeLayout>
Activity_carik.java
package com.example.suciprtw.kesehatananak;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class carikk extends AppCompatActivity {
WebView wvcarik;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_carikk);
wvcarik = (WebView) findViewById(R.id.wvcarik);
wvcarik.getSettings().setJavaScriptEnabled(true);
wvcarik.setFocusable(true);
wvcarik.setFocusableInTouchMode(true);
wvcarik.getSettings().setRenderPriority(WebSettings.RenderPriority
.HIGH);
wvcarik.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
wvcarik.getSettings().setDomStorageEnabled(true);
wvcarik.getSettings().setDatabaseEnabled(true);
wvcarik.getSettings().setAppCacheEnabled(true);
wvcarik.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
wvcarik.loadUrl("https://www.google.co.id/");
}
}
Activity_cegukan.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.cegukan">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="32dp">
<ImageView
android:id="@+id/imageView12"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/frameLafay9ut"
android:src="@drawable/cegukan" />
<ImageView
android:layout_width="350dp"
android:layout_height="match_parent"
android:src="@drawable/cegukan1"/>
<ImageView
android:layout_width="350dp"
android:layout_height="98dp"
android:src="@drawable/cegukan2"/>
</LinearLayout>
</ScrollView>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
tools:context="com.example.suciprtw.kesehatananak.cerdas">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:layout_marginBottom="32dp"
>
<ImageView
android:id="@+id/imageViewwe2"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_alignEnd="@+id/frameLayout"
android:src="@drawable/satu" />