Guest User

Untitled

a guest
Oct 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. import android.app.Activity;
  2. import android.os.Bundle;
  3.  
  4. public class AboutActivity extends Activity {
  5. @Override
  6. protected void onCreate(Bundle savedInstanceState) {
  7. super.onCreate(savedInstanceState);
  8. setContentView(R.layout.activity_about);
  9.  
  10. }
  11. }
  12.  
  13. <?xml version="1.0" encoding="utf-8"?>
  14. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:layout_width="match_parent" android:layout_height="match_parent">
  16.  
  17. <TextView
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:text="@string/about_text"
  21. android:id="@+id/about_content" />
  22. </ScrollView>
  23.  
  24. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  25. package="com.example.user.changeactivity" >
  26.  
  27. <application
  28. android:allowBackup="true"
  29. android:icon="@mipmap/ic_launcher"
  30. android:label="@string/app_name"
  31. android:theme="@style/AppTheme" >
  32. <activity
  33. android:name=".MainActivity"
  34. android:label="@string/app_name" >
  35. <intent-filter>
  36. <action android:name="android.intent.action.MAIN" />
  37. <category android:name="android.intent.category.LAUNCHER" />
  38. </intent-filter>
  39. </activity>
  40. <activity
  41. android:name="AboutActivity"
  42. android:label="@string/about_title">
  43. </activity>
  44. </application>
  45. </manifest>
  46.  
  47. <resources>
  48. <!-- Base application theme. -->
  49. <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
  50. <!-- Customize your theme here. -->
  51. </style>
  52. </resources>
  53.  
  54. public class AboutActivity extends AppCompatActivity {
  55. @Override
  56. protected void onCreate(Bundle savedInstanceState) {
  57. super.onCreate(savedInstanceState);
  58. setContentView(R.layout.activity_about);
  59.  
  60. }
  61. }
  62.  
  63. public class AboutActivity extends Activity {
  64. @Override
  65. protected void onCreate(Bundle savedInstanceState) {
  66. super.onCreate(savedInstanceState);
  67. setContentView(R.layout.activity_about);
  68.  
  69. }
  70. }
  71.  
  72. <resources>
  73. <!-- Base application theme. -->
  74. <style name="AppTheme" parent="Theme.Holo.Light.DarkActionBar">
  75. <!-- Customize your theme here. -->
  76. </style>
  77. </resources>
Add Comment
Please, Sign In to add comment