android-custom-view
Custom LinearLayout with inflate xml and child node
I have a custom navigation class where there are common views therefore i was thinking to put them into one layout which is to be inflated by the custom class and on the开发者_如何学编程 main layout i[详细]
2023-02-15 15:46 分类:问答Using a custom view from xml. View class cast error
When running my code i get a java.lang.Cl开发者_运维知识库assCastException: android.view.View when I initialise the XML layout for my view.[详细]
2023-02-13 12:25 分类:问答SurfaceView is clipping my Views
I\'ve programmed my own custom ViewGroup to be able to display several child views and also dynamically move them around and rotate them.[详细]
2023-02-13 06:47 分类:问答Update TextView in a custom View
I have a half screen custom view and a TextView in my activity. <com.sted.test.mainView android:id=\"@+id/mainView\" android:layout_width=\"fill_parent\"[详细]
2023-02-12 05:24 分类:问答CastClassException on Custom View
When I try to findViewById() on my custom view I keep getting a ClassCastException. I\'ve tried so many things that I\'m sure I\'ve botched the code now![详细]
2023-02-10 05:16 分类:问答Finishing of an activity
I have two types of views namely, Text View and Grid View, in an activity. When i\'m in Grid View and if i press \'back\' button i have to get the focus in text view and continue the functions so that[详细]
2023-02-09 22:17 分类:问答saving state on compound view widgets
Question How do you save view widget instance state when, by using XML-defined widget layouts, components of the individual widget instances all have the same ID?[详细]
2023-02-09 19:21 分类:问答Android: How to test a custom view?
There are several methods of unit testing in Android, what\'s the best one for testing a custom view I\'ve written?[详细]
2023-02-09 08:59 分类:问答Custom Views and attributes used across Android apps
I\'ve developed several Android apps now and have created a code base of classes that I frequently use in more than one app.This code is all in a subversion (svn) repository with each app in its own r[详细]
2023-02-04 14:40 分类:问答How to Inflate Extended LinearLayout from XML
Can anyone suggest a way to improve this API8 example? While they say the views could have been defined in XML, what they have in fact done is code them in java. I see why they wanted to. They have ad[详细]
2023-02-02 12:17 分类:问答
加载中,请稍侯......