Skip to content

Instantly share code, notes, and snippets.

@godjooyoung
Created June 19, 2020 01:06
Show Gist options
  • Save godjooyoung/6ea7cafeb32049e986985059f4534c79 to your computer and use it in GitHub Desktop.
Save godjooyoung/6ea7cafeb32049e986985059f4534c79 to your computer and use it in GitHub Desktop.
안드로이드 좌표값 가져오기 레이아웃 뷰
<?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" >
<Button
android:id="@+id/btn1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="님은 어디에?" />
<TextView
android:id="@+id/text1"
android:layout_width="match_parent"
android:layout_height="430dp"
android:text="어디어디"
android:textSize="18sp" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment