Back to project page ManipalNow-Android.
The source code is released under:
Apache License
If you think the Android project ManipalNow-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.nav; /*from ww w. j ava 2s . c o m*/ import android.graphics.Typeface; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; public class HelpFragment1 extends Fragment { public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { ViewGroup root = (ViewGroup) inflater.inflate(R.layout.helpfrag, null); ImageView iv1=(ImageView)root.findViewById(R.id.helpimg1); Typeface robotoLight = Typeface.createFromAsset(getActivity().getAssets(), "Roboto-Light.ttf"); TextView title=(TextView)root.findViewById(R.id.tv2); TextView desc=(TextView)root.findViewById(R.id.tv3); View v=new ImageView(getActivity()); LinearLayout lv1=(LinearLayout)root.findViewById(R.id.footer); View v2=new LinearLayout(getActivity()); lv1.setVisibility(v2.GONE); iv1.setImageDrawable(v.getResources().getDrawable(R.drawable.restaurant)); title.setText("Restaurants"); title.setTextColor(getResources().getColor(R.color.playblue)); desc.setText("Discover new places to eat around you"); desc.setTypeface(robotoLight); return root; } }