English 中文(简体)
是否有办法在每一个表格中提供植被?
原标题:Android is there a way to make a widget available in every tab (TabHost)?

我需要在塔霍斯特的每一条表格中提供“观点”。 然后,它应当涵盖一切,包括表格。 我尝试在TabHost和TabWidget进行即时调查,但每次我尝试利用发现的“GreId”作出归属决定时,我都会给我Null Pointer。 任何想法?

采用AP 8

最佳回答

The solution to this was put the widget in the main tab activity (TabActivity). Then, I created a method such as:

public ViewFlipper getWidget(){
   return this.mWidget;
}

然后,我得以从任何儿童活动中叫它。

我强烈建议任何读书的人都遵循docs和其他用户的建议:不使用 Tab。 还有一些比平权更好的解决办法。

问题回答

暂无回答




相关问题
How to start to create an application GUI using C#?

HI! I am new to C# and plan to use it for my application GUI. I am trying to make my GUI similar to SPSS:http://www.spss.com/images/08/statistics_screens/ez_rfm-big.jpg Is this easy in C#? Is there ...

Automatic height of edit box

My shoes application has three items stacked on top of each other (with a stack, of course), in order: A banner An edit box Two buttons in a flow What I want to do is have the banner stay at it s ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

UI And TcpClient Issue in vb.net

I m having some problems with a small ircbot i m writing. Basically I connect to the server using a tcpclient in a seperate class, which also runs on its own thread. I want to display the server text ...

UI Convention: Shortcut key for application exit? [closed]

Is there a convention for the shortcut keys for application exit? Some applications uses Alt+X some others use Ctrl+ X and Ctrl+Q. Applications like FF and IE doesnot assign a shortcut at all. So is ...

热门标签