how to create a vertical content Slider in android Activity - android

I want to create a vertical slider like as shown in image
slider image

Since you have an example do this:
get the .apk for that application
decompile it
try to understand how they've done it from the source code

Related

Display image in android application

Firstly I don't know what it is called but i want to know how and what it is. The thing is the video or image that we usually find on top of the page when we open an application page to download it from play store.I 'am currently doing a project and i want to include that design in my application.Please help me on how to do it.Thanks.
If I got you correctly the thing you are looking for could be Collapsing Toolbar Layout, and here is nice example of it.
Also you can achieve UI effect called Parallax Scroll using some external libs like ParallaxScroll and android-parallax-listview.
Also here is an example of Collapsing Toolbar Layout from CodePath:

How to implement Image slider with indicator in android

I want to implement image slider in android similar to this . But I need to do this without any third party dependencies . Is there any sample for implementing the same using View pager , or anything else. I need the exact slider style , with dot indicator
Follow the steps below to implement the same.
Step1:
create two circle images, one for on and other for off.
Step2:
Create three blank fragments for displaying the image. you can create as many as you want.
Step3:
Create a footer.xml to place the circle indicator.
Step4:
Create a fragment_main.xml to place the viewpager.
Step5:
Create an adapter class.
Please check this http://javaant.com/viewpager-with-circle-indicator-in-android/#.Vx3_gJN96Ht
to download the complete code

Using certain elements of an image in the [ImageView] widget as buttons

So lets say I have a segmented circle image asset inside an 'ImageView' widget, and I want to use each segment of that circle as a clickable surface to bring up a fragment with an image and some info.
Is there any way to build transparent arrangeable borders that I can use to do this with?
I'm using android studio with the default NavigationDrawer activity if that helps.
Maybe adding some ImageViews with transparent images on top of each section and making them clickable? That's how I'd do it. Of course this won't cover perfectly the area but it may work for what you need it.
So I found this. In case it can be of help to anyone else:
https://github.com/anupcowkur/Android-Wheel-Menu

Expandable Tab menu

everybody
Currently i am working on Android Native App .I wish to create a expandable tab without any HTML or JavasScript file. My App is totally native App.
I wish to show something like above picture.
You can try background image for Button/image.
Set one background-1 for default, use another for hover/ click/ select effect.

edit imagebutton picture

I made an app that displays an AlertDialog once I click on an ImageButton in eclipse.
But when I was trying to input a picture onto the ImageButton, I only found a way to do it in the XML graphic layout of eclipse via right clicking on the Button and then on "edit src". Is there a way to put in the picture from written XML itself?
Yes. You can put a picture into the written xml of an Android layout file.
With your xml file open in eclipse, there are two tabs at the bottom of the layout:
Graphical Layout
.xml
Press the ".xml" tab and you can edit the raw xml.
In order to add an image to your ImageButton, do this:
android:background="#drawable/your_image"
There are also other tags that work too, such as android:src, and the differences are described here: What is the difference between src and background of ImageView.
There are also ways to add the image or change the image programmatically in your .java file. This is useful only if you want to change the image dynamically (although, see below for changes of state)
And, this is just the beginning of what you can do...
If you don't want the default frame around the button, you can use other items, such as an ImageView to make your button.
If you want to display various graphical images depending on state such as "pressed", "selected", etc, then you can specify a "selector" file instead of "your_image". There are many examples of how to make "selector" files on this site, and how to implement the other upgrades to your button.
Have fun!

Categories

Resources