마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

해상도에 맞는 풍선 만들기

0 추천

아래와 같이 했는데...

해상도마다 말풍선이 다르게 나오네요. ㅠ.ㅠ

뭐가 잘못 된건지요??

 

 

==========================================

 

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="68dp"

    android:layout_height="48dp"

    android:layout_gravity="center_vertical"

    android:adjustViewBounds="true"

    android:background="@drawable/custom_callout_balloon_1"

    android:orientation="vertical" >

 

 

     <LinearLayout

         android:layout_width="match_parent"

         android:layout_height="0px"

         android:layout_weight="6" >

 

         <TextView

             android:id="@+id/title"

             android:layout_width="match_parent"

             android:layout_height="wrap_content"

             android:layout_gravity="center_horizontal"

             android:ellipsize="end"

             android:singleLine="true"

             android:text="이름"

             android:textColor="#ff000000"

             android:textSize="11dp"

             android:textStyle="bold" />

     </LinearLayout>

         

     <LinearLayout

         android:layout_width="match_parent"

         android:layout_height="0px"

         android:layout_weight="5">

         

         <TextView

             android:id="@+id/desc"

             android:layout_width="match_parent"

             android:layout_height="wrap_content"

             android:ellipsize="end"

             android:singleLine="true"

             android:text="타입"

             android:textColor="#ff7f7f7f"

             android:textSize="9dp" />

     </LinearLayout>

 

</LinearLayout>

익명사용자 님이 2015년 8월 22일 질문

2개의 답변

0 추천
어느정도 다 다르게 보이는게 맞고요.

 

나인패치 를 검색해보세요.어느정도 해결될듯 싶네요.
chemkaaa (6,030 포인트) 님이 2015년 8월 25일 답변
0 추천
weight 값으로 하였으니 당연히 다를 수 밖에요.
개발자초심 (21,220 포인트) 님이 2015년 8월 25일 답변
...