¡@

Home 

2014/10/16 ¤W¤È 08:18:28

android Programming Glossary: mainscreen.this

Android, How to restart/refresh a fragment from FragmentActivty?

http://stackoverflow.com/questions/11578000/android-how-to-restart-refresh-a-fragment-from-fragmentactivty

Log.i TAG Try to create MainScreen... setContentView R.layout.activity_main onRefreshSelected OnRefreshSelected MainScreen.this @Override public boolean onCreateOptionsMenu Menu menu getMenuInflater .inflate R.menu.activity_main menu return true .. com.astro.recipe.activities.MainScreen and points to this line onRefreshSelected OnRefreshSelected MainScreen.this What is the best way to have access to a method of fragment from its host any suggestion would be appreciated. Thanks android.. Thanks android fragment share improve this question Executing this onRefreshSelected OnRefreshSelected MainScreen.this you are assigning your activity in onRefreshSelected field trying to cast it to your interface but your activity doesn't..

Overlay text over imageview in framelayout progrmatically - Android

http://stackoverflow.com/questions/7706913/overlay-text-over-imageview-in-framelayout-progrmatically-android

I always get the textview on the top left corner..can anyone help Here is my code FrameLayout frameLay new FrameLayout MainScreen.this LayoutParams layoutParamsFrame new LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT frameLay.setLayoutParams.. new LinearLayout.LayoutParams LayoutParams.FILL_PARENT LayoutParams.FILL_PARENT ImageView imageView new ImageView MainScreen.this imageView.setImageResource R.drawable.movie imageView.setLayoutParams layoutParamsImage TextView theText new TextView MainScreen.this.. imageView.setImageResource R.drawable.movie imageView.setLayoutParams layoutParamsImage TextView theText new TextView MainScreen.this theText.setText GOLDEN Gate theText.setTextColor Color.WHITE theText.setTypeface Typeface.DEFAULT_BOLD LayoutParams layoutParamsText..