SlideShare a Scribd company logo
1 of 9
Download to read offline
Answer:
1)Responsive design is the idea where all the developed pages are embedded with model,view
and controller in the same page of the design so that it is easy for the user to transfer the data
from model to view and view to model.This also reduces the burden on the server when the user
makes any request all the form elements will not reach the server in responsive design but makes
the specific action element to reach the server and gives the output to the user.
2)Application templates in android involves both the layouts and UI components which are used
to build the design pages of the front end of the page.The common layouts which are used are
Gird Layout,Flow Layout,Relative Layout and UI components such as
listview,gridview,spinner,togglebuttons,radiobuttons,progressbar etc are used in any of the front
end design of the android for application to develop.We use XML for the design of the front end
in design in the application.
Android Application :
Note : Deploy the below files in Eclipse Id or Android Studio and run
MainActivity.java
package com.example.listviewcustom;
import java.io.File;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
/*
String path="/storage/sdcard0/sample_images/";
File f=new File(path);
if(f.exists()){
String[] files=f.list();
ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(),
android.R.layout.simple_spinner_dropdown_item,files );
*/
ListView lView=(ListView)findViewById(R.id.listView1);
lView.setAdapter(new MyAdapter(this));
/*
}else{
Toast.makeText(getApplicationContext(), "Path is not available ....",2000).show();
}
*/
}
public void reload(){
ListView lView=(ListView)findViewById(R.id.listView1);
lView.setAdapter(new MyAdapter(this));
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
MyAdapter.java
package com.example.listviewcustom;
import java.io.File;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView.FindListener;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class MyAdapter extends BaseAdapter{
//String path="/storage/sdcard0/sample_images/";
String path="/mnt/sdcard/sample_images/";
File f=new File(path);
String[] files=f.list();
MainActivity activity;
public MyAdapter(MainActivity mActivity){
this.activity=mActivity;
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return files.length;
}
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public View getView(int position, View v, ViewGroup arg2) {
LayoutInflater inflater=LayoutInflater.from(activity);
v=inflater.inflate(R.layout.individual_view, null);
ImageView iv=(ImageView)v.findViewById(R.id.imageView1);
TextView tv1=(TextView)v.findViewById(R.id.textView1);
TextView tv2=(TextView)v.findViewById(R.id.textView2);
ImageView iv2=(ImageView)v.findViewById(R.id.imageView2);
final File f=new File(path+files[position]);
iv.setImageURI(Uri.fromFile(f));
tv1.setText(files[position]);
tv2.setText(f.length()/1024 + "kb");
iv2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
f.delete();
activity.reload();
}
});
return v;
}
}
AndroidManifest.xml
activity_main.xml
individual_view.xml
Solution
Answer:
1)Responsive design is the idea where all the developed pages are embedded with model,view
and controller in the same page of the design so that it is easy for the user to transfer the data
from model to view and view to model.This also reduces the burden on the server when the user
makes any request all the form elements will not reach the server in responsive design but makes
the specific action element to reach the server and gives the output to the user.
2)Application templates in android involves both the layouts and UI components which are used
to build the design pages of the front end of the page.The common layouts which are used are
Gird Layout,Flow Layout,Relative Layout and UI components such as
listview,gridview,spinner,togglebuttons,radiobuttons,progressbar etc are used in any of the front
end design of the android for application to develop.We use XML for the design of the front end
in design in the application.
Android Application :
Note : Deploy the below files in Eclipse Id or Android Studio and run
MainActivity.java
package com.example.listviewcustom;
import java.io.File;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
/*
String path="/storage/sdcard0/sample_images/";
File f=new File(path);
if(f.exists()){
String[] files=f.list();
ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(),
android.R.layout.simple_spinner_dropdown_item,files );
*/
ListView lView=(ListView)findViewById(R.id.listView1);
lView.setAdapter(new MyAdapter(this));
/*
}else{
Toast.makeText(getApplicationContext(), "Path is not available ....",2000).show();
}
*/
}
public void reload(){
ListView lView=(ListView)findViewById(R.id.listView1);
lView.setAdapter(new MyAdapter(this));
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
MyAdapter.java
package com.example.listviewcustom;
import java.io.File;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView.FindListener;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class MyAdapter extends BaseAdapter{
//String path="/storage/sdcard0/sample_images/";
String path="/mnt/sdcard/sample_images/";
File f=new File(path);
String[] files=f.list();
MainActivity activity;
public MyAdapter(MainActivity mActivity){
this.activity=mActivity;
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return files.length;
}
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public View getView(int position, View v, ViewGroup arg2) {
LayoutInflater inflater=LayoutInflater.from(activity);
v=inflater.inflate(R.layout.individual_view, null);
ImageView iv=(ImageView)v.findViewById(R.id.imageView1);
TextView tv1=(TextView)v.findViewById(R.id.textView1);
TextView tv2=(TextView)v.findViewById(R.id.textView2);
ImageView iv2=(ImageView)v.findViewById(R.id.imageView2);
final File f=new File(path+files[position]);
iv.setImageURI(Uri.fromFile(f));
tv1.setText(files[position]);
tv2.setText(f.length()/1024 + "kb");
iv2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
f.delete();
activity.reload();
}
});
return v;
}
}
AndroidManifest.xml
activity_main.xml
individual_view.xml

More Related Content

Similar to Answer1)Responsive design is the idea where all the developed pag.pdf

Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesAhsanul Karim
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesAhsanul Karim
 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android ProgrammingRaveendra R
 
Native Android Development Practices
Native Android Development PracticesNative Android Development Practices
Native Android Development PracticesRoy Clarkson
 
07_UIAndroid.pdf
07_UIAndroid.pdf07_UIAndroid.pdf
07_UIAndroid.pdfImranS18
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android ApplicationArcadian Learning
 
Unit5 Mobile Application Development.doc
Unit5 Mobile Application Development.docUnit5 Mobile Application Development.doc
Unit5 Mobile Application Development.docKNANTHINIMCA
 
Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)Fafadia Tech
 
Android Application Development - Level 1
Android Application Development - Level 1Android Application Development - Level 1
Android Application Development - Level 1Isham Rashik
 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android AppsGil Irizarry
 
Synapseindia android apps introduction hello world
Synapseindia android apps introduction hello worldSynapseindia android apps introduction hello world
Synapseindia android apps introduction hello worldTarunsingh198
 
Android activity, service, and broadcast recievers
Android activity, service, and broadcast recieversAndroid activity, service, and broadcast recievers
Android activity, service, and broadcast recieversUtkarsh Mankad
 
android training_material ravy ramio
android training_material ravy ramioandroid training_material ravy ramio
android training_material ravy ramioslesulvy
 
Android Tutorials : Basic widgets
Android Tutorials : Basic widgetsAndroid Tutorials : Basic widgets
Android Tutorials : Basic widgetsPrajyot Mainkar
 
Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)Kavya Barnadhya Hazarika
 
Android Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_androidAndroid Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_androidDenis Minja
 

Similar to Answer1)Responsive design is the idea where all the developed pag.pdf (20)

Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming
 
Native Android Development Practices
Native Android Development PracticesNative Android Development Practices
Native Android Development Practices
 
07_UIAndroid.pdf
07_UIAndroid.pdf07_UIAndroid.pdf
07_UIAndroid.pdf
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 
Unit5 Mobile Application Development.doc
Unit5 Mobile Application Development.docUnit5 Mobile Application Development.doc
Unit5 Mobile Application Development.doc
 
Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)
 
Android Application Development - Level 1
Android Application Development - Level 1Android Application Development - Level 1
Android Application Development - Level 1
 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android Apps
 
Synapseindia android apps introduction hello world
Synapseindia android apps introduction hello worldSynapseindia android apps introduction hello world
Synapseindia android apps introduction hello world
 
Android activity, service, and broadcast recievers
Android activity, service, and broadcast recieversAndroid activity, service, and broadcast recievers
Android activity, service, and broadcast recievers
 
Compose In Practice
Compose In PracticeCompose In Practice
Compose In Practice
 
android training_material ravy ramio
android training_material ravy ramioandroid training_material ravy ramio
android training_material ravy ramio
 
Android Tutorials : Basic widgets
Android Tutorials : Basic widgetsAndroid Tutorials : Basic widgets
Android Tutorials : Basic widgets
 
Android Lab
Android LabAndroid Lab
Android Lab
 
Android
AndroidAndroid
Android
 
Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)
 
Android Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_androidAndroid Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_android
 
Geekcamp Android
Geekcamp AndroidGeekcamp Android
Geekcamp Android
 

More from ankitcomputer11

#includestdio.h#includestdlib.h structure of a stack node .pdf
#includestdio.h#includestdlib.h structure of a stack node .pdf#includestdio.h#includestdlib.h structure of a stack node .pdf
#includestdio.h#includestdlib.h structure of a stack node .pdfankitcomputer11
 
Solution Since we know that the subshell with .pdf
                     Solution Since we know that the subshell with  .pdf                     Solution Since we know that the subshell with  .pdf
Solution Since we know that the subshell with .pdfankitcomputer11
 
let V be nonempty open subset of X then V inters.pdf
                     let V be nonempty open subset of X  then V inters.pdf                     let V be nonempty open subset of X  then V inters.pdf
let V be nonempty open subset of X then V inters.pdfankitcomputer11
 
Look at the periodic table. When Be loses its f.pdf
                     Look at the periodic table. When Be loses its f.pdf                     Look at the periodic table. When Be loses its f.pdf
Look at the periodic table. When Be loses its f.pdfankitcomputer11
 
taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
                     taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf                     taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdfankitcomputer11
 
the salt is neutral in charge. OS of Ca is +2, so.pdf
                     the salt is neutral in charge. OS of Ca is +2, so.pdf                     the salt is neutral in charge. OS of Ca is +2, so.pdf
the salt is neutral in charge. OS of Ca is +2, so.pdfankitcomputer11
 
nonmetals, metals, metalloids, and gases. They ar.pdf
                     nonmetals, metals, metalloids, and gases. They ar.pdf                     nonmetals, metals, metalloids, and gases. They ar.pdf
nonmetals, metals, metalloids, and gases. They ar.pdfankitcomputer11
 
x= 2 (or) -2Solutionx= 2 (or) -2.pdf
x= 2 (or) -2Solutionx= 2 (or) -2.pdfx= 2 (or) -2Solutionx= 2 (or) -2.pdf
x= 2 (or) -2Solutionx= 2 (or) -2.pdfankitcomputer11
 
there are two types that are presented as ch3 and ch...Solution.pdf
there are two types that are presented as ch3 and ch...Solution.pdfthere are two types that are presented as ch3 and ch...Solution.pdf
there are two types that are presented as ch3 and ch...Solution.pdfankitcomputer11
 
In thermodynamics, a state function, function of .pdf
                     In thermodynamics, a state function, function of .pdf                     In thermodynamics, a state function, function of .pdf
In thermodynamics, a state function, function of .pdfankitcomputer11
 
The process of protein synthesis and secretion starts from the endop.pdf
The process of protein synthesis and secretion starts from the endop.pdfThe process of protein synthesis and secretion starts from the endop.pdf
The process of protein synthesis and secretion starts from the endop.pdfankitcomputer11
 
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdfThe IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdfankitcomputer11
 
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdfSolution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdfankitcomputer11
 
NOBecause here we are not working on past experience of data.S.pdf
NOBecause here we are not working on past experience of data.S.pdfNOBecause here we are not working on past experience of data.S.pdf
NOBecause here we are not working on past experience of data.S.pdfankitcomputer11
 
Move decimal to behind the first number4.71Round4.714.71 X 1.pdf
Move decimal to behind the first number4.71Round4.714.71 X 1.pdfMove decimal to behind the first number4.71Round4.714.71 X 1.pdf
Move decimal to behind the first number4.71Round4.714.71 X 1.pdfankitcomputer11
 
Lewis acid is the electron pair acceptorLewis base is the electron.pdf
Lewis acid is the electron pair acceptorLewis base is the electron.pdfLewis acid is the electron pair acceptorLewis base is the electron.pdf
Lewis acid is the electron pair acceptorLewis base is the electron.pdfankitcomputer11
 
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdffirst treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdfankitcomputer11
 
An azeotrope is a mixture of two or more liquids .pdf
                     An azeotrope is a mixture of two or more liquids .pdf                     An azeotrope is a mixture of two or more liquids .pdf
An azeotrope is a mixture of two or more liquids .pdfankitcomputer11
 
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdfHere we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdfankitcomputer11
 

More from ankitcomputer11 (20)

#includestdio.h#includestdlib.h structure of a stack node .pdf
#includestdio.h#includestdlib.h structure of a stack node .pdf#includestdio.h#includestdlib.h structure of a stack node .pdf
#includestdio.h#includestdlib.h structure of a stack node .pdf
 
Solution Since we know that the subshell with .pdf
                     Solution Since we know that the subshell with  .pdf                     Solution Since we know that the subshell with  .pdf
Solution Since we know that the subshell with .pdf
 
let V be nonempty open subset of X then V inters.pdf
                     let V be nonempty open subset of X  then V inters.pdf                     let V be nonempty open subset of X  then V inters.pdf
let V be nonempty open subset of X then V inters.pdf
 
Look at the periodic table. When Be loses its f.pdf
                     Look at the periodic table. When Be loses its f.pdf                     Look at the periodic table. When Be loses its f.pdf
Look at the periodic table. When Be loses its f.pdf
 
taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
                     taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf                     taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
 
the salt is neutral in charge. OS of Ca is +2, so.pdf
                     the salt is neutral in charge. OS of Ca is +2, so.pdf                     the salt is neutral in charge. OS of Ca is +2, so.pdf
the salt is neutral in charge. OS of Ca is +2, so.pdf
 
nonmetals, metals, metalloids, and gases. They ar.pdf
                     nonmetals, metals, metalloids, and gases. They ar.pdf                     nonmetals, metals, metalloids, and gases. They ar.pdf
nonmetals, metals, metalloids, and gases. They ar.pdf
 
x= 2 (or) -2Solutionx= 2 (or) -2.pdf
x= 2 (or) -2Solutionx= 2 (or) -2.pdfx= 2 (or) -2Solutionx= 2 (or) -2.pdf
x= 2 (or) -2Solutionx= 2 (or) -2.pdf
 
there are two types that are presented as ch3 and ch...Solution.pdf
there are two types that are presented as ch3 and ch...Solution.pdfthere are two types that are presented as ch3 and ch...Solution.pdf
there are two types that are presented as ch3 and ch...Solution.pdf
 
In thermodynamics, a state function, function of .pdf
                     In thermodynamics, a state function, function of .pdf                     In thermodynamics, a state function, function of .pdf
In thermodynamics, a state function, function of .pdf
 
The process of protein synthesis and secretion starts from the endop.pdf
The process of protein synthesis and secretion starts from the endop.pdfThe process of protein synthesis and secretion starts from the endop.pdf
The process of protein synthesis and secretion starts from the endop.pdf
 
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdfThe IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
 
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdfSolution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
 
NOBecause here we are not working on past experience of data.S.pdf
NOBecause here we are not working on past experience of data.S.pdfNOBecause here we are not working on past experience of data.S.pdf
NOBecause here we are not working on past experience of data.S.pdf
 
Move decimal to behind the first number4.71Round4.714.71 X 1.pdf
Move decimal to behind the first number4.71Round4.714.71 X 1.pdfMove decimal to behind the first number4.71Round4.714.71 X 1.pdf
Move decimal to behind the first number4.71Round4.714.71 X 1.pdf
 
Lewis acid is the electron pair acceptorLewis base is the electron.pdf
Lewis acid is the electron pair acceptorLewis base is the electron.pdfLewis acid is the electron pair acceptorLewis base is the electron.pdf
Lewis acid is the electron pair acceptorLewis base is the electron.pdf
 
CsSolutionCs.pdf
CsSolutionCs.pdfCsSolutionCs.pdf
CsSolutionCs.pdf
 
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdffirst treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
 
An azeotrope is a mixture of two or more liquids .pdf
                     An azeotrope is a mixture of two or more liquids .pdf                     An azeotrope is a mixture of two or more liquids .pdf
An azeotrope is a mixture of two or more liquids .pdf
 
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdfHere we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
 

Recently uploaded

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Recently uploaded (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

Answer1)Responsive design is the idea where all the developed pag.pdf

  • 1. Answer: 1)Responsive design is the idea where all the developed pages are embedded with model,view and controller in the same page of the design so that it is easy for the user to transfer the data from model to view and view to model.This also reduces the burden on the server when the user makes any request all the form elements will not reach the server in responsive design but makes the specific action element to reach the server and gives the output to the user. 2)Application templates in android involves both the layouts and UI components which are used to build the design pages of the front end of the page.The common layouts which are used are Gird Layout,Flow Layout,Relative Layout and UI components such as listview,gridview,spinner,togglebuttons,radiobuttons,progressbar etc are used in any of the front end design of the android for application to develop.We use XML for the design of the front end in design in the application. Android Application : Note : Deploy the below files in Eclipse Id or Android Studio and run MainActivity.java package com.example.listviewcustom; import java.io.File; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); /* String path="/storage/sdcard0/sample_images/"; File f=new File(path); if(f.exists()){
  • 2. String[] files=f.list(); ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(), android.R.layout.simple_spinner_dropdown_item,files ); */ ListView lView=(ListView)findViewById(R.id.listView1); lView.setAdapter(new MyAdapter(this)); /* }else{ Toast.makeText(getApplicationContext(), "Path is not available ....",2000).show(); } */ } public void reload(){ ListView lView=(ListView)findViewById(R.id.listView1); lView.setAdapter(new MyAdapter(this)); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.activity_main, menu); return true; } } MyAdapter.java
  • 3. package com.example.listviewcustom; import java.io.File; import android.net.Uri; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebView.FindListener; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; public class MyAdapter extends BaseAdapter{ //String path="/storage/sdcard0/sample_images/"; String path="/mnt/sdcard/sample_images/"; File f=new File(path); String[] files=f.list(); MainActivity activity; public MyAdapter(MainActivity mActivity){ this.activity=mActivity; } @Override public int getCount() { // TODO Auto-generated method stub return files.length; } @Override public Object getItem(int position) { // TODO Auto-generated method stub return position; }
  • 4. @Override public long getItemId(int position) { // TODO Auto-generated method stub return position; } @Override public View getView(int position, View v, ViewGroup arg2) { LayoutInflater inflater=LayoutInflater.from(activity); v=inflater.inflate(R.layout.individual_view, null); ImageView iv=(ImageView)v.findViewById(R.id.imageView1); TextView tv1=(TextView)v.findViewById(R.id.textView1); TextView tv2=(TextView)v.findViewById(R.id.textView2); ImageView iv2=(ImageView)v.findViewById(R.id.imageView2); final File f=new File(path+files[position]); iv.setImageURI(Uri.fromFile(f)); tv1.setText(files[position]); tv2.setText(f.length()/1024 + "kb"); iv2.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { f.delete();
  • 5. activity.reload(); } }); return v; } } AndroidManifest.xml activity_main.xml individual_view.xml Solution Answer: 1)Responsive design is the idea where all the developed pages are embedded with model,view and controller in the same page of the design so that it is easy for the user to transfer the data from model to view and view to model.This also reduces the burden on the server when the user makes any request all the form elements will not reach the server in responsive design but makes the specific action element to reach the server and gives the output to the user. 2)Application templates in android involves both the layouts and UI components which are used to build the design pages of the front end of the page.The common layouts which are used are Gird Layout,Flow Layout,Relative Layout and UI components such as listview,gridview,spinner,togglebuttons,radiobuttons,progressbar etc are used in any of the front end design of the android for application to develop.We use XML for the design of the front end in design in the application. Android Application : Note : Deploy the below files in Eclipse Id or Android Studio and run MainActivity.java package com.example.listviewcustom; import java.io.File; import android.app.Activity; import android.os.Bundle; import android.view.Menu;
  • 6. import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); /* String path="/storage/sdcard0/sample_images/"; File f=new File(path); if(f.exists()){ String[] files=f.list(); ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(), android.R.layout.simple_spinner_dropdown_item,files ); */ ListView lView=(ListView)findViewById(R.id.listView1); lView.setAdapter(new MyAdapter(this)); /* }else{ Toast.makeText(getApplicationContext(), "Path is not available ....",2000).show(); } */ } public void reload(){
  • 7. ListView lView=(ListView)findViewById(R.id.listView1); lView.setAdapter(new MyAdapter(this)); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.activity_main, menu); return true; } } MyAdapter.java package com.example.listviewcustom; import java.io.File; import android.net.Uri; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebView.FindListener; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; public class MyAdapter extends BaseAdapter{ //String path="/storage/sdcard0/sample_images/"; String path="/mnt/sdcard/sample_images/"; File f=new File(path); String[] files=f.list(); MainActivity activity;
  • 8. public MyAdapter(MainActivity mActivity){ this.activity=mActivity; } @Override public int getCount() { // TODO Auto-generated method stub return files.length; } @Override public Object getItem(int position) { // TODO Auto-generated method stub return position; } @Override public long getItemId(int position) { // TODO Auto-generated method stub return position; } @Override public View getView(int position, View v, ViewGroup arg2) { LayoutInflater inflater=LayoutInflater.from(activity); v=inflater.inflate(R.layout.individual_view, null); ImageView iv=(ImageView)v.findViewById(R.id.imageView1); TextView tv1=(TextView)v.findViewById(R.id.textView1); TextView tv2=(TextView)v.findViewById(R.id.textView2); ImageView iv2=(ImageView)v.findViewById(R.id.imageView2);
  • 9. final File f=new File(path+files[position]); iv.setImageURI(Uri.fromFile(f)); tv1.setText(files[position]); tv2.setText(f.length()/1024 + "kb"); iv2.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { f.delete(); activity.reload(); } }); return v; } } AndroidManifest.xml activity_main.xml individual_view.xml