android - On adding nested linearLayout under existing linear layout, error: "applicaton has stopped, force closing" -


please see code. if remove additions.. code working fine trying add 1 text field under linear layout.. please see comments in code
working code

    <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"         android:layout_width = "match_parent"         android:layout_height = "match_parent"         android:orientation = "vertical">         <framelayout android:id="@+id/rootframelayout"         android:layout_width = "match_parent"         android:layout_height = "42dip">            <textview         android:id="@+id/roottextview"         android:layout_width = "wrap_content"         android:layout_height = "wrap_content"         android:text="textview"         android:textcolor="@color/white"         android:textsize="12sp"          android:ellipsize="end"         android:scrollhorizontally="true"         android:lines="2"/>                <!--if insert new code not working (new code find below)-->                       </framelayout>            <framelayout          android:id="@+id/rootframelayout2"         android:layout_width = "match_parent"         android:layout_height = "match_parent"         android:background = "@drawable/pink.bg"         adroid:layout_gravity = "top" >            <progressbar         android:id="@+id/progressbar1"         android:layout_width = "wrap_content"         android:layout_height = "wrap_content"         android:background = "@drawable/pink.bg"         adroid:layout_gravity = "center" />            </framelayout>           </linearlayout>  

new code: if add following code in working code. apllications force closing.

        <linearlayout          android:id="@+id/linearlayout1"         android:layout_width = "wrap_content"         android:layout_height = "wrap_content"         android:visiblity ="invisible">            <textview          android:id="@+id/lineartextview"         android:layout_width = "wrap_content"         android:layout_height = "wrap_content" />            </linearlayout>   


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -