목록TextView (2)
woong's
Android TextView 좌우 반전 하기
Android TextView 좌우 반전 하기 Colored By Color Scripter™1234567891011121314151617181920import android.content.Context;import android.graphics.Canvas;import android.util.AttributeSet;import android.widget.TextView; public class MirroredTextView extends TextView { public MirroredTextView(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onDraw(Canvas canvas) { ca..
Develop/Android
2016. 2. 14. 17:20
Android TextView ... 처리 Android TextView ... 처리를 찾아보니 클래스를 넣으라는둥 하는 글이 많았다. Android 에서 기분으로 제공해주는 기능에 있었습니다 . Colored By Color Scripter™ 1 2 3 4 5 6 7 8 9 10 11 12 여기서의 핵심 코드는 android:singleLine="true" android:ellipsize="end" 이 두줄의 코드입니다 . android:layout_width="230dp" 의 길이 많큼 넘어가면 ... 으로 나오는 것을 볼수 있습니다 .제가 사용한 화면이네요 ^^
Develop/Android
2016. 2. 14. 16:14