android-controls

Android Gallery control order of touch events not in sync with getChildDrawingOrder

风格不统一 提交于 2019-12-10 11:25:09
问题 I am building a custom android control extending Gallery. I need an effect of views being overlaid so I am issuing setSpacing(-60); Once I give this, I have three icons in the Gallery, 1, 3 drawn first and then 2 which is the center one. The rules of the same is defined in getChildDrawingOrder and also have enabled it by setChildrenDrawingOrderEnabled(true); Now the issue is the views are getting drawn in the way I have defined the rules in ordering. But the events in the gallery control are

Resize android datepicker control

穿精又带淫゛_ 提交于 2019-12-07 01:45:15
问题 How can one resize the initial size of android datepicker control to be smaller or bigger. Is there only way to reimplement it? 回答1: I haven't been able to figure out a way to resize it, but have seen implementations where they utilize the DatePicker as a dialog. The date is rendered as TextView with an edit button, which launches the DatePicker dialog. It saves screen real estate when not editing... http://developer.android.com/resources/tutorials/views/hello-datepicker.html 回答2: To resize

Android Gallery control order of touch events not in sync with getChildDrawingOrder

陌路散爱 提交于 2019-12-06 09:25:17
I am building a custom android control extending Gallery. I need an effect of views being overlaid so I am issuing setSpacing(-60); Once I give this, I have three icons in the Gallery, 1, 3 drawn first and then 2 which is the center one. The rules of the same is defined in getChildDrawingOrder and also have enabled it by setChildrenDrawingOrderEnabled(true); Now the issue is the views are getting drawn in the way I have defined the rules in ordering. But the events in the gallery control are going to the original view order i.e. 1,2,3. To explain better, 1 is drawn, 3 is drawn and finally 2 is

Resize android datepicker control

岁酱吖の 提交于 2019-12-05 04:16:05
How can one resize the initial size of android datepicker control to be smaller or bigger. Is there only way to reimplement it? I haven't been able to figure out a way to resize it, but have seen implementations where they utilize the DatePicker as a dialog. The date is rendered as TextView with an edit button, which launches the DatePicker dialog. It saves screen real estate when not editing... http://developer.android.com/resources/tutorials/views/hello-datepicker.html To resize the datepicker go the xml and and add android:scaleX and android:scaleY to the appropriate size you need. Mar Bar