I have a class which extends from TableLayout: public class EntryCallLog extends TableLayout {
I defined two columns and I have two TableRows. Therefore there are two Views inside a Row. The first should be gravity left the second should be gravity right. So I can not use tablerow.setGravity(Gravity.Right), because this is for the whole row. I tried this one, but it doesnt work! ------------------------------------------------------- callType = new ImageView(context); // My ImageView LinearLayout.LayoutParams params = new LayoutParams(); params.gravity = Gravity.RIGHT; callType.setLayoutParams(params); row1.addView(callType, 1); ------------------------------------------------------- I want to set the gravity for one View, should be possible or not? Thanks a lot! Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---