|
1 | 1 | AndroidSideMenu |
2 | 2 | =============== |
3 | 3 |
|
4 | | -Side menu for android applications |
| 4 | +AndroidSideMenu lets you create side (slide\drawer, whatever you call it) menu without special effort. |
| 5 | + |
| 6 | +Installlation |
| 7 | +============= |
| 8 | + |
| 9 | +Add .jar file to build path. |
| 10 | + |
| 11 | +Usage |
| 12 | +===== |
| 13 | + |
| 14 | +There is no need to extend another Activity, all you have to do is wrap your layout in SlideHolder widget like this: |
| 15 | + |
| 16 | + <com.agimind.widget.SlideHolder |
| 17 | + android:layout_width="match_parent" |
| 18 | + android:layout_height="match_parent"> |
| 19 | + |
| 20 | + <!-- Here is any view that will represent your side menu. Don't forget to provide width! --> |
| 21 | + <View |
| 22 | + android:layout_width="300dp" |
| 23 | + android:layout_height="match_parent" |
| 24 | + /> |
| 25 | + |
| 26 | + <!-- And here is your main layout --> |
| 27 | + <View |
| 28 | + android:layout_width="match_parent" |
| 29 | + android:layout_height="match_parent" |
| 30 | + android:background="@color/your_background_color" |
| 31 | + /> |
| 32 | + |
| 33 | + </com.agimind.widget.SlideHolder> |
| 34 | + |
| 35 | +Note, that you should provide fixed width for your menu (in xml or programmaticaly) and explicitly set non-transparent background for your main layour. |
| 36 | + |
| 37 | +License |
| 38 | +======= |
| 39 | + |
| 40 | + Copyright dmitry.zaicew@gmail.com Dmitry Zaitsev |
| 41 | + |
| 42 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 43 | + you may not use this file except in compliance with the License. |
| 44 | + You may obtain a copy of the License at |
| 45 | + |
| 46 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 47 | + |
| 48 | + Unless required by applicable law or agreed to in writing, software |
| 49 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 50 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 51 | + See the License for the specific language governing permissions and |
| 52 | + limitations under the License. |
0 commit comments