- 博客(2)
- 资源 (6)
- 收藏
- 关注
原创 luasocket 安装
luasocket的安装 1,下载lua 5.1.4源码解压 2,cd到lua5.1.x目录执行make linux如果是mac make macosx 3,make install 4,下载luasocket源码解压 5,cd到luasocket目录 6,如果是mac电脑修改config文件 #—— #编译器和链接器设置 #用于Mac OS X # CC = GCC D...
2018-04-18 09:05:11 928
滑动菜单(可以控制 左后滑动 不滑动)
滑动菜单(可以控制 左后滑动 不滑动)
mSlidingMenu.setSlide(SlidingView.FRAGMENTLEFT); //左滑动
//mSlidingMenu.setSlide(SlidingView.FRAGMENTRIGHT); //右滑动
//mSlidingMenu.setSlide(SlidingView.FRAGMENTLEFTANDRIGHT); //左右都可以滑动
//mSlidingMenu.setSlide(SlidingView.FRAGMENTNO); //只可以点击 左右都不可以滑动
2013-12-13
android listview
android 技术开发
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main_bg"
android:orientation="vertical">
<include
android:id="@+id/top_bar"
layout="@layout/top_bar" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="40dp"
android:background="@drawable/login_bar_bg" >
<TextView
android:layout_width="120dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="5dp"
android:layout_marginRight="50dp"
android:layout_weight="4"
android:background="@drawable/login_call_phone" />
<Button
android:id="@+id/login"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center|right"
android:layout_marginRight="5dp"
android:layout_weight="0.04"
android:background="@drawable/btn"
android:text="@string/login_text"
android:textColor="#FFFFFF"
android:textSize="14dp" />
<Button
android:id="@+id/register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginRight="5dp"
android:layout_weight="0.04"
android:background="@drawable/btn"
android:text="@string/login_register"
android:textColor="#FFFFFF"
android:textSize="14dp" />
</LinearLayout>
<include layout="@layout/search" />
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<GridView
android:id="@+id/login_app_gridview"
android:layout_width="wrap_content"
android:layout_height="370dp"
android:layout_alignParentTop="true"
android:layout_gravity="center"
android:columnWidth="90dp"
android:gravity="center"
android:horizontalSpacing="1dp"
android:numColumns="auto_fit"
android:stretchMode="columnWidth"
android:listSelector="#FFFFFF"
android:verticalSpacing="5dp"/>
</RelativeLayout>
</ScrollView>
</LinearLayout>
2012-10-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人