공부하는 블로그

(안드로이드 프로그래밍) Linear Layout 실습 3 본문

Develop/안드로이드

(안드로이드 프로그래밍) Linear Layout 실습 3

모아&모지리 2017. 9. 26. 20:32

<완성>




먼저 다운 받은 그림을 drawable 폴더에 넣는다.


<?xml version="1.0" encoding="utf-8"?>
<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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.ktds.lesson02_1.MainActivity">



</LinearLayout>








<?xml version="1.0" encoding="utf-8"?>
<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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.ktds.lesson02_1.MainActivity">

<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="13dp"
android:paddingTop="13dp"
android:text="Android Developers"
android:textColor="#4b4bfa"
android:textSize="20sp"
android:textStyle="bold" />


<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="https://developer.android.com"
android:textSize="17sp"
android:textColor="#2aa72a"
android:paddingTop="2dp"
android:paddingLeft="13dp"
android:paddingBottom="13dp"/>

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#777777"/>

<LinearLayout
android:paddingTop="13dp"
android:paddingLeft="13dp"
android:paddingRight="13dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<TextView
android:layout_weight="2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="The Official site for android"
android:textSize="17sp"/>

<ImageView
android:layout_width="122dp"
android:layout_height="108dp"
android:src="@drawable/pic5_photo"/>
</LinearLayout>

</LinearLayout>