接下来会开始介绍android studio一些基本的元件,这些元件虽然看似简单不过也有不少属性可以设定,这些元件也将在未来不管大大小小的专案中不断出现,所以尽可能练习用到得心应手,对未来写程序也会顺利不少。
首先介绍几个基本的属性设定:
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="red">#FF0000</color>
<color name="green">#00FF00</color>
<color name="yellow">#FFFF00</color>
</resources>
以下为简单的例子
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:id="@+id/tx1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="大小20sp"
android:textStyle="italic"
android:textColor="#009688"
android:textSize="20sp"/>
<TextView
android:id="@+id/tx2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="大小40sp"
android:textStyle="bold"
android:textColor="@color/green"
android:textSize="40sp"/>
<TextView
android:id="@+id/tx3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="背景黑色"
android:background="@color/black"
android:textColor="@color/yellow"
android:textSize="30sp"/>
</LinearLayout>
TextView就简单介绍到这里,谢谢大家
>>: # Day5--Funny Function!一招函式打天下?
Vue框架增加和改变了一些功能,使得开发者撰写Code时简洁许多,错误率降低,在除错时也比较有效率...
很久以前就想自己建个drone来实现CI/CD 原因是在公司里面通常都已经建好了,不然就是有MIS/...
1.原本的input 改为 el-autocomplete 并加上 :fetch-suggestio...
有Transaction就有可能会发生Deadlock. 在RDS上发生的时候就可从LOG里看出发生...
我们接续上章写完取绝对值步骤的程序码: import cv2 import numpy as np ...