i developing android application in have page called invitation looking below, in image john , danny textview output.
if tap of text view need show current textview name 3 buttons immediate below panel, not popup show in below diagram
______________________________________ | | | john bday | |____________________________________| | | | dany bday (on tap) | |____________________________________| | | | dany bday | | _ _ _ | | |_|yes |_|no |_| may | |____________________________________| i have textview code here
<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:divider="?android:dividervertical" android:showdividers="middle" android:dividerpadding="5dp" android:id="@+id/invitation_single" tools:context=".mainactivity" > <textview android:id="@+id/name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textcolor="@color/black" android:paddingleft="5dp" android:paddingright="0dp" android:paddingtop="3dp" android:textsize="18sp" android:textstyle="bold" /> </linearlayout> can me.thanks in advance.
you need create xml layout this:
<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:layout_orientation="vertical"> <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:divider="?android:dividervertical" android:showdividers="middle" android:dividerpadding="5dp" android:id="@+id/invitation_single" tools:context=".mainactivity" > <textview android:id="@+id/name" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textcolor="@color/black" android:paddingleft="5dp" android:paddingright="0dp" android:paddingtop="3dp" android:textsize="18sp" android:textstyle="bold" /> </linearlayout> <--the layout showing pop kinda thing visibility flase id="hidden"--> </linearlayout> and programatically need set visibility true, based on ontouchlistener.
like this:
view.setontouchlistener(new ontouchlistener() { public boolean ontouch(view v, motionevent event) { v.findelementbyid("hidden"); v.setvisibility(true); } } adding multiple values can done using use of custom adapter.
Comments
Post a Comment