as long as I don't use my custom adapter. On the other side, I can have the listview in a relative layout. However, the custom adapter works, as long as the listview is not in a relative layout (ex: frame layout). Currently, items in the listview don't show. ![]() I've no way to test it, but the idea is anycodings_android to add anycodings_android in anycodings_android ListView. So, I have a vanilla ListView a custom adapter and a relative layout. What anycodings_listview I get is only the listview in full screen anycodings_listview mode.Īs i told you before, when I watch the anycodings_listview layout in the design window, it's how I anycodings_listview desire. I just want to split the screen in 2 anycodings_listview parts:Ī relative layout in the superior anycodings_listview part and a listview under this layout. XML ![]() ![]() ![]() Navigate to the app > res > layout > activitymain.xml and add the below code to that file. When I see the layout on the Design window anycodings_listview it's correct, but when I run it on my phone, anycodings_listview the relative layout disappear and the anycodings_listview listview takes the whole layout. Below is the alignTop code and layout image in which we have aligned a view with id textView Top of another image with id imageView. Navigate to the app > res > layout > activitymain.xml and add the below code to that file. In the activitymain.xml remove the default TextView and change the layout to RelativeLayout and add the ExpandableTextView and inside it, we add a TextView and ImageButton as shown below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |