Module 수준의 build.gradle에 추가

 

    dependencies{

        implementation "org.jetbrains.anko:anko-commons:$anko_version"

        ****

        ****

        ****

    }

 

Project 수준의 build.gradle에 추가

 

    buildscript{

        ****

        ext.anko_version = '0.10.5'

        ****

    }

'Android' 카테고리의 다른 글

RelaytiveLayout  (0) 2020.03.23
LinearLayout : orientation/weight  (0) 2020.03.23
무료아이콘 다운로드  (2) 2017.02.02
스플래쉬 참고  (0) 2017.02.01
[스터디] 1. 카카오톡 패스워드입력 화면 구성  (0) 2016.12.05

기준뷰 id값 설정 -> 다른 뷰에서 기준뷰의 id값을 이용하여 위치를 지정

<RelativeLayout

    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@mipmap/ic_launcher_round">

 

    <TextView
        android:id="@+id/standard"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_centerInParent="true"
        android:text="기준 뷰"
        android:textColor="#FF0000"
        android:textSize="30dp"
        android:gravity="center_vertical"
        android:textAlignment="center"
        android:background="@color/colorPrimaryDark"/>

    <TextView
        android:layout_toRightOf="@+id/standard"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_centerInParent="false"
        android:text="1번 뷰"
        android:textColor="#FF0000"
        android:textSize="30dp"
        android:gravity="center_vertical"
        android:textAlignment="center"
        android:background="@color/colorAccent"/>

    <TextView
        android:layout_below="@+id/standard"
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_centerInParent="true"
        android:text="2번 뷰"
        android:textColor="#FF0000"
        android:textSize="30dp"
        android:gravity="center_vertical"
        android:textAlignment="center"
        android:background="@color/colorPrimary"/>

</RelaytiveLayout>

'Android' 카테고리의 다른 글

Anko 라이브러리 추가  (0) 2020.03.30
LinearLayout : orientation/weight  (0) 2020.03.23
무료아이콘 다운로드  (2) 2017.02.02
스플래쉬 참고  (0) 2017.02.01
[스터디] 1. 카카오톡 패스워드입력 화면 구성  (0) 2016.12.05

 

리스트뷰 가로/세로 설정 : horizontal/vertical

layout_weight 가중치 설정

<LinearLayout
    android:layout_width="match_parent" 
    android:layout_height="500dp" 
    android:orientation="horizontal" 
    app:layout_constraintHorizontal_weight="5" 
    android:background="@mipmap/ic_launcher_round" 
    tools:ignore="MissingConstraints"> 

    <TextView
        android:layout_width="100dp" 
        android:layout_height="100dp" 
        android:layout_weight="1" 
        android:background="@color/colorPrimaryDark"/> 
    <TextView
        android:layout_width="100dp" 
        android:layout_height="100dp" 
        android:layout_weight="1" 
        android:background="@color/colorAccent"/> 

    <TextView

        android:layout_width="100dp" 
        android:layout_height="100dp" 
        android:layout_weight="1" 
        android:background="@color/colorPrimary"/> 
</LinearLayout>

 

<LinearLayout

    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    app:layout_constraintHorizontal_weight="5"
    android:background="@mipmap/ic_launcher_round"
    tools:ignore="MissingConstraints">

 

    <TextView

        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_weight="1"
        android:background="@color/colorPrimaryDark"/>

    <TextView

        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_weight="1"
        android:background="@color/colorAccent"/>

    <TextView    

        android:layout_width="100dp"
        android:layout_height="100dp"
        android:layout_weight="2"
        android:background="@color/colorPrimary"/>

</LinearLayout

'Android' 카테고리의 다른 글

Anko 라이브러리 추가  (0) 2020.03.30
RelaytiveLayout  (0) 2020.03.23
무료아이콘 다운로드  (2) 2017.02.02
스플래쉬 참고  (0) 2017.02.01
[스터디] 1. 카카오톡 패스워드입력 화면 구성  (0) 2016.12.05

firewall-cmd --permanent --zone=public --add-port=3306/tcp (3306 포트 허용)
firewall-cmd --reload (서비스 재구동)
firewall-cmd --list-ports (허용 포트 확인)

'Server - Linux' 카테고리의 다른 글

[리눅스] CentOS7 시간동기화  (0) 2020.03.23
[리눅스] CentOS7 Java 설치  (0) 2020.03.23
[SVN]  (0) 2016.07.04
[snmp] (Linux-client) 설정  (0) 2016.07.04
[RSync]  (0) 2016.07.04

yum install -y rdate (rdate yum 설치)
rdate -s time.bora.net (시간동기화)

'Server - Linux' 카테고리의 다른 글

[리눅스] CentOS7 방화벽 허용  (0) 2020.03.23
[리눅스] CentOS7 Java 설치  (0) 2020.03.23
[SVN]  (0) 2016.07.04
[snmp] (Linux-client) 설정  (0) 2016.07.04
[RSync]  (0) 2016.07.04

1. Java 설치경로 설정

 

 

 

2. Java 업로드(SFTP)

 

 

3. 압축해제 후 디렉터리명 변경


4. /etc/profile 환경변수 설정
export JAVA_HOME=/java/jdk1.8
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$CLASSPATH:$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar


5. /etc/profile 실행
# source /etc/profile


6. Java version 확인
# java -version

 

'Server - Linux' 카테고리의 다른 글

[리눅스] CentOS7 방화벽 허용  (0) 2020.03.23
[리눅스] CentOS7 시간동기화  (0) 2020.03.23
[SVN]  (0) 2016.07.04
[snmp] (Linux-client) 설정  (0) 2016.07.04
[RSync]  (0) 2016.07.04

https://material.io/icons

http://isulnara.com/wp/archives/288



<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="5">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top|center"
android:layout_marginTop="20dp"
android:textSize="40dp"
android:text="암호"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|center"
android:layout_marginBottom="10dp"
android:textSize="17dp"
android:text="카카오톡 암호를 입력해 주세요."/>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:gravity="bottom|center">

<ImageView
android:layout_width="60dp"
android:layout_height="80dp"
android:layout_marginRight="15dp"
android:src="@drawable/image1"/>

<ImageView
android:layout_width="60dp"
android:layout_height="80dp"
android:layout_marginRight="7dp"
android:src="@drawable/image1"/>

<ImageView
android:layout_width="60dp"
android:layout_height="80dp"
android:layout_marginLeft="7dp"
android:src="@drawable/image1"/>

<ImageView
android:layout_width="60dp"
android:layout_height="80dp"
android:layout_marginLeft="15dp"
android:src="@drawable/image1"/>

</LinearLayout>


</FrameLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="3"
android:orientation="vertical">

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_marginLeft="15dp"
android:layout_gravity="top|left"
android:src="@drawable/num_1"/>
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_gravity="top|center"
android:src="@drawable/num_2"/>
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_marginRight="15dp"
android:layout_gravity="top|right"
android:src="@drawable/num_3"/>
</FrameLayout>

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_marginLeft="15dp"
android:layout_gravity="top|left"
android:src="@drawable/num_4"/>
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_gravity="top|center"
android:src="@drawable/num_5"/>
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_marginRight="15dp"
android:layout_gravity="top|right"
android:src="@drawable/num_6"/>
</FrameLayout>

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_marginLeft="15dp"
android:layout_gravity="top|left"
android:src="@drawable/num_7"/>
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_gravity="top|center"
android:src="@drawable/num_8"/>
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_marginRight="15dp"
android:layout_gravity="top|right"
android:src="@drawable/num_9"/>
</FrameLayout>

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_gravity="top|center"
android:src="@drawable/num_0"/>
<ImageView
android:layout_width="100dp"
android:layout_height="120dp"
android:layout_marginRight="15dp"
android:layout_gravity="top|right"
android:src="@drawable/num_"/>
</FrameLayout>


</LinearLayout>
</LinearLayout>



공유폴더 생성 후 자격 증명 등록하기



공유폴더 생성 후 클라이언트PC에서는 재부팅할 경우 인증을 해주어야 한다.

그래서 윈도우에서 자격 증명에 추가를 해주면 더이상 인증하지 않아도 자유롭게 사용할 수 있다.




다음과 같이 경로로 이동



Windows 자격 증명 선택 후에 "Windows 자격 증명 추가“ 클릭




공유폴더 메인 ip, 계정이름, 암호 입력 후 확인




이 후부터 공유폴더 클라이언트 PC에서 서버 정보 입력 없이 접속 가능함


+ Recent posts