Today I learned a few things about Android UI development
- 6 large Layouts
- Styles and themes → custom styles, themes
- JUnit Unit Test
- About Toast Popup Features
- 6 large Layouts
- Relativelayout
- LinearLayout
- Framelayout frame layout-commonly used in game development, player, scratch card
- GridLayout Grid Layout-Calculators
- Tablelayout
- The number of rows is controlled by TableRow, and several TR have several lines
- No need to specify Layout_width\height
Can be contacted by a simple registration, login page.
2. Styles and Themes
Set style: style= "? android:attr/..."
Android:theme= "android:style/theme.dialog"----topic to add in Androidmanifest.xml.
Create a style file under Res/values → add <resources> root node → add a <style> node within the root node → declare one or more <item> in a node
You can also implement custom styles by inheriting other already defined styles with the parent function--Should this be easier?
3.Use of Toast
-
- To add a statement in mainactivity:
- Toast.maketext (Mainactivity.this, "This is the pop-up window content", Toast.LENGTH.LONG). Show ();
Summary: Today's important content is the use of 6 large layouts and toasts, both of which are more commonly used in development, and are often used in UI development.
Android UI Development