我的第一个应用,脑筋急转弯2014

来源:互联网 发布:macbook air如何写编程 编辑:程序博客网 时间:2024/06/05 01:59


脑筋急转弯android应用 。这个应用主要运用了listview 控件 ,并且 运用到安卓自带数据库  。下面是一些详细介绍 ,并且有源码,仅供学习 。

naojingjizhuanwan

脑筋急转弯(完整数据版),集成海量题目,内容丰富、形式多样,直接离线访问,无流量产生,趣味盎然,老少皆宜,通过阅读可以锻炼你从多角度思考问题,认识世界的能力,也可以帮助你破除固有思维,培养灵活多变的思维方式。每次刷新随机生成题目,还包含笑话专辑,思考之余轻松一下。

naojinjizhuanwan1

 

[java]package com.sx.brainsharp;import android.app.Activity;import android.os.Bundle;import android.widget.Toast;public class BaseActivity extends Activity{@Overrideprotected void onCreate(Bundle savedInstanceState) {// TODO Auto-generated method stubsuper.onCreate(savedInstanceState);}protected void click(String appId){if ("10001".equals(appId)) {Toast.makeText(BaseActivity.this, "第1个应用", Toast.LENGTH_SHORT).show();}else if ("10002".equals(appId)) {Toast.makeText(BaseActivity.this, "第2个应用", Toast.LENGTH_SHORT).show();}else if ("10003".equals(appId)) {Toast.makeText(BaseActivity.this, "第3个应用", Toast.LENGTH_SHORT).show();}else if ("10004".equals(appId)) {Toast.makeText(BaseActivity.this, "第4个应用", Toast.LENGTH_SHORT).show();}else if ("10005".equals(appId)) {Toast.makeText(BaseActivity.this, "第5个应用", Toast.LENGTH_SHORT).show();}else if ("10006".equals(appId)) {Toast.makeText(BaseActivity.this, "第6个应用", Toast.LENGTH_SHORT).show();}else if ("10007".equals(appId)) {Toast.makeText(BaseActivity.this, "第7个应用", Toast.LENGTH_SHORT).show();}else if ("10008".equals(appId)) {Toast.makeText(BaseActivity.this, "第8个应用", Toast.LENGTH_SHORT).show();}else if ("10009".equals(appId)) {Toast.makeText(BaseActivity.this, "第9个应用", Toast.LENGTH_SHORT).show();}}}[/java]
[java]<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical" >        <RelativeLayout         android:id="@+id/home_add_app_item_layout"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:background="@drawable/list_item_bg_addapp"        android:padding="10dip"        >        <ImageView             android:id="@+id/home_add_app_item_icon"            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:src="@drawable/app_cir_01"            android:layout_centerVertical="true"            />                <TextView             android:id="@+id/home_add_app_item_name"            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:text="kechengaj"            android:layout_toRightOf="@id/home_add_app_item_icon"            android:layout_centerVertical="true"            android:layout_marginLeft="35dip"            android:textSize="18sp"            android:textColor="#555555"            />                  </RelativeLayout>    </LinearLayout>[/java]

360 下载地址 :http://zhushou.360.cn/detail/index/soft_id/1910158

源码下载地址 :http://www.itbbu.com/627.html


0 0