Hello Blake!
Well, the source of CustomListView class is quite simple for now:
package com.cghub.android.widgets;
>
> import android.content.Context;
> import android.util.AttributeSet;
> import android.util.Log;
> import android.view.View;
> import android.widget.ListView;
>
> public class CustomListView extends ListView {
>
> public CustomListView(Context context) {
> this(context, null);
> }
>
> public CustomListView(Context context, AttributeSet attrs) {
> this(context, attrs, 0);
> }
>
> public CustomListView(Context context, AttributeSet attrs, int
> defStyle) {
> super(context, attrs, defStyle);
> }
>
> protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
> super.onMeasure(widthMeasureSpec, heightMeasureSpec);
> }
>
> protected void layoutChildren() {
> super.layoutChildren();
> }
>
> View obtainView(int position, boolean[] isScrap) {
> Log.d("clv", getClass().getName());
>
> Exception e = new Exception();
> e.printStackTrace();
>
> return null;
> }
>
> protected void attachViewToParent(View child, int index, LayoutParams
> params) {
> Log.d("clv", "attach to parent");
> }
>
> protected boolean addViewInLayout(View child, int index, LayoutParams
> params, boolean preventRequestLayout) {
> Log.d("clv", "add in layout");
>
> return true;
> }
>
> protected boolean addViewInLayout(View child, int index, LayoutParams
> params) {
> Log.d("clv", "add in layout");
>
> return true;
> }
>
> }
>
четверг, 5 июля 2012 г., 18:35:43 UTC+3 пользователь G. Blake Meike написал:
>
>
>
> On Thursday, July 5, 2012 2:53:14 AM UTC-7, Alex Belyaev wrote:
>>
>>
>> Here are the sources of:
>>
>> ListView.java
>>
> ...
>
> Those are publicly available sources! The source that would be most
> helpful is the source for CustomListView...
>
> -blake
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en