Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have been programming on android for the past few months and have hit a point where I comprehend the basic ideas and principles for Android development.
Currently I think that my code lacks the appropriate structure and clearance that is required in order for your code to be readable. I know this because sometimes even I find it hard to read my code - and I am not talking about the variable or classes names. I am talking about for example when I open a big ( lengthy ) activity and have 5 overriden methods, 5 more and tons of global variables, a couple of inner-classes and so on it gets hard to find stuff in.
Therefore I have been looking for some guide lines for how to do this so that the code looks good and is readable but I haven't been able to.
There are also small problems to which I find hard to find an answer and usually go with what i feel like rather than knowing for sure what is right in the situation. For example what is better - having the activity implement onClickListener and then having a big switch statement, or just creating new listener for every UI element.
I was hoping some of you might know a place where I can find answers for questions like this. If there is not I will start adding the questions here.
Thank you
I used this to learn Android MVP: https://www.youtube.com/watch?v=qE4DEwrK2N4
Github link: https://github.com/jpotts18/android-mvp
You can also look at a app that I created which follows mvp structure (well sort of) and with its help, it is easier for me to rollout more features constantly without cluttering my activity/fragment classes. Link: https://github.com/crazyhitty/Munch
Check out Google's Android Code Style guidelines. It contains some terrific guidelines regarding coding guidelines and style.
This was written by Chet Haase who works at Google on the Android UI team.
He was input his own and the framework teams knowledge into the articles to clarify the correct Android programming Guidelines.
Article 1
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm an android developer.
Since the first day into the android studio, I started complaining about my abilities in graphic design for activities UI and now I'm looking for a guide or a tutorial that could help me with this. Kind of newbie help.
I already made my best out of the simple drawable, but I want to do more, I need some way to make vectors, to understand how to make (i.e.) new button styles. Just a few minutes ago I gave up on trying to make a simple shape that would have been placed as part of the background.
I tried finding something with google obviously but using words like "design" "android studio" "vector" and others always makes show up irrelevant results.
I have no problem looking for Java problems, but with a graphic, I'm complete newbie, and I'm frustrated even more because I can't find a way out of this ignorance.
** Thank you all** for your help!
You could try using Adobe XD for the fact that it is fairly easy and pretty straightforward to use and has some very helpful plugins that automate your task. I have zero knowledge of how to make vector or use those path and all things, but XD has some great tools which help me make any sort of background vector/shape or a custom shape for a particular preferences and it provides you with the means to export the designed graphics at the various dpi level that android needs, thus cutting down the problem of responsiveness and having to recreate the designs at different dpi levels or you could just export them as svg's and just forget about it.
ADOBE XD!
A great and free alternative would be FIGMA, not only it gives you all these but also the code to implement these yourself, it provides code for CSS, iOS and ANDROID.
Figma can be used on their site or you could download the desktop version.
FIGMA
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
As a beginner it is very hard to understand what are these things
Is there any resource which can give a grasp knowledge of things in easy language?
In simple words:
For a long time Google didn't give any indication to developers on how they should write (architecture wise) their apps. But last year they've released a set of libraries that guide developers on how to structure their code by structuring the app in clear layers and reinforcing good practices. That's what they call architecture components.
LifeCycle, LiveData, ViewModel and Room are the main classes in these libraries. They go well with a MVVM architecture and if you apply them correctly (according to Google) your app will be easy to maintain and test.
As for resources, you can check the Google I/O release talk and the documentation. You can also find many online tutorials to get you started.
If you know nothing of android development it will be hard to understand the use of these components so I would advise you to study more about the SDK and then go back to these components. Note as well that you need to know about Reactive Extensions for android and java/kotlin too because these libraries rely a lot on them.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I know there have been questions here before about keyboard dev, but none of their answers seemed to help me. I'm new to android, but I am an experienced programmer. I'm looking for something that will show me, preferably from scratch, how to write an android keyboard. I want to write something that looks nothing like a standard keyboard (think 8pen). I've looked at Creating an Input Method and the SoftKeyboard source. The problem with the former is that there's not enough detail - it tells me what the different classes do, but not how to edit them to get what I want. The latter is great for changing what happens when the standard keyboard is used, but it doesn't really have any information about changing the layout.
tl;dr I want to make a keyboard that is essentially just 8 gigantic buttons. Where can I go to learn how to do this?
Here is a good sample that will get you started: http://developer.android.com/resources/samples/SoftKeyboard/index.html
From there, everything else is stock Android development. In-depth documentation can be found here: http://developer.android.com/index.html
There are some examples for the soft keyboard in the sdk/samples/version. That is googles own modifiable code. Other than that you can make several keyboard skins using the listed examples or smartkey.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am new with Android UI and I am looking for some resources about best practices to design a UI (examples of UI elements, tutorials, etc.)
I've been looking in Google or http://developer.android.com/resources/tutorials but there is nothing helpful at all.
Can anyone provide me some resources/links ?
There is actually a nice web which explains the most usable UI Design patters used by many apps already: http://www.androidpatterns.com/
If you have no experience with Android UI but you know a little Java already, maybe this is something for you:
SimpleUi ( https://github.com/bitstars/SimpleUi )
The generated UI (code below):
The complete code to create this Android UI:
I use it in real applications, not only for fast prototyping or dialogs and its well tested over the years. The concept is based on the model view control principle and for most common scenarios there are ready to use components which automatically look correct on any device. I don't say it should be used for any UI (e.g. listviews should be done by hand) but for most usecases this should be quite handy ;) Oh and feel free to fork it and improve it further if you want
UI Patterns, shown on the Twitter app, but they're common on Android in general:
http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html
http://www.androiduipatterns.com/
Depending which pattern you want to implement, there are open source projects/samples out there, i.e. for the Quick Contact Bar, etc.
Check anddev.. normally there are nice examples of UI elements. Also some nice tutorials at mobiforge 1 and 2.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I read carefully the good UI practice from the Google Dev Blog; http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html
and I found that they are right and twitter is an application that I really love for its User Friendly Interface ( like the Google IO app too)
As I spend most of my time developping the interface of my application, I found that a waste of time and the results are quite bad. I think that a lot of dev's like me have maybe a lack of photoshop skills and "ergonomy" ( does this word exist in english?).
I have read also on Twitter Blog that the application would be Open source: http://blog.twitter.com/2010/04/twitter-for-android-robots-like-to.html
But I havn't heard about any code release.
As there are to many things to care, regarding to the Google dev blog, I would like to know if there is an open source application that could learn me how to use all these pattern ( search bar, moving bitmaps, QuickActions, etc.)
I know that the answer to my question is not a simple line of code, but maybe an open source project or reference application to learn how to do the UI tricks as simple as they are on the Twitter app.
Thank a lot for any guide/blog/code sample.
But I havn't heard about any code
release.
The Twitter application has not been released as of the time of this writing.
I would like to know if there is an
open source application that could
learn me how to use all these pattern
( search bar, moving bitmaps,
QuickActions, etc.)
The Google I|O 2010 app is open source. How closely that app's implementation of the UI concepts meets the Twitter app's implementation of the same is unknown.