java - Flip a RelativeLayout onClick -
i have relativelayout
in there inside relativelayout
want flip last layout entire if possible i don't know if possible. layout is:
<?xml version="1.0" encoding="utf-8"?> <scrollview xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:fillviewport="true" android:fitssystemwindows="true" android:gravity="center|top" android:layout_gravity="center|top" android:background="#e7e9e8" android:layout_height="fill_parent" > <relativelayout android:layout_width="fill_parent" android:fitssystemwindows="true" android:layout_height="fill_parent" android:layout_gravity="center|top" android:gravity="center|top" android:id="@+id/relativelayout" android:orientation="vertical" > <textview android:id="@+id/txt" android:background="@layout/background_card" android:layout_marginright="10dp" android:layout_margintop="30dp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerhorizontal="true" android:gravity="left" android:layout_torightof="@+id/btns" android:fontfamily="sans-serif-light" android:text="" android:textcolor="#ff888888" android:textsize="18dp" /> <imageview android:id="@+id/photo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/list" /> <!-- weather --> <relativelayout android:id="@+id/tablelayout1" android:layout_below="@+id/imageviewmain" android:layout_width="fill_parent" android:layout_centerhorizontal="true" android:layout_margin="10dp" android:background="@layout/background_card" android:layout_height="wrap_content" > <textview android:id="@+id/citybox" android:textcolor="#63b875" android:fontfamily="sans-serif-condensed" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="city" android:layout_margin="1dp" android:textsize="23sp" /> <imageview android:id="@+id/imageview_forecast_info" android:layout_width="95dp" android:layout_centerhorizontal="true" android:src="@drawable/clear" android:layout_below="@+id/citybox" android:layout_alignparentleft="true" android:layout_height="95dp" /> <textview android:id="@+id/temperaturenow" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/imageview_forecast_info" android:fontfamily="sans-serif-light" android:text="@string/ricercacondition" android:layout_margin="1dip" android:textcolor="#ff888888" android:textsize="15sp" /> <textview android:id="@+id/temperatura" android:layout_width="match_parent" android:layout_height="wrap_content" android:fontfamily="sans-serif-light" android:text="" android:gravity="right" android:layout_alignparentright="true" android:layout_marginright="1dp" android:layout_marginleft="5dp" android:layout_torightof="@+id/imageview_forecast_info" android:textcolor="#ff888888" android:textsize="75sp" /> <textview android:id="@+id/maxmin" android:layout_width="match_parent" android:layout_height="wrap_content" android:fontfamily="sans-serif-condensed" android:text="" android:textcolor="#ffbb33" android:gravity="right" android:layout_alignparentright="true" android:layout_marginright="5dp" android:layout_marginleft="5dp" android:layout_below="@+id/temperatura" android:layout_torightof="@+id/imageview_forecast_info" android:textsize="16sp" /> </relativelayout> <!-- end weather layout --> </relativelayout> </scrollview>
i need flip part of weather
layout. saw this: http://developer.android.com/training/animation/cardflip.html can't understand how in case. infact, first question is; can flip layout instead example imageview
or else? , if yes, how? have activity
, not fragment
. can anyway?
i suggest go 3d flip animation in android. view transition animations in android limited. 1 particular omission 3d flip transition common in ios.
also check flipcard animation
Comments
Post a Comment