ListView listView = (ListView) mRootLayout.findViewById(R.id.listView) įinal MyListAdapter adapter = new MyListAdapter(activity,R.layout.list_row,(ArrayList)myListManager. The following examples show how to use can vote up the ones you like or vote down the ones you dont like, and go to the original project or source file by following the links above each example. MyListManager myListManager = new MyListManager(mRootLayout,context) mRootLayout = (LinearLayout) om(context). I didnt need to use fragments or activities. Then create a regular java class that can be used as the event listeners for the actions within that layout. Ok the correct approach to this appears to be to inflate the layout with in the service class and add it to the windowmanager that way. is this even possible? How would I do this? ![]() WindowManager.addView( imageview, params) īut what I want is to have my own activity on this new window on top of the client apps window. ![]() ImageView imageview = new ImageView(this) WindowManager.LayoutParams params = new WindowManager.LayoutParams( ![]() I then try to add an image view by doing this windowManager = (WindowManager) getSystemService(WINDOW_SERVICE) After some reading up it seems that adding a new window is what I want to do so I added in this permission. I am writing an android library that needs to display an activity on top of the client app.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |