Question: Continued App manifest for the following question https://www.chegg.com/homework-help/questions-and-answers/using-lists-popular-useful-android-apps-use-following-information-create-creatinglistview--q32963142 < manifest xmlns: android = http://schemas.android.com/apk/res/android package= com.example.creating_listview android :versionCode= 1 android :versionName= 1.0 > < uses-sdk
Continued
App manifest for the following question
https://www.chegg.com/homework-help/questions-and-answers/using-lists-popular-useful-android-apps-use-following-information-create-creatinglistview--q32963142
xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.creating_listview" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" />
<application android:label="@string/app_name" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> intent-filter> activity>
<activity android:name=".list" android:label="@string/app_name"> <intent-filter> <action android:name="com.example.creating_listview.list" /> <category android:name="android.intent.category.DEFAULT" /> intent-filter> activity>
<activity android:name=".FirstActivity" android:label="@string/app_name"> <intent-filter> <action android:name="com.example.creating_listview.FirstActivity" /> <category android:name="android.intent.category.DEFAULT" /> intent-filter> activity>
<activity android:name=".SecondActivity" android:label="@string/app_name"> <intent-filter> <action android:name="com.example.creating_listview.SecondActivity" /> <category android:name="android.intent.category.DEFAULT" /> intent-filter> activity> application> manifest>
XML CODES
MainActivity xml code
xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" >
<TextView android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="40dp" android:text="Simple List App" android:layout_marginTop="100dp" android:gravity="center_vertical|center_horizontal" android:textSize="30dp" />
<Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignLeft="@+id/textView1" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_marginBottom="88dp" android:text="Launch List View Activity" /> RelativeLayout>
FirstActivity xml code
xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="@android:color/background_light" tools:context=".FirstActivity" >
<TextView android:id="@+id/textView2" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="50dp" android:layout_marginRight="40dp" android:layout_marginTop="60dp" android:gravity="center" android:text="IT448" android:textSize="60dp"> TextView> RelativeLayout>
SecondActivity xml code
xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="@android:color/background_light" tools:context=".SecondActivity" >
<TextView android:id="@+id/textView3" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="50dp" android:layout_marginRight="40dp" android:layout_marginTop="60dp" android:gravity="center" android:text="SEU" android:textSize="60dp" /> RelativeLayout>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
