Android UI Layout adjustment - android-layout

I've set up the tab and basic navigation, But having problem how to create such list view in android, with 2 or more rows and have two columns as in picture below adjusted side by side(have imageview & button below each image) & another list view below that one, which is basic and simple. I'm totally new to android ui xml, please guide me, or point me to any good learning resource about this on web.

Use dashboard in your application.Just Google it about Dashboard.You will get tutorial.This is an sample dashboard view.

Related

Is it possible to create just one xml layout for all products, while the product description changes depending on the product chosen in android?

I'm trying to create a POS Andriod app for my first Android class. For the menu, I implemented a scrollview for our client to choose a product of theirs. When a product is clicked, it goes to another screen wherein the product details (image and description) and 'add to cart' is found. What I did was created that menu screen, and numerous activity screens along with its respective layout xml files for each product offered. My question is, is there a more efficient way to go about this? I mean, is it possible to create just one xml layout for all products, while the product description changes depending on the product chosen? I've tried searching for a guide about this, but I'm not sure if I've been searching for the correct keywords.
Thank you. :)
You can modify contents of the layout with methods like
TextView description = (TextView) findViewById(R.id.description);
description.setText("My cool product");
description.setCompoundDrawablesRelativeWithIntrinsicBounds
(null, R.drawable.product1, null, null);

Swapping ActionBar items when displaying different Tabs and Detail Views

this is not a technical question, but one for advice regarding the best practices in designing an Android tablet UI.
I've got my concept of an Android Phone app pinned down.
The first activity (master view) launched contains a tab bar with three fragments from which the user can launch detail view activities of different sorts.
Both the master-view activity and the detail-view activities have actions in their action bars. Different detail views have different action items.
My question is: How should I organize and display the action items on a tablet, where an activity combines both views side by side?
The problem is the unified action bar for both the master-view fragment and whatever kind of detail fragment is shown. I do not think it is a good idea to start messing with the contents of the action bar whenever a different kind of detail view is opened.
The Android Design Guide does not tell you much on that front. There is a sample of a Contacts app in the "Multi-pane Layouts" section, but it does not actually deal with the problem. It evades it, by putting the single relevant action as an icon inside the detail view fragment.
Any advice with regards to best practices and references are appreciated.
I would suggest leaving your master details icons in the action bar, whilst putting your details view icons in another view/area within the details fragment.
My reasoning would be that icons in the action bar affect / are associated with the whole app / view on screen. Whilst your details icons only affect the details view and therefor should not be in the action menu when showing multiple fragments.
I guess you will have to see how the designs look..
I am not a fan of the action bar icons being changed from within the same activity (even if it contains multiple fragments), however when you load a new activity (like in your phone design) then I say yeah throw them in the action bar.
If I understand your question correctly, which I think is basically a question of how multiple Fragments (i.e. when on a multi-pane layout such as on a tablet) should contribute to the single ActionBar, it's quite straightforward and it is actually briefly discussed in the documentation here. Essentially, you can have the multiple Fragments all contributing their own menu items / action items to the single action bar, via some simple API calls.

Android googledocs app component name

I am planning to provide menus for my app similar to the sliding menu shown in the below image when clicking on the button in the list view. Could you give me some pointers on, how it can be achieved. Is it SubMenu ?
http://static5.businessinsider.com/image/4db84baeccd1d58435080000/google-docs-for-android.jpg
I got it, the behavior or pattern name is QuikActions.
Useful introductory article for the beginners like me is available in the following link
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/

List view inside scroll view design

I have a UI design which should contain a text data and this can be dynamic so i need a scroll view after the TextView is over i need a list view, Now this list view onItemClick of a cell should expand and contract to show details, Any sample project or code from where i can achieve this UI design, Please help me with this one.
It is strongly not recommended to have Nested Views that scroll.
What you can do is have a TextView followed by the ListView. You can use expandable listView for your expansion requirement. All the examples are present in APIDemos shipped with Android SDK.
Try some of the stuff and get back for more help here.

How to create multirow & multicolumn bitmap layout on Blackberry

I have 8 bitmap and i want to put 4 of them to the first row, rest to the second row...
Can you help me to use TableLayoutManager?
See the BlackBerry developer knowledgebase article:
Create a rich UI layout with TableLayoutManager
It's a pretty simple class to work with, if you're familiar with RIM's thought process (lol)

Resources