Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Removing EditText Control from the View

Removing EditText Control from the View

Put your problem here if it does not fit any of the other categories.

Removing EditText Control from the View

Postby adnan1146 » Tue Jan 29, 2008 12:46 pm

Hi,

I have a function which creates EditText control on clicking the view i.e. onMotioEvent function of a view, EditText is created at a particular location.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. AbsoluteLayout layout = new AbsoluteLayout(Context);
  2.  
  3. layout.addView(textTool, new AbsoluteLayout.LayoutParams(
  4.  
  5.                          LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, x, y));
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


Now on certain event i want to remove this control, is there anyway to remove the EditText control from the view.
Helping code is much appreciated.
Adnan Rashid
End 2 End Solution Providers
http://www.e2esp.com
adnan1146
Freshman
Freshman
 
Posts: 4
Joined: Wed Jan 09, 2008 2:31 pm

Top

Postby plusminus » Tue Jan 29, 2008 5:10 pm

Hello adnan1146,

the first thing that came to my mind is (untested):
If you create the View in Java-Code save a reference to it and call myView.setVisible(false); (or sth. similar) later on.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby adnan1146 » Wed Jan 30, 2008 1:35 pm

Plusminus,

i really appreciate your efforts I got it solved by using
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. layout.removeAllViews()
Parsed in 0.011 seconds, using GeSHi 1.0.8.4
as in my case i only have 1 EditText in the view at a time .
Adnan Rashid
End 2 End Solution Providers
http://www.e2esp.com
adnan1146
Freshman
Freshman
 
Posts: 4
Joined: Wed Jan 09, 2008 2:31 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], MSNbot Media and 12 guests