Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. Discogaphy.JAVA
  2.  
  3. package com.GaslightApp.tab;
  4.  
  5. import android.os.Bundle;
  6. import android.support.v4.app.Fragment;
  7. import android.view.LayoutInflater;
  8. import android.view.View;
  9. import android.view.ViewGroup;
  10. import android.widget.TextView;
  11.  
  12. import com.learn2crack.tab.R;
  13.  
  14. public class Biography extends Fragment {
  15. @Override
  16. public View onCreateView(LayoutInflater inflater, ViewGroup container,
  17. Bundle savedInstanceState) {
  18.  
  19. View android = inflater.inflate(R.layout.biography_frag, container, false);
  20. ((TextView)android.findViewById(R.id.textView)).setText("The Gaslight Anthem is a Punk Rock band formed in 2006 from the ruins of previous band This Charming man by Brian Fallon, Alex Rosamilia, Alex Levine And Benny Horrowitz. The band signed to XOXO records where they released their debut album Sink Or Swim. They then signed to SideOneDummy records where they released albums 2 And 3 The 59 Sound And American Slang. The band then signed to major label Mercury records where they are now after releasing 4th album Handwritten they are now in the studio with producer Mike Crossey recording their 5th album");
  21. return android;
  22.  
  23. }}
  24.  
  25.  
  26.  
  27. discography_frag.xml
  28.  
  29. package com.GaslightApp.tab;
  30.  
  31.  
  32. import android.os.Bundle;
  33. import android.support.v4.app.Fragment;
  34. import android.view.LayoutInflater;
  35. import android.view.View;
  36. import android.view.ViewGroup;
  37. import android.widget.TextView;
  38.  
  39. public class Discography extends Fragment {
  40.  
  41.  
  42. @Override
  43. public View onCreateView(LayoutInflater inflater, ViewGroup container,
  44. Bundle savedInstanceState) {
  45.  
  46. View Discography = inflater.inflate(R.layout.discography_frag, container, false);
  47. ((TextView)Discography.findViewById(R.id.textView)).setText("");
  48. return Discography;
  49. }}
  50.  
  51. <?xml version="1.0" encoding="utf-8"?>
  52. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  53. package="com.learn2crack.tab"
  54. android:versionCode="1"
  55. android:versionName="1.0" >
  56.  
  57. <uses-sdk
  58. android:minSdkVersion="8"
  59. android:targetSdkVersion="18" />
  60.  
  61. <application
  62. android:allowBackup="true"
  63. android:icon="@drawable/tga2"
  64. android:label="@string/app_name"
  65. android:theme="@style/AppTheme" >
  66. <activity
  67. android:name="com.GaslightApp.tab.MainActivity"
  68. android:label="@string/app_name" >
  69. <intent-filter>
  70. <action android:name="android.intent.action.MAIN" />
  71.  
  72. <category android:name="android.intent.category.LAUNCHER" />
  73. </intent-filter>
  74. </activity>
  75. </application>
  76.  
  77. </manifest>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement