android - OnClick Listener not working for buttons which exists in a linearlayout for which the alignParentBottom is true -


i having activity , want create button @ end of layout, created layout file , in linearlayout have set it's layout_alignparentbottom property true , created button likes in it. including layout file in other layout file when applying onclicklistener button, nothing.

when remove layout_alignparentbottom linearlayout properties, onclicklistener start working.

can please me here resolve issue?

some other widget might coming in way. if there above button, wont take clicklistener.

for ex. if there list in layout too,

<button     android:layout_alignparentbottom="true"     android:layout_marginleft="@dimen/viewspace1"     android:layout_marginright="@dimen/viewspace1"     android:layout_marginbottom="@dimen/viewspace1"     android:layout_width="fill_parent"     android:layout_height="@dimen/headerheight_small"     android:id="@+id/btnshare"     style="@style/buttonlogin"     android:text="next" />  <listview      android:layout_above="@id/btnshare"     android:id="@+id/list"     android:layout_below="@id/layoutheader"     android:layout_marginleft="@dimen/viewspace3"     android:layout_marginright="@dimen/viewspace3"     android:layout_marginbottom="@dimen/viewspace3"     android:layout_height="wrap_content"     android:layout_width="fill_parent" />   

so share button stays safe clickability. have kept list above btnshare. safety if overlaps button.if there still problem, post code exact problem can pin pointed.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -