본문 바로가기
[android] Android 6.0(MOS) SDK 에서 바뀐 것들!! [android] Android 6.0(MOS) SDK 에서 바뀐 것들!! https://commonsware.com/blog/2015/08/17/random-musings-android-6p0-sdk.html -ACTION_INSTALL_PACKAGE 를 사용하면서 targetSdkVersion 이 22 이상이면 REQUEST_INSTALL_PACKAGE permission 이 반드시 있어야 한다. -PendingIntent 는 FLAG_IMMUTABLE 이라는 option 이 있다.이것은 PendingIntent 를 invoke 할 때 변형되지 않게 하는 것으로 security 측면에서 좋다. -새로운 Setting screen 들을 Settings 의 action string 을 통해 접근할 수 있.. 2017. 9. 18.
[android] TextSwitcher ( from API level 1 ) [android] TextSwitcher ( from API level 1 ) http://developer.android.com/reference/android/widget/TextSwitcher.html -TextView 들만을 child 로 가지는 ViewGroup 이다.Label 을 animation 하는 데 유용하다.setText 가 불릴때마다 animation 을 해서 현재 text 를 out 시키고, 새로운 text 를 in 시킨다. -inAnimation 과 outAnimation 을 지정하여 사용한다. -setText 는 animation 을 하지만, setCurrentText 를 하면 현재 보여지고 있는 text 를 그냥 update 하기 때문에 animation 이 없다. -TextS.. 2017. 7. 9.
[android] TextView Loading Open Source LIbrary [android] TextView Loading Open Source LIbrary https://github.com/RomainPiel/Titanic TextView Loading Open Source LIbrary github 링크에 애니메이트 되는 sample 이 있으니 확인해보시길.modern 한 느낌의 textview loading animation 을 적용할 수 있다. loading, loading animation, open source library, TextView, [android] TextView Loading Open Source LIbrary 2014. 5. 22.
[android] baselineAligned 속성의 정체. android, baselineAligned 속성의 정체. LinearLayout 에 포함되는, TextView 들은 글씨들의 first line 을 align 하도록 기본 설정이 되어 있다. 그래서 위와 같이 한줄짜리 text 를 가진 버튼들 중간에두줄짜리 text 를 가진 버튼이 추가되면 위와 같은 layout 이 보여진다. 이는 LinearLayout 을 상속하는 TableLayout, RadioGroup, SearchView 들과TextView 를 상속하는 Button, CheckBox, RadioButton, EditText 들도 이에 해당한다고 보면 된다. 따라서 이런 현상을 없애려면, 기본 true 로 되어있는 android:baselineAligned 값을 false 로 전환해주면 된다. .. 2014. 4. 10.
[android] Linkify 를 이용하여 TextView 에 link 주기 android, Linkify 를 이용하여 TextView 에 link 주기 HashTag 예제 // Hash Tag 패턴Pattern tagMatcher = Pattern.compile("[#]+[A-Za-z0-9-_]+\\b"); // TextView 의 Link 를 눌렀을 때 연결할 uri 혹은 url base 주소String uri = "content://com.cklee.hashtags/"; // textview 에서 tagMatcher 에 matching 되는 녀석을 link 로 만들고, // 이녀석을 클릭하면 ACTION_VIEW 를 호출하면서 MIME type 을 uri + tag 로 생성된 scheme 으로부터 받아온다.Linkify.addLinks(textView, tagMatcher,.. 2014. 2. 20.
[android] apply different colors on the texts in the textview using xml 안드로이드, apply different colors on the texts in the textview using xml Here is a text. This is red color]]> and This is green color]]>. Like it? Various text color is not applied directly.You need to convert the string as a Spanned form with Html.fromHtml function. 다양한 색상이 바로 적용되지 않습니다.해당 string 을 Html.fromHtml 함수를 이용하여 Spanned 형태로 전환해야 합니다. textView.setText( Html.fromHtml( getString( R.string.var.. 2013. 10. 21.
반응형