Home > Mobile >  LinearLayout child controls beyond the screen
LinearLayout child controls beyond the screen

Time:09-16

Android: clipChildren="true"
The android: id="@ + id/llDeliveryDesc"
Android: layout_width="match_parent"
Android: layout_height="wrap_content"
The android: orientation="horizontal"
Android: layout_marginTop="16 dp" & gt;

Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: text="@ string/app_deliver_desc_hint"
Android: textColor="# 999999"
Android: textSize="16 sp/& gt;"

Android: layout_width="0 dp"
Android: layout_weight="1"
Android: layout_height="1 dp"/& gt;

Android: text="ijsdffdddddddddddddddddddddfffffffffffffffffios"
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: textColor="@ color/base_text_black"
Android: textSize="16 sp/& gt;"



This setting layout, and finally a textView long time will be out of the screen, how to solve

CodePudding user response:

I found that you put in the middle of the view to hide away, is normal, the specific reason I don't know,

CodePudding user response:

Android: clipChildren="false"

CodePudding user response:

refer to the second floor BDMH response:
android: clipChildren="false"
this way tried, can't

CodePudding user response:

reference 1st floor le540850072 response:
I found that you put in the middle of the view to hide away, is normal, the specific reason I don't know,
this style is the right of the text should be displayed on the right and the left of the display on the left, the middle is used to occupy a space

CodePudding user response:

Qq_40029241
reference 4 floor response:
Quote: refer to 1st floor le540850072 response:

I found that you put in the middle of the view to hide away, is normal, the specific reason I don't know,
this style is the right of the text should be displayed on the right and the left of the display on the left, the middle is used to occupy a space
are you going to the right of the text should be displayed on the right, on the left side of the display on the left you to set the two TextView each percentage is 1 a marginleft15 marginleft15 gravity on the left side of the "left", the right of the gravity "right" not to go

CodePudding user response:

A marginright15 marginleft15

CodePudding user response:

reference 5 floor Write_BUG small expert replies:
Quote: refer to 4th floor qq_40029241 response:

Quote: refer to 1st floor le540850072 response:

I found that you put in the middle of the view to hide away, is normal, the specific reason I don't know,
this style is the right of the text should be displayed on the right and the left of the display on the left, the middle is used to occupy a space
are you going to the right of the text should be displayed on the right, on the left side of the display on the left you to set the two TextView each percentage is 1 a marginleft15 marginleft15 gravity on the left side of the "left", the right of the gravity 'right,' don't have to do is

This method can be, but why his code will appear the phenomenon of child controls beyond the screen?

CodePudding user response:

refer to 7th floor le540850072 response:
Quote: refer to fifth floor Write_BUG small expert replies:

Quote: refer to 4th floor qq_40029241 response:

Quote: refer to 1st floor le540850072 response:

I found that you put in the middle of the view to hide away, is normal, the specific reason I don't know,
this style is the right of the text should be displayed on the right and the left of the display on the left, the middle is used to occupy a space
are you going to the right of the text should be displayed on the right, on the left side of the display on the left you to set the two TextView each percentage is 1 a marginleft15 marginleft15 gravity on the left side of the "left", the right of the gravity 'right,' don't have to do is

This method can be, but why his code will appear the phenomenon of child controls beyond the screen?
upstairs have said clipChildren true fales child elements are confined to their parent's internal drawing

CodePudding user response:

refer to the eighth floor Write_BUG small expert replies:
Quote: refer to 7th floor le540850072 response:

Quote: refer to fifth floor Write_BUG small expert replies:

Quote: refer to 4th floor qq_40029241 response:

Quote: refer to 1st floor le540850072 response:

I found that you put in the middle of the view to hide away, is normal, the specific reason I don't know,
this style is the right of the text should be displayed on the right and the left of the display on the left, the middle is used to occupy a space
are you going to the right of the text should be displayed on the right, on the left side of the display on the left you to set the two TextView each percentage is 1 a marginleft15 marginleft15 gravity on the left side of the "left", the right of the gravity 'right,' don't have to do is

This method can be, but why his code will appear the phenomenon of child controls beyond the screen?
upstairs have said clipChildren true fales child elements are confined to their parent's internal draw

I found you old unreliable, the somebody else said the building Lord, change this setting also doesn't work, that you are in with others reply,

CodePudding user response:

reference 5 floor Write_BUG small expert replies:
Quote: refer to 4th floor qq_40029241 response:

Quote: refer to 1st floor le540850072 response:

I found that you put in the middle of the view to hide away, is normal, the specific reason I don't know,
this style is the right of the text should be displayed on the right and the left of the display on the left, the middle is used to occupy a space
are you going to the right of the text should be displayed on the right, on the left side of the display on the left you to set the two TextView each percentage is 1 a marginleft15 marginleft15 gravity on the left side of the "left", the right of the gravity 'right,' don't have to do is

There are two problems with this approach, if the right of the field is too long, it will only be displayed on the right side, and if set the gravity of the right is right, after long wrap text will be displayed on the right

CodePudding user response:

The building Lord you don't mind, when talking about the problem of saliva battle it's normal for happened, had a quarrel because of problems at work is also very normal thing,

CodePudding user response:

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related