<!-- 전화번호 -->
<LinearLayout
android:layout_width= "match_parent"
android:layout_height= "0dp"
android:layout_weight= "100"
android:weightSum= "1080" >
<TextView
android:layout_width= "wrap_content"
android:layout_height= "match_parent"
android:layout_weight= "170" />
<TextView
android:id= "@+id/phone_number"
android:layout_width= "wrap_content"
android:layout_height= "match_parent"
android:layout_weight= "910" />
</LinearLayout>
|
phone_number.setText(PhoneNumberUtils.formatNumber(SharedPreferenceUtil.getSharedPreference(MainActivity. this , "phonenumber" )));
|
Main에서 추가 문구는 append를 사용하였습니다.
이렇게 구현되어있습니다.
Textview의 글자길이에 따라서 첫번째 글자 위치가 미세하게 변경이 되더라구요.
아래 그림과 같이 처음에는 append를 추가하지 않은 부분이고, 밑에 부분이 append를 추가한 부분입니다.
미세하지만 딱 맞게 출력하고 싶은데...
android:gravity="left" 안해도 기본이 left로 정렬되는거로 알고 있습니다.
수정방법을 알려주시면 감사하겠습니다.