Hello,
I wonder if anyone can help me to solve my issue. The problem - I
can't find the way to get ListView reference that is the part of
TabActivity.
I have 2 tabs - ListView, TextView. Theare no problem to access
TextView using the following code in TabActivity:
FrameLayout frame = tabHost.getTabContentView();
TextView text = (TextView)
((LinearLayout)frame.getChildAt(1)).getChildAt(0);
But frame.getChildAt(0) returns
com.android.internal.policy.impl.PhoneWindow$DecorView
And I actualy don't know the way how to cast this reference to the
object and to get its ListView child.
Could anybody help me, please?
Tab initialization code:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final TabHost tabHost = getTabHost();
tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator(
getString(R.string.tab_auth_list)).setContent(
new Intent(this, MainListActivity.class)));
LayoutInflater.from(this).inflate(R.layout.help,
tabHost.getTabContentView(), true);
tabHost.addTab(tabHost.newTabSpec("tab2").setIndicator(
getString(R.string.tab_help)).setContent(R.id.help_txt));
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en