'주소'에 해당되는 글 3건

  1. Finder에서 현재 경로 주소를 보기(경로 막대 추가하기) 2
  2. 안드로이드 EditText에 특정(주소,이메일,숫자 등)의 타입 입력받기
  3. Rewrite 묘듈 활성화 - 리눅스(우분투)에서 XE 짧은 주소 사용하기 문제
Windows에는 기본적으로 익스플로러는것이 있듯이 Mac에는 Finder가 기본적으로 탐색기가 있습니다.


그런데 윈도우 탐색기에서는 경로 주소 창이 있어 여기가 어딘지 알기도 쉽고, 뒤로 가기도 쉽습니다. 그런데 너무 심플을 강조한 탓일까요, 맥 Finder에서는 경로창이 어디에도 보이지 않습니다.

 


Finder에 경로 막대 추가하기

사실 이것의 해결책은 의외로 쉬웠습니다. 애플이 알게모르게 잘 포장해 숨겨놨더군요.

1. Finder를 열어 "보기"를 누릅니다.

 

2. 경로 막대 보기를 누릅니다.



3. 아래 사진과 같이 아래쪽에 경로 막대가 나타나며 폴더를 더블 클릭 시에는 클릭한 폴더로도 이동해서 편리합니다.

 

 윈도우때의 영향인지는 잘 모르겠지만 저는 애플이 이걸 처음부터 굳이 숨길 필요 있었나라고 생각됩니다.
기본 설정이 보여주는 것이고 사용자 정의로 숨기는 거라면 더 좋았을 것도 같습니다.



도움이 되셨나요?
그럼 손가락을 눌러주세요! 
안드로이드 레이아웃은 xml로 작성합니다. UI를 xml로 구성하는 것입니다. 자신이 EditText에 입력받고 싶은 특정 값이 있을 겁니다. 그 값이 숫자이면 숫자만 있는 키보드를 호출해야 하고, 이메일이면 키보드에 @를 쉽게 칠 수 있게 하는게 사소한 배려겠죠.


EditText 속성


자신이 입력받고 싶은 것을 쉽게 입력할수 있게 EditText에 속성을 넣어줄 수 있습니다. 

    <EditText

        android:id="@+id/editText1"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_alignLeft="@+id/textView1"

        android:layout_below="@+id/textView1"

        android:layout_marginTop="40dp"

        android:ems="10" >

 
 소스는 대충 위처럼 생겼을 것입니다. 필요에 따라서 저 줄이 늘어나기도 아니면 줄어들기도 하죠. 자신이 원하는 editText에다. 아래 코드를 추가해보세요.

      android:inputType="자신이 원하는 타입" 

android:inputType= 은 입력할 타입을 지정하는 것입니다. 위 코드 자신이 원하는 타입이라는 문자를 지우고 자신이 원하는 타입을 아래 설명을 참고하여 넣으시면 되겠습니다.

android:inputType

The type of data being placed in a text field, used to help an input method decide how to let the user enter text. The constants here correspond to those defined by InputType. Generally you can select a single value, though some can be combined together as indicated. Setting this attribute to anything besides none also implies that the text is editable.

Must be one or more (separated by '|') of the following constant values.

ConstantValueDescription
none 0x00000000 There is no content type. The text is not editable.
text 0x00000001 Just plain old text. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_NORMAL.
textCapCharacters 0x00001001 Can be combined with text and its variations to request capitalization of all characters. Corresponds to TYPE_TEXT_FLAG_CAP_CHARACTERS.
textCapWords 0x00002001 Can be combined with text and its variations to request capitalization of the first character of every word. Corresponds to TYPE_TEXT_FLAG_CAP_WORDS.
textCapSentences 0x00004001 Can be combined with text and its variations to request capitalization of the first character of every sentence. Corresponds to TYPE_TEXT_FLAG_CAP_SENTENCES.
textAutoCorrect 0x00008001 Can be combined with text and its variations to request auto-correction of text being input. Corresponds to TYPE_TEXT_FLAG_AUTO_CORRECT.
textAutoComplete 0x00010001 Can be combined with text and its variations to specify that this field will be doing its own auto-completion and talking with the input method appropriately. Corresponds toTYPE_TEXT_FLAG_AUTO_COMPLETE.
textMultiLine 0x00020001 Can be combined with text and its variations to allow multiple lines of text in the field. If this flag is not set, the text field will be constrained to a single line. Corresponds toTYPE_TEXT_FLAG_MULTI_LINE.
textImeMultiLine 0x00040001 Can be combined with text and its variations to indicate that though the regular text view should not be multiple lines, the IME should provide multiple lines if it can. Corresponds to TYPE_TEXT_FLAG_IME_MULTI_LINE.
textNoSuggestions 0x00080001 Can be combined with text and its variations to indicate that the IME should not show any dictionary-based word suggestions. Corresponds toTYPE_TEXT_FLAG_NO_SUGGESTIONS.
textUri 0x00000011 Text that will be used as a URI. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_URI.
textEmailAddress 0x00000021 Text that will be used as an e-mail address. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_EMAIL_ADDRESS.
textEmailSubject 0x00000031 Text that is being supplied as the subject of an e-mail. Corresponds toTYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_EMAIL_SUBJECT.
textShortMessage 0x00000041 Text that is the content of a short message. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_SHORT_MESSAGE.
textLongMessage 0x00000051 Text that is the content of a long message. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_LONG_MESSAGE.
textPersonName 0x00000061 Text that is the name of a person. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_PERSON_NAME.
textPostalAddress 0x00000071 Text that is being supplied as a postal mailing address. Corresponds toTYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_POSTAL_ADDRESS.
textPassword 0x00000081 Text that is a password. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_PASSWORD.
textVisiblePassword 0x00000091 Text that is a password that should be visible. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_VISIBLE_PASSWORD.
textWebEditText 0x000000a1 Text that is being supplied as text in a web form. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_WEB_EDIT_TEXT.
textFilter 0x000000b1 Text that is filtering some other data. Corresponds to TYPE_CLASS_TEXT |TYPE_TEXT_VARIATION_FILTER.
textPhonetic 0x000000c1 Text that is for phonetic pronunciation, such as a phonetic name field in a contact entry. Corresponds to TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_PHONETIC.
textWebEmailAddress 0x000000d1 Text that will be used as an e-mail address on a web form. Corresponds toTYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS.
textWebPassword 0x000000e1 Text that will be used as a password on a web form. Corresponds toTYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_WEB_PASSWORD.
number 0x00000002 A numeric only field. Corresponds to TYPE_CLASS_NUMBER |TYPE_NUMBER_VARIATION_NORMAL.
numberSigned 0x00001002 Can be combined with number and its other options to allow a signed number. Corresponds to TYPE_CLASS_NUMBER | TYPE_NUMBER_FLAG_SIGNED.
numberDecimal 0x00002002 Can be combined with number and its other options to allow a decimal (fractional) number. Corresponds to TYPE_CLASS_NUMBER | TYPE_NUMBER_FLAG_DECIMAL.
numberPassword 0x00000012 A numeric password field. Corresponds to TYPE_CLASS_NUMBER |TYPE_NUMBER_VARIATION_PASSWORD.
phone 0x00000003 For entering a phone number. Corresponds to TYPE_CLASS_PHONE.
datetime 0x00000004 For entering a date and time. Corresponds to TYPE_CLASS_DATETIME |TYPE_DATETIME_VARIATION_NORMAL.
date 0x00000014 For entering a date. Corresponds to TYPE_CLASS_DATETIME |TYPE_DATETIME_VARIATION_DATE.
time 0x00000024 For entering a time. Corresponds to TYPE_CLASS_DATETIME |TYPE_DATETIME_VARIATION_TIME.

This corresponds to the global attribute resource symbol inputType.

Related Methods
 예를 들면 자신은 숫자 문자열을 원한다. 하면 number를 넣으면 됩니다.


 
이글이 도움이 되었다면 손가락을 눌러주세요. :) 
우분투에 XE를 설치하면 짧은 주소로 이동했을 경우에는 이동이 안 되는 경우가 있었습니다.
짧은 주소를 당담하는 .htaccess 문제이며 Rewrite 묘듈을 설치해주면 해결됩니다.
해결하기 위해 아래 스탭을 따라주세요.

1.  .htaccess 제대로 이동되어있는지 확인
.htacces 파일은 숨김 파일입니다. 따라서 유닉스 기반에서는 보이지 않을 수 있습니다.
따라서 먼저 이 파일이 없으면 짧은 주소가 적용 안되는 것은 당연합니다.

XE 설치 파일을 옮길 때 .htacces 파일 있는지 꼭 확인하시고 우분투에서는 보기--> 숨겨진 파일 보기를 눌러 제대로 옮겨져 있는지 확인하셔야 합니다.

따로 .htacces 파일을 옮기셨다면 권한설정 꼭 확인하시구요.

2. Rewrite_module 설치
 우분투에서는 기본적으로 이 묘듈이 비활성화 되어 있습니다.
이것을 활성화해주면 정상적인 짧은 주소 사용이 가능합니다.

1. 터미널을 열어준 뒤에 sudo a2enmod rewrite 입력

2. gksu nautilus 입력

3. /etc/apache2/apache2.conf 를 열린 탐색기로 찾은 후 gedit 로 연다.(더블클릭)

4. 맨 아랫줄에 아래 코드 삽입.
<IfModule mod_rewrite.c>
rewriteEngine On
</IfModule>

5. /etc/apache2/sites-enabled/000-default 파일을 연다.

6. 아래 소스처럼 비슷하게 생긴 곳을 찾은 뒤 none이나 deny로 되어있는 부분을 all로 고쳐 줍니다.
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny

 7. 터미널을 연 뒤에 아래 명령어를 입력해 아파치를 재시작합니다.
sudo /etc/init.d/apache2 restart



다 읽으셨으면 손가락 눌러주세요 :)