【附】相关架构及资料
往期Android高级架构资料、源码、笔记、视频。高级UI、性能优化、架构师课程、NDK、混合式开发(ReactNative+Weex)微信小程序、Flutter全方面的Android进阶实践技术,群内还有技术大牛一起讨论交流解决问题。
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
下面看下布局文件
- <?xml version\="1.0" encoding\="utf-8"?>
-
<LinearLayout xmlns:Android=“http://schemas.android.com/apk/res/android”
-
android:layout_width=“fill_parent”
-
android:layout_height=“fill_parent”
-
android:background=“#FFFFFF”
-
android:orientation=“vertical” >
-
-
<TableLayout
-
android:layout_width=“fill_parent”
-
android:layout_height=“wrap_content”
-
android:padding=“10dip” >
-
-
<TableRow
-
android:layout_width=“fill_parent”
-
android:layout_height=“wrap_content”
-
android:background=“@drawable/shape_top_corner_no_bottom_line”
-
android:padding=“10dip” >
-
<TextView
-
android:layout_width=“wrap_content”
-
android:layout_height=“wrap_content”
-
android:layout_gravity=“center_vertical”
-
android:layout_marginRight=“10dip”
-
android:text=“姓名:” >
-
</TextView>
-
<EditText
-
android:id=“@+id/bankingYourNameEditText”
-
android:layout_width=“wrap_content”
-
android:layout_height=“wrap_content”
-
android:layout_gravity=“center_vertical”
-
android:layout_weight=“1”
-
android:background=“@null”
-
android:singleLine=“true” >
-
</EditText>
-
</TableRow>
-
-
<TableRow
-
android:layout_width=“fill_parent”
-
android:layout_height=“wrap_content”
-
android:background=“@drawable/shape_no_corner_without_bottom”
-
android:padding=“10dip” >
-
<TextView
-
android:layout_width=“wrap_content”
-
android:layout_height=“wrap_content”
-
android:layout_gravity=“center_vertical”
-
android:layout_marginRight=“10dip”
-
android:text=“联系电话:” >
-
</TextView>
-
<EditText
-
android:id=“@+id/bankingContactTelEditText”
-
android:layout_width=“wrap_content”
-
android:layout_height=“wrap_content”
-
android:layout_gravity=“center_vertical”
-
android:layout_weight=“1”
-
android:background=“@null”
-
android:inputType=“phone”
-
android:singleLine=“true” >
-
</EditText>
-
</TableRow>
-
-
<TableRow
-
android:layout_width=“fill_parent”
-
android:layout_height=“wrap_content”
-
android:background=“@drawable/shape_bottom_corner_no_top_line”
-
android:padding=“10dip” >
-
<TextView
-
android:layout_width=“wrap_content”
-
android:layout_height=“wrap_content”
-
android:layout_gravity=“center_vertical”
-
android:layout_marginRight=“10dip”
-
android:text=“联系电话:” >
-
</TextView>
-
<EditText
-
android:id=“@+id/bankingContactTelEditText”
-
android:layout_width=“wrap_content”
-
android:layout_height=“wrap_content”
-
android:layout_gravity=“center_vertical”
-
android:layout_weight=“1”
-
android:background=“@null”
-
android:inputType=“phone”
-
android:singleLine=“true” >
-
</EditText>
-
</TableRow>
-
</TableLayout>
-
<Button
-
android:id=“@+id/button1”
-
android:layout_width=“wrap_content”
-
android:layout_height=“wrap_content”
-
android:layout_gravity=“center”
-
android:text=“Button” />
-
</LinearLayout>
表格布局中每个TableRow表示一行,TableRow中的每个基本控件都是一列,这是一个三行两列的布局
这里的表格背景是自定义的shape,下面分别看一下三个shape的代码。
shape_top_corner_no_bottom_line.xml文件:顶部带圆角 白色背景 灰色边框 无下边框 长方体
- <?xml version\="1.0" encoding\="UTF-8"?>
-
<layer-list xmlns:android=“http://schemas.android.com/apk/res/android”>
-
<item>
-
<shape>
-
<solid android:color=“#FFFFFF” />
-
<corners android:topLeftRadius=“10dp” android:topRightRadius=“10dp”
-
android:bottomRightRadius=“0.1dp” android:bottomLeftRadius=“0.1dp” />
-
<stroke android:width=“1dp” android:color=“#ffa8abad” />
-
</shape>
-
</item>
-
<item android:top=“1dp” android:left=“1dp” android:right=“1dp”>
题外话
我们见过很多技术leader在面试的时候,遇到处于迷茫期的大龄程序员,比面试官年龄都大。这些人有一些共同特征:可能工作了7、8年,还是每天重复给业务部门写代码,工作内容的重复性比较高,没有什么技术含量的工作。问到这些人的职业规划时,他们也没有太多想法。
其实30岁到40岁是一个人职业发展的黄金阶段,一定要在业务范围内的扩张,技术广度和深度提升上有自己的计划,才有助于在职业发展上有持续的发展路径,而不至于停滞不前。
不断奔跑,你就知道学习的意义所在!
注意:我们之前因为秋招收集的二十套一二线互联网公司Android面试真题(含BAT、小米、华为、美团、滴滴)和我自己整理Android复习笔记(包含Android基础知识点、Android扩展知识点、Android源码解析、设计模式汇总、Gradle知识点、常见算法题汇总。)
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
TtqWiKn-1715657693198)]
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!