More notes on layouts
satya - Friday, August 26, 2011 8:27:36 PM
android:visibility
This can be one of
visible: default invisible: not visible but space taken gone: no space is taken either
Use view.setVisibility(int) to control this programmatically
satya - Friday, August 26, 2011 8:31:05 PM
example
private void hideEditField()
{
TextView tv =
(TextView)this.findViewById(R.id.editText1);
tv.setVisibility(View.GONE);
}
satya - Thursday, September 08, 2011 10:24:02 AM
findviewbyid and nested components in an android layout?
findviewbyid and nested components in an android layout?
Search for: findviewbyid and nested components in an android layout?
satya - Thursday, September 08, 2011 10:26:54 AM
findviewbyid nested components null pointer
findviewbyid nested components null pointer
satya - Thursday, September 08, 2011 10:31:11 AM
onfinishinflate
onfinishinflate
satya - Thursday, September 08, 2011 10:42:25 AM
how to create a horizontal line in an Android layout?
how to create a horizontal line in an Android layout?
Search for: how to create a horizontal line in an Android layout?
satya - Thursday, September 08, 2011 10:48:09 AM
Sample of an image view
<ImageView android:src="@drawable/us2"
android:layout_width="50dp"
android:layout_height="50dp"/>
satya - Thursday, September 08, 2011 11:08:25 AM
Self inflicted eggregious fault
I was removing the child views programmatically and hence the view cannot be found. Haha...
satya - Thursday, September 08, 2011 12:11:49 PM
So there is no problem with locating nested components with findviewbyid
So there is no problem with locating nested components with findviewbyid
satya - Thursday, September 08, 2011 12:33:11 PM
how can i get rid of lingering keyboard in android?
how can i get rid of lingering keyboard in android?
Search for: how can i get rid of lingering keyboard in android?
satya - Thursday, September 08, 2011 12:43:30 PM
android turn off keyboard shift focus
android turn off keyboard shift focus
satya - Thursday, September 08, 2011 12:43:58 PM
here is a pertinent discussion on this
satya - Thursday, September 08, 2011 12:45:50 PM
setsoftinputmode
setsoftinputmode
satya - Thursday, September 08, 2011 12:50:04 PM
A link to the InputMethodManager
satya - Thursday, September 08, 2011 12:56:34 PM
The input type method of a text field
The input type method of a text field
please note this is a long document.
satya - Thursday, September 08, 2011 12:57:25 PM
You are probably better of reading the java equivalent
satya - Thursday, September 08, 2011 1:13:53 PM
I had to do this to get rid of the key board based on Meyers post above
private void hideKeyboard()
{
InputMethodManager imm =
(InputMethodManager)getSystemService
(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(
this.m_editText.getWindowToken(), 0);
}
satya - Friday, October 07, 2011 10:03:07 AM
android text style capitalize
android text style capitalize
satya - Friday, October 07, 2011 10:09:06 AM
a quick look seem to yield no declarative solution
a quick look seem to yield no declarative solution