Android Preference Screen to look like device admin - android

i want to achieve the theme of the device admin in my preference screen, see image below to show what I mean.
http://i.stack.imgur.com/TZHnF.png
i have followed the example in sdk but ended up with something like this
http://i48.tinypic.com/b4xkl0.png
how can i achieve the first image?
EDIT: I found out it is actually a device default theme

I think to get the first view, you need to use MasterDetail View.
Left fragment is a List View (Categories) and the right view a Detailed view is again ListView with category detail items.
Check the MasterDetailView example at http://developer.android.com/training/basics/fragments/fragment-ui.html.
I am not sure the Preferences API supports this directly.

Related

Android Tree view type control that can also support controls like button and image view etc?

i have been searching for control like tree view that also support control in it. But i have not found any usefull thing except link,
https://code.google.com/p/tree-view-list-android/
how can i do my required things as i mentioned in also viewable in pic attached
when i click it open like tree view i can have control like tab or button as shown in pic but would have also control inside that open when we click
Or i will have to do it on design mode ? any example will be appreciable
Hope sfor your suggestion thanks in advance

What is the Jelly Bean listview design pattern used by the People app called? How is it built?

Been unable to find anything by googling, probably because I don't know what to call this UI pattern. The JB people app shows contacts on the left, and details for the selected contact on the right. The details fragment on the right has a triangle pointing to the selected contact. What is this Android UI pattern called? How do I implement it.
This is a Master Detail Flow template, which you can get code for if you start a new project and choose to use the MasterDetailFlow template (if you have the latest ADT updates).
As far as the triangle / arrow part goes, I'm not quite sure how Google does it, but this is how I would tackle it:
In the list fragment when an item is selected, it would have an ImageView with the triangle / arrow as its resource that matches the background of the detail fragment, align it to the right of the list row and make sure there is not padding / margin between it and the view's edge. You could either use a ViewStub (http://developer.android.com/reference/android/view/ViewStub.html) or just set the default visibility in the XML of the ImageView to invisible.
Then, in the callback for a list item being clicked, simply inflate or make visible the triangle image in the list row.
I hope this helps. Let me know if you need anything explained in more detail.
Disclaimer: I'm sure this method I've described is not the best / the way Google does it, but this is how I would start trying to implement this feature.

In Android how can I design a view like the attached image?

I am new in android and I have a view which is in the attach image. I have to open this view after clicking on list item, but I am not finding any proper way to solve this please suggest me how can i open a dialog like in Image.
Check PopupWindow control in android developers, does exactly what you want. There are numerous tutorials on the web on how to customize, animate, have functionality etc. It has an onCreate method and in simple words it works just like an Activity with specific bounds. It can be attached and shown anywhere and anytime. It's actually quite useful. When you don't want to use dialogs this is the best option.

android 4.0 spinner usage

I want to be able to do what is on the picture, provided by this link, under the "Allow cutting through hierarchies" section. I thought that I could do that using a spinner, but from the android documentation I realized that a spinner can show one child at a time and lets the user pick among them. In my case, (and from the example I provided), you have some other text displayed, and then you can choose from some other options provided in sth that looks like a popup, list that contains the things that i want to choose from. I don't know how this is implemented, but it's used in the google music app for android 4.0. If someone has an idea, have implemented sth like this, please give me some advice.
It is not a spinner. Its just a view (in the Mail app a relative layout) See here
On click this View opens a popupmenu.
Therefore it is looking like a spinner but you can add you custom behaviour.

Layout styles in android

i want to create screen in android like the image below(click on the hyperlink) but i am not getting the idea that how to create this screen just provide me solution for my problem.click to see image
I agree with sahhhm on the ListView. In addition, to display the cinema info you will need a custom list-item view which is going to contain an image view to display the left-hand image, four different text views to display the text and another image view for the right-hand image. You'll also have to accommodate the location in a view and the control bar at the top is possibly a custom control displayed in an activity which has the attribute android:theme="#android:style/Theme.NoTitleBar" in the android manifest file so that the title bar is not shown.
You will want to take a look at ListView. Here are a couple of basic tutorials (Android Developer Tutorial and Android People Tutorial) that will help get you started. Afterwards, you should be able to search for and find more specific examples of what you want.

Categories

Resources