android - Combine EditText, TextView and Preference -


is possible view contained block textview, editext , second block contains preferencescreen (checkbox, list, chexbox etc...)

what want do, somethink this. first block has 2 edittext , 2 textview title, , message. in second block (at botttom) want configure stoof.

please how can make it. want bottom block list view. when make hover on each item want item listview item


i tried this, not work! defined inflated class public static class in myactivity class. doing wrong?

<?xml version="1.0" encoding="utf-8"?> <framelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/framelayout1"     android:layout_width="fill_parent"     android:layout_height="fill_parent">     <scrollview         android:layout_width="fill_parent"         android:layout_height="wrap_content">         <linearlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_margintop="20dp"             android:orientation="vertical" >                          <view                 class="com.app.myactivity$prefsfragment"                 id="@+id/prayerformpref"                 android:layout_width="fill_parent"                 android:layout_height="wrap_content"                 />         </linearlayout>     </scrollview> </framelayout> 

whenever wish create custom view composite of other view objects, should extend layout (like linearlayout, relativelayout , on).

in extended layout, can inflate sub-layout or view xml (use layoutinflater). or, can add child views programatically using constructors, , viewgroup.addview().

the sdk guide explains thoroughly: http://developer.android.com/guide/topics/ui/custom-components.html#compound


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -