Месяц: Январь 2017

Add Fragment as content to Activity in Android

Today we try add Fragment layout in another Activity layout, that reduce  complexity develop user interface. For this example we need 3 layout: main.xml, fragment1.xml, fragment2.xml, and 3 classes: MainActivity.java, Fragment1.java, Fragment2.java Code of xml layouts <LinearLayout xmlns:android=»http://schemas.android.com/apk/res/android» xmlns:tools=»http://schemas.android.com/tools» android:id=»@+id/LinearLayout1″ android:layout_width=»match_parent» android:layout_height=»match_parent» android:orientation=»horizontal» >…

Читать далее »

Create sliding menu-panel for android in fragment-layout

Hi All! In this post i am want to show you how to create android sliding panel for menu or content. This menu by founded on TranslateAnimation class. For this we need one layout file bellow XML code…

Читать далее »