How do you properly write and use a View subclass in Android?

Yes: your.package.name. MyWebView android:layout_with="blah Well, that works if the myWebView is a public class. If it's an inner one: view class="your.package.name.myWebView.

YourActivity$myWebView.

Yes: Well, that works if the myWebView is a public class. If it's an inner one.

Thanks for the update, I was just going to ask for that additional info. – PetrakovichJ Jan 19 at 2:18 I'm getting ClassNotFoundException. Are you sure that is the right order of things?

For example, my app is called SlingShot. The package is com.joe. Sling, the activity that holds the myWebView subclass is ShootActivity, so I should have ShootActivity$myWebView" – PetrakovichJ Jan 19 at 2:23 Paste what you did in the question... to see it clear.

– Cristian Jan 19 at 2:30 Unfortunately it is confidential, but what I have given you is exactly how I did it, just with names changed. – PetrakovichJ Jan 19 at 2:44 I think I have it working, but now I'm getting a ERROR/AndroidRuntime(7699): Caused by: java.lang. NoSuchMethodException: myWebView(Context,AttributeSet) – PetrakovichJ Jan 19 at 3:48.

That you can use to construct your UI. For more examples, see Common Layout Objects. If none of the prebuilt widgets or layouts meets your needs, you can create your own View subclass.

The widget or layout and override its methods. Of a screen element.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions