0
A
回答
0
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white">
<RelativeLayout
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:background="@drawable/header_bg"
android:layout_gravity="top">
<ImageButton
android:id="@+id/btnBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:tint="@color/colorPrimary"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:src="@drawable/back_icon"
android:background="?attr/selectableItemBackgroundBorderless"/>
<ImageButton
android:id="@+id/btnNevMenu"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="@drawable/ic_nev_menu"
android:scaleType="fitXY"
android:background="?attr/selectableItemBackgroundBorderless"/>
</RelativeLayout>
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="-2dp"
android:layout_below="@+id/header"/>
<com.github.siyamed.shapeimageview.CircularImageView
android:id="@+id/iv_Profile"
android:layout_width="75dp"
android:layout_height="75dp"
app:siBorderWidth="1dp"
app:siBorderColor="@color/colorPrimary"
android:layout_marginTop="15dp"
android:layout_centerHorizontal="true"
android:layout_gravity="top|center"
android:src="@drawable/photo"/>
</RelativeLayout>
// and this frameLayout inside fragment or activity where you want.
<FrameLayout
android:layout_width="match_parent"
android:layout_height="@dimen/_220sdp"
android:layout_marginBottom="50dp"
android:layout_gravity="top"
app:layout_collapseMode="parallax">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/photo"
android:scaleType="centerCrop"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/_150sdp"
android:layout_marginLeft="@dimen/_16sdp"
android:layout_marginRight="@dimen/_16sdp"
android:src="@drawable/ic_triangle"
android:scaleType="fitXY"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
android:layout_gravity="bottom"
android:layout_margin="16dp"
android:background="@drawable/transprent_primary_rounded"
android:weightSum="4">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center">
<com.cv.TextviewRegular
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance.AppCompat.Inverse"
android:text="32"/>
<com.cv.TextviewRegular
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance.AppCompat.Inverse"
android:text="Followers"/>
</LinearLayout>
<View
android:layout_width="1dp"
android:layout_height="30dp"
android:layout_gravity="center"
android:background="@color/white"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center">
<com.cv.TextviewRegular
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance.AppCompat.Inverse"
android:text="50"/>
<com.cv.TextviewRegular
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance.AppCompat.Inverse"
android:text="Following"/>
</LinearLayout>
<View
android:layout_width="1dp"
android:layout_height="30dp"
android:layout_gravity="center"
android:background="@color/white"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center">
<com.cv.TextviewRegular
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance.AppCompat.Inverse"
android:text="85"/>
<com.cv.TextviewRegular
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance.AppCompat.Inverse"
android:text="Post"/>
</LinearLayout>
<View
android:layout_width="1dp"
android:layout_height="30dp"
android:layout_gravity="center"
android:background="@color/white"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center">
<com.cv.TextviewRegular
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance.AppCompat.Inverse"
android:text="02"/>
<com.cv.TextviewRegular
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/TextAppearance.AppCompat.Inverse"
android:text="My Service"/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
相關問題
- 1. 打造的Android
- 2. 打造的Android
- 3. 打造的Android
- 4. 打造的Android XML
- 5. 的Android打造一個JSONObjects
- 6. 錯誤打造的Android面料項目
- 7. 打造的Android項目不合格
- 8. 清除Android組建緩存打造
- 9. JavaScript打造的Json
- 10. 創造的Android
- 11. 創造的Android
- 12. 創造的Android
- 13. 創造的Android
- 14. Android的改造
- 15. 優勢打造
- 16. 打破構造
- 17. 打造以
- 18. 的Android程序兼容性的lib +設計= LIB錯誤打造
- 19. Android的改造簡單的檢查和打印結果
- 20. XLSO&MM打造的課程
- 21. 打造時尚的TextView
- 22. 的Android nullexception構造
- 23. 打字稿構造
- 24. iPhone打造編程
- 25. MouseEvent造成打擊
- 26. 努力打造VIM
- 27. 打字稿鑄造
- 28. 如何打造「generate_secret_token」
- 29. 如何打造的Android(NDK)C-戰神庫
- 30. 如何使用CMake的生成表達爲Android打造