public class ConnectionListView extends ListActivity{
public ConnectionListView(Context context,String Label,String Ip){
}
public static LinearLayout getLayout(Context context,String Label,String Ip){
LinearLayout ll = new LinearLayout(context);
TextView textLabel = new TextView(context);
TextView textIp = new TextView(context);
textLabel.setText(Label);
textIp.setText(Ip);
textLabel.setHeight(30);
textIp.setHeight(10);
//=======================================================================================================
ll.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
ll.setGravity(Gravity.TOP);
ll.setOrientation(LinearLayout.VERTICAL);
ll.addView(textLabel);
ll.addView(textIp);
return ll;
}
}
i know the code is a mile away from what it needs to be but has anyone any idea on how i would even start on this or could even point me in the right direction it would be greatly appreciated thanks in advance for the help also i have done an image in paint which I attached which I hope can give you some help in understanding my more then likely terrible explanation LOL

New Topic/Question
Reply



MultiQuote




|