combining text and image in android - android

hie all,
i was trying to implement the home screen in carousel view, and i am stuck in combining the application icon and the title with respect to it. i am able to show the applications icons but merging with the title is to be done. i was refering the following blog
carouse
in the below diagram there is only application and are missing with title. i tried with layout inflater but i am getting an error. that class cast exception . i this its because custom CarouselImageView class what i am using . but unable to solve it.. :(
thanks in advance
datta

TextView has a property called drawable top.
Try converting your image to drawable and set to the top of textview.

Related

How can I create this custom pop-up message in Android activity?

I am tasked with creating this kind of pop-up message for an app. I attached an image bellow with the design,
Note that the pop-up is placed right bellow a certain ImageButton to indicate something about it. The pop-up must also contain an ImageView, a TextView and two Buttons.
I know that the Alert Dialog native for Android opens a Dialog Popup at the center of the screen that has a rectangular shape and also makes the background behind it darker. But I want to create something that matches this design exactly and right now I have no idea how.
Can anyone show me how to do this, if necessary, even a library would help. All that matters is that the solution has to work on any Android OS equal or higher than v6.0 (Marshmallow).
Thank You!
Below popup library will help
https://android-arsenal.com/details/1/2927
you can inflate your custom View into this library

Yahoo News App like slanted custom ImageView in Android

I know this question has been asked before and I am unable to get a good solution so far.
I need to create a custom ImageView like the one use in the yahoo news app like below screenshot.
In the View hierarchy in the right, you can see its an imageview only. Below there is a framelayout and I attached a screenshot of that as well.
I don't think this is achieved using a layer-list, which can draw custom shapes on top of views.
So how to create a custom imageview with custom shape like this in android?
Any suggestion is really appreciated.
Thanks.

Android: Locating basic drawable

How do you reference the drawable for the 'home as up' icon?
I am trying to add this drawable in a custom XML layout. I do not want to change the icon displayed in the ActionBar, but rather use the drawable for something completely different
Tips on how to go about finding it without searching through every item are appreciated!
This image is named as ic_ab_back_holo_dark_am.png
or ic_ab_back_holo_light_am.png
These images are at sdk/platforms/version/data/res/drawable-versions where version must be 11 or later.
like
sdk/platforms/android-19/data/res/drawable-hdpi. You can find all images from there with there actual name.

Android How to create default gallery to Circular Gallery?

I want to create the gallery view like below image. i have goggled it a lot and have tried with carousel also. but i am unable to create it . can any one advice me to create ta view like that ? i have tried with the gallery view styles also. but i am haven't found anything.
Waiting for better response. Thanks.
You can use Gama API for this look here

How do you rearrange buttons where you want them in Eclipse?

Hey guys I am having trouble with placing my buttons in my XML layout. I already have a background and was just trying to put 3 buttons near the middle and thats where I'm having trouble. I know about center gravity and all that but could you help me? Also, If I made my own buttons can I just import them using the image button thing, or is that not right? Thanks for the help!
PS: Also, there is a big white box around my button. How do I get that to go away?
I posted this answer to your duplicate question, so I'll also post it here. :)
You can rearrange elements of your layout by editing the XML directly or by dragging and dropping in the outline view or the graphical layout view (I find the latter harder to do reliably).
To use your custom views, click on the "Custom & Library Views" button in the graphical layout palette, or just type in the fully qualified class name as the view tag in the XML.
If you use Image button you can set your custom Image to src property or background property. If youi chose src you should add android:background="#null".
But I would recommend to use background property while if you use 9-patch png (who knows maybe tomorow you will use 9-patch) they would not stretch if you set it in src.

Categories

Resources