[Android Software/Hacking General [Developers Only]] hansip87:
For Samsung Galaxy phone (sample taken from Captivate by CarpeNoctem here, hopefully applicable to all Samsung phone), the procedure is a bit different from Sony Ericsson one, but the logic is still the same. I have created a .java reconstruction from the .smali for the MakeNotificationView.

The Code logic is like this:

method makeNotificationView(StatusBarNotification p1, ViewGroup p2){
v12 = 1;	//constant for value true
v11 = 0;
v10 = 0;	//Constant for value false

v2 = p1.notification;
v8 = v2.contentView;

if(v8 == 0){	//If no Content to be Viewed
return 0;
}
else{
v1 = (LayoutInflater)this.getSystemService("layout_inflater");	//Create Layoutnflater originated from System
v9 = (View)v1.inflate(7f030008,p2,v11);	//Pull XML(id:7f030008) and translate to Layout
v7 = (ViewGroup)v9.findViewById(7f0a002d);	//Find Child View(id:7f0a002d) and try to cast to ViewGroup
v7.setDescendantFocusability(FOCUS_BLOCK_DESCENDANTS);	//FOCUS_BLOCK_DESCENDANTS = 0x6 in the code

v7.setOnFocusChangeListener(v7.mFocusChangeListener);	//Attach onFocusChangeListener
v3 = v2.contentIntent;	//Get Content Intent to be processed as Click Event

if(v3 != 0){	//If v3 is something
v7.setOnClickListener(new StatusBarService$Launcher(this,v3,p1.pkg,p1.tag,p1.id));	//Assign Click Listener based on contentIntent
}

try{
v2 = v8.apply(this,v7);	//v2 is a new children View generated by v7
v1 = v10;

v1 = this.getResources();
this->updateThemeForNotificationView(v1,v2);
v7.addView(v2);
v9->setDrawingCacheEnabled(v12);

v1 = 3;
v1 = new View[3];
v1[0] = v9;
v1[1] = v7;
v1[2] = v2;
return v1;
}catch(RunTimeException e){	//If Error, Create Log and return 0;
v1 = e;
v2 = 0;

// this is :cond_2 in code
v2 = new StringBuilder();
v2.append(v3);
v2.append('/0x');
v3 = Integer.toHexString(p1.id);
v2 = v2.append('v3');

v3 = "StatusBarService";
v4 = new StringBuilder();
v5 = "couldn\'t inflate view for notification ";
v4.append(v5);
v2 = v4.append(v2);
Slog.e(v3,v2,v1);
return 0;
}
}
}

So if in My Sony Ericsson code:

1. the Notification View Object that will be modded is stored as v18 (later changed as v0), in Samsung it's stored as v9.

2. The Notification object retrieved from inside StatusBarNotification parameter (p1) stored as v16, in Samsung it is stored as v2

And from what i see, you may have this logic added (the bold one)

v9 = (View)v1.inflate(7f030008,p2,v11);	//Pull XML(id:7f030008) and translate to Layout
[B]if((v4 && 2) && (v4 && 20)){
v4 = new StatusBarService$7(this,p1);
v9.setOnSwipeCallback(v4);
} [/B]
v7 = (ViewGroup)v9.findViewById(7f0a002d);	//Find Child View(id:7f0a002d) and try to cast to ViewGroup

or in the .smali language from the link given above (for Captivate Only! please adapt to yours if different):

.line 624
const v3, 0x7f030008

invoke-virtual {v1, v3, p2, v11}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

move-result-object v9

.line 627
const v1, 0x7f0a002d

invoke-virtual {v9, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-object v0, v1

check-cast v0, Landroid/view/ViewGroup;

move-object v7, v0

changed to

.line 624
const v3, 0x7f030008

invoke-virtual {v1, v3, p2, v11}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

move-result-object v9

[B]
check-cast v9, Lcom/android/systemui/statusbar/LatestItemContainer;

.line 516
.local v9, row:Lcom/android/systemui/statusbar/LatestItemContainer;
move-object/from16 v0, v2

iget v0, v0, Landroid/app/Notification;->flags:I

move v4, v0

and-int/lit8 v4, v4, 0x2

if-nez v4, :cond_1

move-object/from16 v0, v2

iget v0, v0, Landroid/app/Notification;->flags:I

move v4, v0

and-int/lit8 v4, v4, 0x20

if-nez v4, :cond_1

new-instance v4, Lcom/android/systemui/statusbar/StatusBarService$7;

move-object v0, v4

move-object/from16 v1, p0

move-object/from16 v2, p1

invoke-direct {v0, v1, v2}, Lcom/android/systemui/statusbar/StatusBarService$7;->(Lcom/android/systemui/statusbar/StatusBarService;Lcom/android/internal/statusbar/StatusBarNotification;)V

move-object/from16 v0, v9

move-object v1, v4

invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/LatestItemContainer;->setOnSwipeCallback(Ljava/lang/Runnable;)V

.line 735
:cond_1[/B]

.line 627
const v1, 0x7f0a002d

[B]invoke-virtual {v9, v1}, Lcom/android/systemui/statusbar/LatestItemContainer;->findViewById(I)Landroid/view/View;[/B]

move-object v0, v1

check-cast v0, Landroid/view/ViewGroup;

move-object v7, v0

Hope this helps, it's geeky but it's the only way to understand ;) And one more thing, don't forget all the steps after it (esp. directive location :) )