Where do I start to create a custom android control? [closed] - android

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I would like to build a compound control for my Android app that can be duplicated to create an array of these controls that appears as a scrollable list in the UI. Specifically, I want to create a control for an audio channel that has a volume fader, a pan knob, a mute button, and a solo button. Then I would like to be able to automatically duplicate this control to make 16 or 24 channel controllers that show up in a list, like an audio mixer.
How is this best accomplished? As of right now, I plan to jump right in and create an extension of the View class, which I assume will allow me to create a custom control. However, I've never done it before and am looking for some confirmation. Can someone please tell me I'm headed the right direction? If not, please show me a better way

This is all discussed in official docs: Creating Custom Views

Related

How to show a Help or Notice to user in android application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
i recently created a application so i want to give a descreption or help to the application .
Like a hint or alert so that user can refer this and if he want this show every time or on first time
like this
so after installing the app should give this notice if user dont want that notice he can hide it for ever..
How to show this kind of alert.. i tried with alert but it always displays i want it just like this
You are supposed to create simple custom alertdialog with the custom layout as show HERE
did you check this library, i found it really usefull :
https://github.com/amlcurran/ShowcaseView
The second one is quiet easier then the previous one and its nothing but an AlertDialog and you may keep track of it by persisting its state via shared-preferences or Sqlite Db.
And for the previous case without googling for an opensource project I would recommend you to create your own RelativeLayout and place some imageViews at the respective positions and for persisting the states go by the above mentioned methodology.
use one transparent layout and maintain your help text on it, using images to draw the layout.
check this link it gives some idea for that help layout.
link

How to create a card-like android style listview [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Right now, Google used a card-like design for their apps, like Google Plus or Youtube.
My question is that how to implement this in my app. What I need is this:
It should be a ListView, each item has a card background, and some spacing between items.
Some card may contain another ListView, with some paddings and no divider spacing in this internal(inside of the card) listview.
I know it is simple to get (1), but what about (2) ?
I tried use CWAC-Merge adapter, but I can not get (2) work.
What about this library? A library that allows you to easily mimic Google Play's card layout on Android.

App Introduction to user on first installation [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I wonder how google does it?? When you first power your device on, A introduction to apps and features will be shown in green color when user touches it the element will disappear ! I tried searching google but i don't get exact idea of what that layout / element was? Please regret me if this was a duplicate question.
this is definitely what you are looking for
Holo-themed transparent demo overlays
Are you just trying to do something on the first launch and then never again? Or are you looking for that look and feel? If so, it's probably just images and such layed out. If you want to test the first launch, there's a few ways to do it. One of the easiest is to create an empty file in the shared preferences in your onCreate() method, then check to see if it is there. If it's not there, you do your on first launch action and then create the file afterwards.
Check this out: Determine if android app is the first time used

how to make my two player checkers application ,a one player checkers application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have developed my first android application i.e. CHECKERS ,which is working perfectly for two players, now some users of my app wants me to add a single player mode as well.
Can you guys plz help me how can I fulfill this demand,How to code for this.Your help will be highly respected.
I used canvas drawing in my app and my class extends SurfaceView implements runnable.
Thanks!
I am willing to help you with ideas:
I assume you already have a project, which works with two players. If you want to achieve 1-player mode without too much pain, you should follow the ideas described below:
Create a ComputerPlayer class, inherit it from your Player class.
Override methods, such as move to occur automatically (at first, start with random moves, don't get delved deep into the AI logic just yet, because first you want to support automatic moves, and then you will want to focus on AI strategies)
Where you send/receive the moves support sending/receiving moves from ComputerPlayer as well (you will not really send a message to the network, but your current project probably uses terminology as "send", "receive")
Test, test and test.
When everything is well, choose an AI strategy, implement it and you are done with the upgrade.

How to make 3d background for an android game [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have started creating a 3d android game and of course this is my first experience in game development.I found out many tutorials and created a man like model in 3d as .md2 file and inserted animation into it. And now i got a perfect hero to make my game.
Now I want to show like he walks and the background was moving backwards. Please suggest me how can i create 3d background and make it move backwards so it will appear like perfectly he walks. Many more thanks for reading this and its great if u suggest any answer, so that my long search will comes to end. Thanks
I finally made moving the background by using the SkyBox, i created a box and make it moved by moving the scene.camera() position value. and use blender to create a 3d Model
Try to use one library to made it for you i have a website with a lot of libraries for android try one and give some feedback
Android Libraries
sorry for my bad english.

Categories

Resources