Toolbar 去掉陰影
app:elevation="0dp"

 

//固定
app:layout_scrollFlags="enterAlwaysCollapsed"

//縮合後留下toolbar
app:layout_scrollFlags="scroll|exitUntilCollapsed"

app:layout_collapseMode="parallax"
app:layout_collapseParallaxMultiplier="0.7"

<android.support.design.widget.CoordinatorLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.design.widget.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:elevation="0dp"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">

        <android.support.design.widget.CollapsingToolbarLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fitsSystemWindows="false"
            app:contentScrim="#BF000000"
            app:expandedTitleMarginEnd="64dp"
            app:expandedTitleMarginStart="48dp"
            app:layout_scrollFlags="enterAlwaysCollapsed">

            <android.support.v7.widget.Toolbar
                android:id="@+id/toolbar"
                android:layout_width="match_parent"
                android:layout_height="?android:attr/actionBarSize"
                app:layout_collapseMode="pin">

            </android.support.v7.widget.Toolbar>

        </android.support.design.widget.CollapsingToolbarLayout>
    </android.support.design.widget.AppBarLayout>

    <android.support.v4.widget.NestedScrollView
        android:id="@+id/nested"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingBottom="10dp"
        android:paddingTop="0dp"
        app:layout_behavior="@string/appbar_scrolling_view_behavior">

        <LinearLayout
            android:id="@+id/linearLayout01"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginTop="20dp"
            android:orientation="vertical"
            android:paddingBottom="0dp"
            android:paddingLeft="16dp"
            android:paddingRight="16dp"
            android:paddingTop="0dp"
            android:background="@color/white">

        </LinearLayout>
    </android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>

小樂 發表在 痞客邦 留言(0) 人氣()

依照官網上的說明安裝firebase 

第一步是

add Firebase to your Android project

https://firebase.google.com/docs/android/setup

firebase api

classpath 'com.google.gms:google-services:3.1.1' // google-services plugin
compile 'com.google.firebase:firebase-core:11.6.2'

地圖 api

compile 'com.google.android.gms:play-services-maps:11.6.0' 

此時就可能會出現

updating the version of com.google.android.gms to 9.0.0

地雷區就是在 單獨使用firebase這樣還可以 如果有和google map 等api 一起使用的話

原來版本要放一樣的

原來版本要放一樣的

原來版本要放一樣的
 

官網的 Set Up Google Play Services 還是寫11.6.0

https://developers.google.com/android/guides/setup

螢幕快照 2017-12-11 下午3.43.08.png

第二步

https://firebase.google.com/docs/cloud-messaging/android/client

以上做個筆記

文章標籤

小樂 發表在 痞客邦 留言(0) 人氣()

一、禁止屏幕旋轉:

打開工程中的Andr​​oidManifest.xml 文件,在<activity> </activity> 中,添加一條屬性信息:

android:screenOrientation = "portrait"   (強制豎屏)

android:screenOrientation = "landscape"   (強制橫屏)

文章標籤

小樂 發表在 痞客邦 留言(0) 人氣()

這隻 htc 816 自從升上5.0之後 就開始了容量的悲劇

現在終於有可以解的屬光出現

馬上就來試試看 

先看一下原本的慘狀

7968.jpg

文章標籤

小樂 發表在 痞客邦 留言(0) 人氣()

回家家鄉必買的好吃下午茶

每次回家都意外想起這從小時後就有的美食

充滿回憶的滋味。

IMAG3855.jpg 

文章標籤

小樂 發表在 痞客邦 留言(0) 人氣()

每次回屏東都覺得沒什麼簡餐館可以吃 

這次回家想說上網看到新‧不老橋好像還不錯

就馬上打電話預約

20150705_115657

 

小樂 發表在 痞客邦 留言(0) 人氣()

很多人應該都是第一次去辦護照

剛好有一個新的辦理護照的經驗來分享

護照  

小樂 發表在 痞客邦 留言(1) 人氣()

台灣的東部一直以來都是最美的,這次台東行是帶著

第一次遊台東的心情出發,第一天早上由屏東出發

路途中經過南迴公路,由於是國慶連假所以車流量算多

加上又遇到慢速大車,不然還算是很好開的山路

一路開到金崙 會發現車越來越多,一直到經過多良車站 超級多人

所以也無法下去看看,所以只好一直開到目的地 - 金針山

上網查詢一下,一直有人說路很小不好開

事實上確實上山的路真的很小 

 

2015-01-08_224307 

來源:google地圖

一路上開到了忘憂谷,結果本來期待者會是這樣

2015-01-08_224920 

文章標籤

小樂 發表在 痞客邦 留言(0) 人氣()

說到曾文水庫~一定會覺得哪裡好玩~

當然我們從屏東一路殺到水庫~

由於沒來過所以很好奇~

本來還以為會山路崎嶇~但是卻異常的好開~~~

看到這青山綠水~~~ 整個水庫非常大~~每一個點都需要開車

DSC06022

 

文章標籤

小樂 發表在 痞客邦 留言(0) 人氣()

回屏東老家~老媽說有一家非常好吃的早餐店

一聽到很有名~就二話不說 立馬前往潮州去

DSC05997 

小樂 發表在 痞客邦 留言(0) 人氣()

1 2