android-custom-view
How to act on attributes for custom XML Views
I have created a view called RoundedImageView, the corners are rounded. I want an attribute called开发者_运维问答 cornerRadius that lets me (from the XML) specify the radius. How in the Java code wher[详细]
2023-03-19 17:29 分类:问答Get Notified after 1st rotation of Text in Text View(ellipsize="marquee") in Android
What I have: I have a TextView with Ellipsize = Marquee. The textview\'s focus is true, so that I don\'t have to focus it manually, to start the text rotation.[详细]
2023-03-19 12:05 分类:问答building an Android Status Bar like the New York Times app
The New York Times Android application has something like a notification bar at the top. I suspect this is an included layout with a text view. The thing is that they managed to drag that title down[详细]
2023-03-18 17:49 分类:问答How to remove the top and bottom space on textview of Android
When I include the below XML to layout file, I can see the below image. If you see it, you could 开发者_如何学Crealize that the TextView has top and bottom space.[详细]
2023-03-17 20:11 分类:问答Returning values from custom view
I have made a class ShowWeight extending LinearLayout, which has two custom Views as Inner classes. I am using this class by means of an XML tag in the main.xml :[详细]
2023-03-15 11:41 分类:问答finding a view's width - onSizeChanged called AFTER I need it
basically I\'m building a custom scroll bar that has a table layout inside it. I\'m dynamically inserting table rows into the table layout and then text views into those rows. I need to know how wide[详细]
2023-03-15 08:02 分类:问答How to customize the styling of the radio buttons in an AlertDialog.Builder?
I\'m wondering if there\'s a way to customize the look of the radio buttons in an AlertDialog.Builder?I have a selector XML file that works great for my custom radio button images, but I don\'t know h[详细]
2023-03-13 17:27 分类:问答View.onTouchEvent only registers ACTION_DOWN event
I\'m implementing a custom TextView and I want to do some action when the view is touched. I figured the onTouchEvent method would give me the full range of touches on the view without having to use s[详细]
2023-03-13 15:24 分类:问答Android more complex ListView tutorial [closed]
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.[详细]
2023-03-12 13:38 分类:问答how to add views inside a custom View?
I have a class like that, and there are about 10 of them public class DataItemPlai开发者_如何学PythonnView extends View{[详细]
2023-03-12 07:13 分类:问答
加载中,请稍侯......