2014-12-18 3 views
0

Мне нужно сделать некоторый дизайн пользовательского интерфейса в приложении Android, скорее всего, только для первой страницы.Дизайн пользовательского интерфейса для главной страницы в android

Для примера : Мне нужно сделать, как показано ниже.

enter image description here

Я пытался как размещение изображения в макете и окрашивать действие, но я не получил идеальный effect.If я получить некоторые образцы или GitHub пост или некоторые другие предложения, которые будут полезны для меня ,

ответ

4

Вы можете попробовать эту библиотеку https://github.com/kmshack/Android-ParallaxHeaderViewPager

enter image description here

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent"> 

<fr.castorflex.android.googleplusprofilepageapp.ParallaxImageView ... /> 

<LinearLayout ... > 
    <TextView ... /> 
    <TextView ... /> 
    <TextView ... /> 
</LinearLayout> 

<!-- we add one more container to facilitate the add/remove view --> 
<FrameLayout android:id="@+id/tabs_container" 
    android:layout_height="48dp" 
    android:layout_width="match_parent" 
    android:layout_below="@+id/informations_container"> 

    <HorizontalScrollView 
     android:id="@+id/horizontalscrollview" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:scrollbars="none" 
     > 

     <LinearLayout 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:orientation="horizontal"> 

      <!-- tabs here --> 

     </LinearLayout> 
    </HorizontalScrollView> 
</FrameLayout> 

<ImageView ... /> 

</RelativeLayout> 

enter image description here

Проверить this для получения дополнительной информации

+1

Спасибо вам Maven :) – Steve

Смежные вопросы