sMarket open Project …or create a new repository on the command line
echo "# sMarket" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:JeffreyLau/sMarket.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin [email protected]:JeffreyLau/sMarket.git
git push -u origin master
…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
Import code
#creat sPlay branch
git branch sPlay
git push origin sPlay
#sync local and remote branch
git fetch sPlay
git checkout --track origin/sPlay
git push origin <local_branch_name>:<remote_branch_name>
git push origin sPlay:sPlay
#当然如果当前在sPlay分支下,也可以直接
git push
#删除远程分支sPlay:
git push origin :sPlay
git push origin :sPlay
To [email protected]:JeffreyLau/sMarket.git
- [deleted] sPlay
#使用Toolbar #1.隱藏ActionBar <style name="AppBaseTheme" parent="Theme.AppCompat.Light.NoActionBar"> @color/colorPrimary @color/colorPrimaryDark @color/colorAccent </style> #2.AndroidMenfest中引用AppBaseTheme #3.佈局文件中使用 <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
#4.Activity中使用