三、用视图拖拽+GridLayout实现简单移图游戏
这只实现了简单的最核心的UI,没有写判赢逻辑。
1、/YituGame/res/layout/activity_game_main_line.xml文件
android:layout_width="match_parent"
android:layout_height="match_parent"
andr...
分类:
移动开发 时间:
2015-03-06 10:04:44
阅读次数:
272
main.xml代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertica...
分类:
移动开发 时间:
2015-03-05 19:37:04
阅读次数:
147
1、popupwindow的布局文件:menu_layout.xml
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
android:id="@...
1.页面一main.xml代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="ve...
分类:
移动开发 时间:
2015-03-04 22:49:46
阅读次数:
204
第一步<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"
android:layout_height="match_parent"tools:context=".MainActivity">
<android.support.v4..
分类:
移动开发 时间:
2015-03-04 06:24:04
阅读次数:
185
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_par...
分类:
移动开发 时间:
2015-03-03 11:42:19
阅读次数:
137
感谢极客学院的视频布局文件:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
and..
分类:
移动开发 时间:
2015-03-02 19:16:05
阅读次数:
209
先看下XML布局文件
<EditText
android:id="@+id/et"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/tv_cou...
分类:
移动开发 时间:
2015-02-28 18:38:34
阅读次数:
152
<android.support.v7.widget.GridLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:c...
分类:
其他好文 时间:
2015-02-28 10:18:41
阅读次数:
241
正常来说,在ScrollView添加一个ListView后在真机上只会显示ListView的一行多一点,我也不理解为什么会这样,后来我把ListView的layout_height改成400dip,而不是用match_parent和wrap_content,我发现这样的话ListView就显示的多了...
分类:
其他好文 时间:
2015-02-27 10:03:47
阅读次数:
129