In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What are the common attributes of Android development? I believe many inexperienced people are at a loss about this. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
1. Add a space in the middle of android string.xml text
The skill of adding spaces before and after android string.xml
Secret code
& # 160 this represents a space
2. Single-line display of text
Single-line display and input of TextView and EditView in android layout layout file
Single-line display of text
Text input box single-line input
Android:singleLine= "true" single-line display
3. EditView input box attributes
EditView password input and digital input control in android layout layout file
The input data of the text input box is not displayed directly
The input data of the text input box can only be numeric
Android:numeric= "integer" digital input control, android:password= "true": password content hiding
4. EditView input content prompt
Prompt for EditView input content in android layout layout file
Prompt content is displayed in the text input box
Android:hint= "@ string/input_pwd" when the input box gets focus, the default display disappears
5. EditView input length control
EditView input length Control in android layout layout File
Set the minimum input of the text input box
Set the input amount of the text input box
MinLength, maxLength: input length control
6. Control display control
Display Control of controls in android layout layout File
Android:visibility= "gone": the controls are gone
Android:visibility= "invisible": the control is not visible, but exists
Android:visibility= "visible": controls display normally, system defaults
7. Typesetting control in layout files
Typesetting Control of RelativeLayout, LinearLayout, ListView Internal controls in android layout layout File
Android:orientation= "vertical": vertical layout
Android:orientation= "horizontal": horizontal layout
8. Apply horizontal screen and vertical screen display
Android AndroidManifest.xml file sets the application display direction
Android:screenOrientation= "portrait": vertical screen display
9. Go to the title control
Android AndroidManifest.xml file sets Activity without title
Android:theme= "@ android:style/Theme.NoTitleBar": no title is displayed
After reading the above, have you mastered the methods of common properties in Android development? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.