I have to add Image in one of my project in slider Menu ,
I have used Android Studio Template Navigation Drawer for material design .
For adding header on top of the list I have modified few lines in code: below are the simple steps:
Create an Android Studio project and select Navigation Drawer Activity as shown below
Now your project structure is like this:
Now open activity_main.xml and add LinearLayout and image view as shown below highlighted lines
sudo ionic build android [Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]Error: /Users/Naushad/IonicProjects/IonicApp/platforms/android/cordova/build: Command failed with exit code 2 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:766:16) at Process.ChildProcess._handle.onexit (child_process.js:833:5) to solve this i use following steps in terminal :
sudo chown -R Naushad /usr/local/lib/node_modules/cordova still have same error than i do follwing step export PATH=$PATH:/users/Naushad/android-sdks/tools then i got below error :) [Error: Please install Android target: "android-22". Hint: Open the SDK manager by running: /users/Naushad/android-sdks/tools/androidYou will require:1. "SDK Platform" for android-222. "Android SDK Plat…
Today We are going to learn how we can create a git repository using android studio.
Android Studio Makes it very simple just follow the below steps and your project is on git :
First we setup our PC ::
for git repository online I am using Bitbucket , bitbucket allow us to host private repository free you can also use github but your project should be public if you want to use it free.
Here I am going to use bitbucket:
After creating repository you will see screen like this
Now open AndroidStudio Create new project.
after creating the project clcik on VCS on menu strip and enable git as shown below
Now your project git enabled ;
You can see terminal in andoid studio we can use it for git commands.
Now check terminal and write git status if it give you below message :
'git' is not recognized as an internal or external command, operable program or batch file.
then you have to follow below steps …