Layouts , Widgets, - Text Fields.
. 1 . XML-, . RelativeLayout, . TextView, .
, .
-, Palette ( ) Properties ( ) (.2.2).
- . Android , XML-. XML- res/layout . "res" "resources" (). , . , , .. res/layout, activity_main.xml ( ) . XML- : . Palette: Design Text. Text XML:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
android:id="@+id/hello_world">
<TextView android:text="@string/hello_world" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="44dp"
android:id="@+id/textView" />
</RelativeLayout>
.
1. .
2. Design (Delete), Text - activity_main.xml.
3. . ( olor) , 3 :
- ) RGB ( Red+Green+Blue,
- ) ARGB ( Red + Green + Blue + AlphaChannel ( ),
- ) HSB - (hue - ( , 0 360 ), saturation ( , ) , , brightness - ( , ).