2017년 4월 20일 목요일
arch linux , (manjaro) 만자로 linux 미러 리스트 복구
pacman-mirrors -i -c all
arch linux , (manjaro) 만자로 linux 미러 리스트 복구
2017년 4월 12일 수요일
안드로이드 스튜디오 버튼 클릭 예제
버튼 클릭 에 대한 예제
Activity_Main
xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout 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" tools:context="com.example.buster.hellow.MainActivity">
<TextView android:id="@+id/text1" android:layout_width="129dp" android:layout_height="98dp" android:text="Hello World!" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintHorizontal_bias="0.568" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.414" />
<Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button" tools:layout_editor_absoluteX="155dp" tools:layout_editor_absoluteY="337dp" />
</android.support.constraint.ConstraintLayout>
MainActivity.java
package com.example.buster.hellow; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.TextView; import android.widget.Button; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button btn1 =(Button)findViewById(R.id.button); btn1.setOnClickListener(niced); } Button.OnClickListener niced = new View.OnClickListener() { public void onClick(View v) { TextView tex1 = (TextView)findViewById(R.id.text1); tex1.setText("버튼 클릭 후 글자가 표시됨"); } }; }
2017년 4월 11일 화요일
android studio application rename
android studio application rename
values > string.xml app_name edit
아래와 같이 하면 된다.
피드 구독하기:
글 (Atom)
-
Rosewell 사건의 유일한 생존자인 외계인 Airl에 관한 이야기를 전해 드리고자 합니다. 이책은 우리에게 정말 귀한 정보 와 통찰력을 주며, 왜 이렇게 삶이란 것이 깊은 고뇌를 동반하는 것인 과정인지 근본적인 대답을 해주며, 죽는다는 것이 어렵...
-
呵呵大笑(가가대소) : 우스워서 소리를 크게 내어 웃음 家家戶戶(가가호호) : 집집마다 家鷄野雉(가계야치) : 집안에서 기르는 닭과 산의 꿩이란 뜻 자기 것은 하찮게 여기고 남의 것만 좋게 여김을 비유 可高可下(가고가하) : 어진 사람은 지위...
-
중국 쌍색구(双色球) 빨간공 6개 : 1~33 판란색 1개 : 1~16 빨간색, 파란색 두가지 색이라 쌍색구 라 함 APP LINK https://play.google.com/store/apps/details?id=gotopark....