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

xml 파싱 후 태그 제거 & 텍스트 뷰 화면전환 관련 질문 드립니다.

0 추천

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

    xmlns:tools="http://schemas.android.com/tools"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:orientation="vertical"

    android:padding="10dp">

    

    <LinearLayout 

        android:layout_width="match_parent"

        android:layout_height="50dp"

        android:orientation="horizontal"

        android:weightSum="10">

        

        <EditText android:id="@+id/edit"

         android:layout_width="0dp"

         android:layout_height="match_parent"

         android:layout_weight="8"

         android:textSize="12sp"

         android:hint="enter text to search"/>

     

     <Button android:id="@+id/button"

         android:layout_width="0dp"

         android:layout_height="match_parent"

         android:layout_weight="2"

         android:text="search"

         android:textSize="12sp"

         android:onClick="mOnClick"/>

        

    </LinearLayout>    

    

    <ScrollView 

        android:layout_width="match_parent"

        android:layout_height="match_parent">

     

        <TextView android:id="@+id/text"

        android:layout_width="match_parent"

        android:layout_height="match_parent"

        android:textSize="8sp"        

        android:textStyle="bold"/>

        

    </ScrollView>     




</LinearLayout>

 

(메인 소스는 위 주소 본문에 적었습니다.)
 
소스와 실행 사진입니다. xml 파싱을 통해서 영화 검색 APP을 만들고있는데, 실행을 시키면 저런식으로<b> 태그가 붙어서 나옵니다.. 이러한 태그 제거가 불가능한가요 ? 좀 더 깔끔하게 보고싶은데...
 
그리고 현재 검색을 하면 텍스트 형태로 뿌려지는데 해당 영화 제목이나 부분을 클릭하면 보다 자세한 설명으로 넘어가도록 (다음 화면으로 넘어가도록) 조언도 가능하시면 해주실수있으실지..

 

익명사용자 님이 2015년 5월 17일 질문

1개의 답변

0 추천
가져온 데이터를(문자열) 을 replace나 remove 로 <b> 를 지우면되겠지요...

 

---------------------------------------

doridori2013@nate.com
익명사용자 님이 2015년 5월 17일 답변
...