安卓的学习基础来源于Java,其中的代码上学期已经学过了,这学期只在不会的时候再掏出来使用了。
每日日报开始于安卓的UI界面的设计吧,我觉得非常的合理。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/LinearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <LinearLayout android:layout_width="0dp" android:layout_height="fill_parent" android:background="#ADFF2F" android:layout_weight="1"/> <LinearLayout android:layout_width="0dp" android:layout_height="fill_parent" android:background="#DA70D6" android:layout_weight="2"/> </LinearLayout>
此段是菜鸟教程里最开始关于结构布局的介绍,也是我学习的第一段。