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

Layout xml에서..?

0 추천

레이아웃 xml디자인에서 상단타이틀 , 중간에 메시지 영역, 하단에는  메시지 보내기 영역을 햇는데 실행을 하면 타이틀이 안보입니다

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/list_item"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/listview_cell_color"
    android:orientation="vertical" >
 <LinearLayout android:layout_height="wrap_content"
  android:layout_width="fill_parent"
  android:layout_centerVertical="true"
  android:id="@+id/topBtnLayout"
  android:orientation="horizontal"
  android:layout_gravity="top"
  android:gravity="top"
  android:layout_weight="1"
  android:layout_alignParentLeft="true"
 >
  <TextView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:text="아이디"
      android:id="@+id/txtId"
      android:background="#BDB76B"
      android:textColor="@android:color/background_dark"
      android:textSize="20dip"
      android:gravity="center_horizontal"
     
  />
    </LinearLayout>

 <LinearLayout android:layout_height="wrap_content"
  android:layout_width="fill_parent"
  android:layout_centerVertical="true"
  android:id="@+id/topBtnLayout"
  android:orientation="horizontal"
  android:layout_gravity="top"
  android:gravity="top"
  android:layout_weight="10"
  android:layout_alignParentLeft="true"
 >
     <ListView android:id="@+id/messageList"
      android:layout_marginTop="5dip"
         android:layout_width="fill_parent"
         android:layout_height="fill_parent" />
    </LinearLayout> 
 
 <LinearLayout android:layout_height="wrap_content"
  android:layout_width="fill_parent"
  android:layout_centerVertical="true"
  android:id="@+id/buttomBtnLayout"
  android:orientation="horizontal"
  android:layout_gravity="bottom"
  android:layout_weight="1"
  android:background="#FFFAF0"
  android:gravity="bottom"
 >
  <EditText
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:text="메세지"
   android:layout_weight="1"
      android:id="@+id/edtMsg"
      android:textSize="20dip"
  />
  <Button
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_weight="3"
      android:text="보내기"
      android:id="@+id/btnOk"
      android:textSize="20dip"
   />
    </LinearLayout> 
 </LinearLayout>

 

타이틀은 보이게 하는 방법은 없을까요?

헨씀히포 (3,660 포인트) 님이 2014년 1월 17일 질문

2개의 답변

0 추천
 
채택된 답변

질문을 처음부터 명확하게 해주시면 좋을듯 합니다.

말씀하시는데로 메시지에 포커스를 두어서 키보드가 위로 올라왔으나

아이디 영역이 가려지지 않습니다.

Gradler (109,780 포인트) 님이 2014년 1월 17일 답변
헨씀히포님이 2014년 1월 18일 채택됨
저는 분명히 아이디 부분이 안보입니다
그대로 하셨나요?
위 소스 그대로 복사해서 붙여넣기 한겁니다.
AndroidManifest.xml 에서 해당 activity쪽에 혹시 default 로 설정한 것외에 다른 추가 옵션이 들어가있는것은 아닌지 살펴보기 바랍니다.
테스트 프로젝트만들어서 직접해보세요
0 추천

올려두신 소스로 해보면 원하는데로 잘 나오는듯 보이는데요

타이틀이 무엇을 의미하는지 모르겠군요

Gradler (109,780 포인트) 님이 2014년 1월 17일 답변
타이틀이 아니라 아이디부분이 커서(포커스)가 메시지부분에 잇으면 아이디부분이 안보여서요 보이게 하고 싶어서요
...