관리 메뉴

moozi

android alignment 본문

TIS_2019/응용sw2019_1기

android alignment

moozi 2019. 6. 7. 17:32

<?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:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">


<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="right"
>

<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@mipmap/ic_launcher"
/>

<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="TextView"
android:gravity="center_vertical"
/>
</LinearLayout>
</LinearLayout>

'TIS_2019 > 응용sw2019_1기' 카테고리의 다른 글

안드로이드 미니프로젝트  (0) 2019.06.10
shared preference  (0) 2019.06.10
하이브리드앱 파일찾기 관련  (0) 2019.06.07
6/5 db2  (0) 2019.06.05
안드로이드연습문제07  (0) 2019.06.05
Comments