* getElementById(String id) : Element 객체를 반환합니다. 하나를 반환합니다. 없으면 null 을 반환합니다.
* getElementsByTag(String tag) : Elements 객체를 반환합니다. 없으면 size() 가 0 입니다.
* getElementsByClass(String className) : Elements 객체를 반환합니다. 없으면 size() 가 0 입니다.
* doc.select("a") : 요소를 모두 선택합니다.
* doc.select("#logo") : id="logo" 인 요소를 선택합니다.
* doc.select(".head") : class="head"인 요소들을 선택합니다.
* doc.select("[href]") : href 속성을 가진 요소들을 선택합니다.
* doc.select("[width=500]") : width 속성의 값이 500인 모든 요소들을 선택합니다.
2017년 8월 27일 일요일
2017년 8월 25일 금요일
그레들 버젼 정보 표시
그레들 버젼 정보 표시
TextView tvt = (TextView) findViewById(R.id.text2);int versionCode = BuildConfig.VERSION_CODE;tvt.setText(versionCode);
2017년 8월 24일 목요일
adview sample
admob 광고 넣기 위한 XML 설정 파일
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="384dp"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="2dp"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent">
ads:adUnitId="@string/banner_ad_unit_id"
--> @string 에 베너 아이디를 넣는다.
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="384dp"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="2dp"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent">
ads:adUnitId="@string/banner_ad_unit_id"
--> @string 에 베너 아이디를 넣는다.
android:id="@+id/adView"
android:layout_width="350dp"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="0dp"
android:visibility="visible"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_unit_id"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
피드 구독하기:
덧글 (Atom)
-
呵呵大笑(가가대소) : 우스워서 소리를 크게 내어 웃음 家家戶戶(가가호호) : 집집마다 家鷄野雉(가계야치) : 집안에서 기르는 닭과 산의 꿩이란 뜻 자기 것은 하찮게 여기고 남의 것만 좋게 여김을 비유 可高可下(가고가하) : 어진 사람은 지위...
-
Rosewell 사건의 유일한 생존자인 외계인 Airl에 관한 이야기를 전해 드리고자 합니다. 이책은 우리에게 정말 귀한 정보 와 통찰력을 주며, 왜 이렇게 삶이란 것이 깊은 고뇌를 동반하는 것인 과정인지 근본적인 대답을 해주며, 죽는다는 것이 어렵...
-
이번에는 엑셀(Excel)의 고급기능 중의 하나인 매크로(Macro)에 대해 알아보겠습니다. 매크로는 엑셀에서 꼭 필요한 것은 아니지만 좀 더 편안한 작업을 위해 필요한 기능입니다. 반복적으로 자주 사용하는 작업들을 매번 수행하자면 정말 번거롭기...