- Forum posts: 17
Nov 24, 2014, 7:57:50 AM via Website
Nov 24, 2014 7:57:50 AM via Website
Hi friends,
Here is my java code of a swipe fragment and i have made a layout inside that fragment,
package info.androidhive.slidingmenu;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import info.androidhive.CrescentBuilders.R;
public class Ongoing extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View android = inflater.inflate(R.layout.ongoing_frag, container, false);
//((TextView)android.findViewById(R.id.textView)).setText("Ongoing Projects");
RelativeLayout ongoing=(RelativeLayout)android.findViewById(R.id.layoutongoing);
return android;
}
}
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.