| | |
| | | tyySingleFramLayout.btnRightImage.Gravity = Gravity.CenterVertical; |
| | | tyySingleFramLayout.btnLeftImage.Visible = false; |
| | | |
| | | if (tyySingleFramLayout.btnName.GetTextWidth() > Application.GetRealWidth(48)) |
| | | { |
| | | tyySingleFramLayout.singleFramLayout.Width = Application.GetRealWidth(101 - 48) + tyySingleFramLayout.btnName.GetTextWidth(); |
| | | tyySingleFramLayout.singleFramLayout.X = Application.GetRealWidth(226 + 48) - tyySingleFramLayout.btnName.GetTextWidth(); |
| | | tyySingleFramLayout.btnName.Width = tyySingleFramLayout.btnName.GetTextWidth(); |
| | | tyySingleFramLayout.btnRightImage.X = tyySingleFramLayout.btnName.Right + Application.GetRealWidth(8); |
| | | } |
| | | tyySingleFramLayout.CustomCalculationWidth(TypeSingleFramLayout.Orientation.right, |
| | | tyySingleFramLayout.singleFramLayout, |
| | | tyySingleFramLayout.btnName, |
| | | tyySingleFramLayout.btnRightImage, |
| | | 48, 200); |
| | | |
| | | } |
| | | else |